diff --git a/javascript/sdppp-comfy.js b/javascript/sdppp-comfy.js index 043e67f..1e52ead 100644 --- a/javascript/sdppp-comfy.js +++ b/javascript/sdppp-comfy.js @@ -520,7 +520,7 @@ html body { ${r}-eye, ${r}-download, ${r}-delete - `]:{zIndex:10,width:n,margin:`0 ${ne(e.marginXXS)}`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ne(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ne(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var L9=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},IF=L9;var F9=e=>{let{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},ar(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}},W9=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),TF=qt("Upload",e=>{let{fontSizeHeading3:t,fontHeight:r,lineWidth:n,pictureCardSize:o,calc:i}=e,a=ct(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(r).div(2)).add(n).equal(),uploadPicCardSize:o});return[F9(a),RF(a),OF(a),NF(a),_F(a),PF(a),IF(a),vw(a)]},W9);var Gt=E(I());var S0=E(I());var z9={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:r}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},$F=z9;var j9=function(t,r){return S0.createElement(Wt,le({},t,{ref:r,icon:$F}))},B9=S0.forwardRef(j9),DF=B9;var C0=E(I());var V9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},AF=V9;var H9=function(t,r){return C0.createElement(Wt,le({},t,{ref:r,icon:AF}))},U9=C0.forwardRef(H9),kF=U9;var x0=E(I());var G9={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:r}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:r}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:r}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},MF=G9;var q9=function(t,r){return x0.createElement(Wt,le({},t,{ref:r,icon:MF}))},K9=x0.forwardRef(q9),LF=K9;var NE=E($e());function wp(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Ep(e,t){let r=re(t),n=r.findIndex(({uid:o})=>o===e.uid);return n===-1?r.push(e):r[n]=e,r}function w0(e,t){let r=e.uid!==void 0?"uid":"name";return t.filter(n=>n[r]===e[r])[0]}function FF(e,t){let r=e.uid!==void 0?"uid":"name",n=t.filter(o=>o[r]!==e[r]);return n.length===t.length?null:n}var X9=(e="")=>{let t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},WF=e=>e.indexOf("image/")===0,zF=e=>{if(e.type&&!e.thumbUrl)return WF(e.type);let t=e.thumbUrl||e.url||"",r=X9(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r)?!0:!(/^data:/.test(t)||r)},Js=200;function jF(e){return new Promise(t=>{if(!e.type||!WF(e.type)){t("");return}let r=document.createElement("canvas");r.width=Js,r.height=Js,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${Js}px; height: ${Js}px; z-index: 9999; display: none;`,document.body.appendChild(r);let n=r.getContext("2d"),o=new Image;if(o.onload=()=>{let{width:i,height:a}=o,s=Js,l=Js,c=0,u=0;i>a?(l=a*(Js/i),u=-(l-s)/2):(s=i*(Js/a),c=-(s-l)/2),n.drawImage(o,c,u,s,l);let d=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(o.src),t(d)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(o.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){let i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}var zt=E(I());var E0=E(I());var Y9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},BF=Y9;var Q9=function(t,r){return E0.createElement(Wt,le({},t,{ref:r,icon:BF}))},J9=E0.forwardRef(Q9),VF=J9;var Zs=E($e());var Z9=zt.forwardRef(({prefixCls:e,className:t,style:r,locale:n,listType:o,file:i,items:a,progress:s,iconRender:l,actionIconRender:c,itemRender:u,isImgUrl:d,showPreviewIcon:f,showRemoveIcon:m,showDownloadIcon:h,previewIcon:v,removeIcon:y,downloadIcon:g,extra:p,onPreview:b,onDownload:S,onClose:C},w)=>{var x,R;let{status:O}=i,[_,T]=zt.useState(O);zt.useEffect(()=>{O!=="removed"&&T(O)},[O]);let[$,D]=zt.useState(!1);zt.useEffect(()=>{let K=setTimeout(()=>{D(!0)},300);return()=>{clearTimeout(K)}},[]);let M=l(i),A=zt.createElement("div",{className:`${e}-icon`},M);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(_==="uploading"||!i.thumbUrl&&!i.url){let K=(0,Zs.default)(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:_!=="uploading"});A=zt.createElement("div",{className:K},M)}else{let K=d?.(i)?zt.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):M,ee=(0,Zs.default)(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:d&&!d(i)});A=zt.createElement("a",{className:ee,onClick:ae=>b(i,ae),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},K)}let F=(0,Zs.default)(`${e}-list-item`,`${e}-list-item-${_}`),W=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,j=(typeof m=="function"?m(i):m)?c((typeof y=="function"?y(i):y)||zt.createElement(yF,null),()=>C(i),e,n.removeFile,!0):null,G=(typeof h=="function"?h(i):h)&&_==="done"?c((typeof g=="function"?g(i):g)||zt.createElement(VF,null),()=>S(i),e,n.downloadFile):null,q=o!=="picture-card"&&o!=="picture-circle"&&zt.createElement("span",{key:"download-delete",className:(0,Zs.default)(`${e}-list-item-actions`,{picture:o==="picture"})},G,j),H=typeof p=="function"?p(i):p,U=H&&zt.createElement("span",{className:`${e}-list-item-extra`},H),z=(0,Zs.default)(`${e}-list-item-name`),k=i.url?zt.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:z,title:i.name},W,{href:i.url,onClick:K=>b(i,K)}),i.name,U):zt.createElement("span",{key:"view",className:z,onClick:K=>b(i,K),title:i.name},i.name,U),B=(typeof f=="function"?f(i):f)&&(i.url||i.thumbUrl)?zt.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:K=>b(i,K),title:n.previewFile},typeof v=="function"?v(i):v||zt.createElement(u0,null)):null,V=(o==="picture-card"||o==="picture-circle")&&_!=="uploading"&&zt.createElement("span",{className:`${e}-list-item-actions`},B,_==="done"&&G,j),{getPrefixCls:oe}=zt.useContext(nt),J=oe(),Q=zt.createElement("div",{className:F},A,k,q,V,$&&zt.createElement(Go,{motionName:`${J}-fade`,visible:_==="uploading",motionDeadline:2e3},({className:K})=>{let ee="percent"in i?zt.createElement(hF,Object.assign({type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]},s)):null;return zt.createElement("div",{className:(0,Zs.default)(`${e}-list-item-progress`,K)},ee)})),pe=i.response&&typeof i.response=="string"?i.response:((x=i.error)===null||x===void 0?void 0:x.statusText)||((R=i.error)===null||R===void 0?void 0:R.message)||n.uploadError,Z=_==="error"?zt.createElement(Fa,{title:pe,getPopupContainer:K=>K.parentNode},Q):Q;return zt.createElement("div",{className:(0,Zs.default)(`${e}-list-item-container`,t),style:r,ref:w},u?u(Z,i,a,{download:S.bind(null,i),preview:b.bind(null,i),remove:C.bind(null,i)}):Z)}),HF=Z9;var eG=(e,t)=>{let{listType:r="text",previewFile:n=jF,onPreview:o,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:c=zF,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:m=!0,showDownloadIcon:h=!1,removeIcon:v,previewIcon:y,downloadIcon:g,extra:p,progress:b={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:C=!0,itemRender:w,disabled:x}=e,[,R]=B2(),[O,_]=Gt.useState(!1),T=["picture-card","picture-circle"].includes(r);Gt.useEffect(()=>{r.startsWith("picture")&&(d||[]).forEach(z=>{!(z.originFileObj instanceof File||z.originFileObj instanceof Blob)||z.thumbUrl!==void 0||(z.thumbUrl="",n?.(z.originFileObj).then(k=>{z.thumbUrl=k||"",R()}))})},[r,d,n]),Gt.useEffect(()=>{_(!0)},[]);let $=(z,k)=>{if(o)return k?.preventDefault(),o(z)},D=z=>{typeof i=="function"?i(z):z.url&&window.open(z.url)},M=z=>{a?.(z)},A=z=>{if(l)return l(z,r);let k=z.status==="uploading";if(r.startsWith("picture")){let B=r==="picture"?Gt.createElement(Wl,null):s.uploading,V=c?.(z)?Gt.createElement(LF,null):Gt.createElement(DF,null);return k?B:V}return k?Gt.createElement(Wl,null):Gt.createElement(kF,null)},F=(z,k,B,V,oe)=>{let J={type:"text",size:"small",title:V,onClick:Q=>{var pe,Z;k(),Gt.isValidElement(z)&&((Z=(pe=z.props).onClick)===null||Z===void 0||Z.call(pe,Q))},className:`${B}-list-item-action`,disabled:oe?x:!1};return Gt.isValidElement(z)?Gt.createElement(zf,Object.assign({},J,{icon:Ko(z,Object.assign(Object.assign({},z.props),{onClick:()=>{}}))})):Gt.createElement(zf,Object.assign({},J),Gt.createElement("span",null,z))};Gt.useImperativeHandle(t,()=>({handlePreview:$,handleDownload:D}));let{getPrefixCls:W}=Gt.useContext(nt),j=W("upload",u),G=W(),q=(0,NE.default)(`${j}-list`,`${j}-list-${r}`),H=Gt.useMemo(()=>Gr(r$(G),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[G]),U=Object.assign(Object.assign({},T?{}:H),{motionDeadline:2e3,motionName:`${j}-${T?"animate-inline":"animate"}`,keys:re(d.map(z=>({key:z.uid,file:z}))),motionAppear:O});return Gt.createElement("div",{className:q},Gt.createElement(Yx,Object.assign({},U,{component:!1}),({key:z,file:k,className:B,style:V})=>Gt.createElement(HF,{key:z,locale:s,prefixCls:j,className:B,style:V,file:k,items:d,progress:b,listType:r,isImgUrl:c,showPreviewIcon:f,showRemoveIcon:m,showDownloadIcon:h,removeIcon:v,previewIcon:y,downloadIcon:g,extra:p,iconRender:A,actionIconRender:F,itemRender:w,onPreview:$,onDownload:D,onClose:M})),S&&Gt.createElement(Go,Object.assign({},U,{visible:C,forceRender:!0}),({className:z,style:k})=>Ko(S,B=>({className:(0,NE.default)(B.className,z),style:Object.assign(Object.assign(Object.assign({},k),{pointerEvents:z?"none":void 0}),B.style)}))))},tG=Gt.forwardRef(eG),UF=tG;var rG=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})},Ju=`__LIST_IGNORE_${Date.now()}__`,nG=(e,t)=>{let r=Dn("upload"),{fileList:n,defaultFileList:o,onRemove:i,showUploadList:a=!0,listType:s="text",onPreview:l,onDownload:c,onChange:u,onDrop:d,previewFile:f,disabled:m,locale:h,iconRender:v,isImageUrl:y,progress:g,prefixCls:p,className:b,type:S="select",children:C,style:w,itemRender:x,maxCount:R,data:O={},multiple:_=!1,hasControlInside:T=!0,action:$="",accept:D="",supportServerRender:M=!0,rootClassName:A}=e,F=br.useContext(Hr),W=m??F,j=e.customRequest||r.customRequest,[G,q]=ir(o||[],{value:n,postState:Ce=>Ce??[]}),[H,U]=br.useState("drop"),z=br.useRef(null),k=br.useRef(null);br.useMemo(()=>{let Ce=Date.now();(n||[]).forEach((he,Be)=>{!he.uid&&!Object.isFrozen(he)&&(he.uid=`__AUTO__${Ce}_${Be}__`)})},[n]);let B=(Ce,he,Be)=>{let Le=re(he),rt=!1;R===1?Le=Le.slice(-1):R&&(rt=Le.length>R,Le=Le.slice(0,R)),(0,IE.flushSync)(()=>{q(Le)});let St={file:Ce,fileList:Le};Be&&(St.event=Be),(!rt||Ce.status==="removed"||Le.some(pt=>pt.uid===Ce.uid))&&(0,IE.flushSync)(()=>{u?.(St)})},V=(Ce,he)=>rG(void 0,void 0,void 0,function*(){let{beforeUpload:Be,transformFile:Le}=e,rt=Ce;if(Be){let St=yield Be(Ce,he);if(St===!1)return!1;if(delete Ce[Ju],St===Ju)return Object.defineProperty(Ce,Ju,{value:!0,configurable:!0}),!1;typeof St=="object"&&St&&(rt=St)}return Le&&(rt=yield Le(rt)),rt}),oe=Ce=>{let he=Ce.filter(rt=>!rt.file[Ju]);if(!he.length)return;let Be=he.map(rt=>wp(rt.file)),Le=re(G);Be.forEach(rt=>{Le=Ep(rt,Le)}),Be.forEach((rt,St)=>{let pt=rt;if(he[St].parsedFile)rt.status="uploading";else{let{originFileObj:ke}=rt,be;try{be=new File([ke],ke.name,{type:ke.type})}catch{be=new Blob([ke],{type:ke.type}),be.name=ke.name,be.lastModifiedDate=new Date,be.lastModified=new Date().getTime()}be.uid=rt.uid,pt=be}B(pt,Le)})},J=(Ce,he,Be)=>{try{typeof Ce=="string"&&(Ce=JSON.parse(Ce))}catch{}if(!w0(he,G))return;let Le=wp(he);Le.status="done",Le.percent=100,Le.response=Ce,Le.xhr=Be;let rt=Ep(Le,G);B(Le,rt)},Q=(Ce,he)=>{if(!w0(he,G))return;let Be=wp(he);Be.status="uploading",Be.percent=Ce.percent;let Le=Ep(Be,G);B(Be,Le,Ce)},pe=(Ce,he,Be)=>{if(!w0(Be,G))return;let Le=wp(Be);Le.error=Ce,Le.response=he,Le.status="error";let rt=Ep(Le,G);B(Le,rt)},Z=Ce=>{let he;Promise.resolve(typeof i=="function"?i(Ce):i).then(Be=>{var Le;if(Be===!1)return;let rt=FF(Ce,G);rt&&(he=Object.assign(Object.assign({},Ce),{status:"removed"}),G?.forEach(St=>{let pt=he.uid!==void 0?"uid":"name";St[pt]===he[pt]&&!Object.isFrozen(St)&&(St.status="removed")}),(Le=z.current)===null||Le===void 0||Le.abort(he),B(he,rt))})},K=Ce=>{U(Ce.type),Ce.type==="drop"&&d?.(Ce)};br.useImperativeHandle(t,()=>({onBatchStart:oe,onSuccess:J,onProgress:Q,onError:pe,fileList:G,upload:z.current,nativeElement:k.current}));let{getPrefixCls:ee,direction:ae,upload:te}=br.useContext(nt),X=ee("upload",p),de=Object.assign(Object.assign({onBatchStart:oe,onError:pe,onProgress:Q,onSuccess:J},e),{customRequest:j,data:O,multiple:_,action:$,accept:D,supportServerRender:M,prefixCls:X,disabled:W,beforeUpload:V,onChange:void 0,hasControlInside:T});delete de.className,delete de.style,(!C||W)&&delete de.id;let fe=`${X}-wrapper`,[se,Ee,we]=TF(X,fe),[Re]=Ea("Upload",wi.Upload),{showRemoveIcon:ve,showPreviewIcon:Y,showDownloadIcon:Ne,removeIcon:Ue,previewIcon:Ze,downloadIcon:Ae,extra:De}=typeof a=="boolean"?{}:a,je=typeof ve>"u"?!W:ve,Ie=(Ce,he)=>a?br.createElement(UF,{prefixCls:X,listType:s,items:G,previewFile:f,onPreview:l,onDownload:c,onRemove:Z,showRemoveIcon:je,showPreviewIcon:Y,showDownloadIcon:Ne,removeIcon:Ue,previewIcon:Ze,downloadIcon:Ae,iconRender:v,extra:De,locale:Object.assign(Object.assign({},Re),h),isImageUrl:y,progress:g,appendAction:Ce,appendActionVisible:he,itemRender:x,disabled:W}):Ce,We=(0,R0.default)(fe,b,A,Ee,we,te?.className,{[`${X}-rtl`]:ae==="rtl",[`${X}-picture-card-wrapper`]:s==="picture-card",[`${X}-picture-circle-wrapper`]:s==="picture-circle"}),Te=Object.assign(Object.assign({},te?.style),w);if(S==="drag"){let Ce=(0,R0.default)(Ee,X,`${X}-drag`,{[`${X}-drag-uploading`]:G.some(he=>he.status==="uploading"),[`${X}-drag-hover`]:H==="dragover",[`${X}-disabled`]:W,[`${X}-rtl`]:ae==="rtl"});return se(br.createElement("span",{className:We,ref:k},br.createElement("div",{className:Ce,style:Te,onDrop:K,onDragOver:K,onDragLeave:K},br.createElement(OE,Object.assign({},de,{ref:z,className:`${X}-btn`}),br.createElement("div",{className:`${X}-drag-container`},C))),Ie()))}let _e=(0,R0.default)(X,`${X}-select`,{[`${X}-disabled`]:W,[`${X}-hidden`]:!C}),Ge=br.createElement("div",{className:_e,style:Te},br.createElement(OE,Object.assign({},de,{ref:z})));return se(s==="picture-card"||s==="picture-circle"?br.createElement("span",{className:We,ref:k},Ie(Ge,!!C)):br.createElement("span",{className:We,ref:k},Ge,Ie()))},oG=br.forwardRef(nG),_0=oG;var iG=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{style:r,height:n,hasControlInside:o=!1,children:i}=e,a=iG(e,["style","height","hasControlInside","children"]),s=Object.assign(Object.assign({},r),{height:n});return P0.createElement(_0,Object.assign({ref:t,hasControlInside:o},a,{style:s,type:"drag"}),i)}),GF=aG;var TE=_0;TE.Dragger=GF;TE.LIST_IGNORE=Ju;var $E=TE;var YF=E(I(),1);var Pr=E(fr(),1),pG=()=>{let[e,t]=(0,YF.useState)(Ke.data.useSliderForNumberWidget),r=()=>{location.href="/sd-ppp-static/sd-ppp_PS.ccx?_="+Date.now()},n=()=>{location.href="https://gitee.com/zombieyang/sd-ppp/raw/main/static/sd-ppp2_PS.ccx?_="+Date.now()};return(0,Pr.jsxs)("div",{className:"settings-container",children:[(0,Pr.jsx)("h2",{children:me("SDPPP Settings/Misc")}),(0,Pr.jsxs)("div",{className:"settings-section",children:[(0,Pr.jsx)("div",{className:"settings-label",children:(0,Pr.jsx)("label",{children:me("Comfy URL (You can copy it to connect ComfyUI in the plugin):")})}),(0,Pr.jsx)("div",{className:"settings-control",children:location.href.split("?")[0].split("#")[0]})]}),(0,Pr.jsxs)("div",{className:"settings-section settings-row",children:[(0,Pr.jsx)("div",{className:"settings-label",children:(0,Pr.jsx)("label",{children:me("Photoshop plugin")})}),(0,Pr.jsx)("div",{className:"settings-control",children:(0,Pr.jsx)("button",{onClick:r,className:"download-button",children:me("Download")})})]}),(0,Pr.jsxs)("div",{className:"settings-section settings-row",children:[(0,Pr.jsx)("div",{className:"settings-label",children:(0,Pr.jsxs)("label",{children:[me("Photoshop plugin")," 2.0 Beta"]})}),(0,Pr.jsx)("div",{className:"settings-control",children:(0,Pr.jsx)("button",{onClick:n,className:"download-button",children:me("Download")})})]}),(0,Pr.jsxs)("div",{className:"settings-section settings-row",children:[(0,Pr.jsx)("div",{className:"settings-label",children:(0,Pr.jsx)("label",{htmlFor:"maxImageSize",children:me("use slider for number widget:")})}),(0,Pr.jsx)("div",{className:"settings-control",children:(0,Pr.jsx)(lp,{id:"useSliderForNumberWidget",checked:e,onChange:o=>{t(o.target.checked),Ke.setUseSliderForNumberWidget(o.target.checked),an.storeSetting("sdppp.useSliderForNumberWidget",o.target.checked)}})})]})]})},QF=pG;var d3=E(I(),1);var tc=E(I(),1);var JF=E(I(),1);function N0(e){return e=e||12,{flex:`${e} 0 calc(${e/12*100}% - 10px)`,maxWidth:"100%"}}var Mn=E(fr(),1);function AE({widgetTableStructure:e,widgetTableValue:t,widgetTableErrors:r,onWidgetRender:n,onWidgetChange:o,onTitleRender:i}){let[a,s]=(0,tc.useState)(0),l=(0,tc.useMemo)(()=>e.nodeIndexes.map(f=>{let m=e.nodes[f],h=(p,b,S)=>p.keepRender?b.outputType==="error"?(p.result.push((0,Mn.jsx)("span",{className:"list-error-label",children:t[m.id][S]})),p):(n?.(p,m,b,S),p):p,v=Object.values(e.groups).find(p=>p.nodeIDs.includes(m.id)),y=v?.color||"rgba(127, 127, 127, .4)";if(a&&v?.id!==a)return null;let g=m.uiWeightSum<=8&&m.widgets.length==1&&(m.widgets[0].outputType!=="number"||!e.extraOptions?.useSliderForNumberWidget);return(0,Mn.jsxs)("div",{className:"workflow-edit-field",children:[(0,Mn.jsx)("div",{className:"workflow-edit-field-title",title:m.title,style:{...N0(g?4:12),borderColor:y},children:i?i(m.title,m):(0,Mn.jsx)("span",{children:m.title})}),m.widgets.reduce(h,{keepRender:!0,result:[]}).result.map((p,b)=>(0,Mn.jsx)(DE,{children:p},b)),r[m.id]?(0,Mn.jsx)("span",{className:"list-error-label",children:r[m.id]}):""]},m.id)}).filter(Boolean),[e,t,r,n,o,i,a]),[c,u]=(0,tc.useMemo)(()=>[Object.keys(r).filter(f=>e.nodes[parseInt(f)]),Object.keys(r).filter(f=>!e.nodes[parseInt(f)])],[r,e]),d=null;return u.length>0?d=(0,Mn.jsx)("span",{className:"list-error-label",children:r[+u[0]]}):c.length>0&&(d=(0,Mn.jsx)("span",{className:"list-error-label",children:r[+c[0]]})),(0,Mn.jsxs)(Mn.Fragment,{children:[d,Object.keys(e.nodes).length?"":(0,Mn.jsx)("span",{className:"list-error-label",children:me("no suitable node to control in this workflow")}),(0,Mn.jsx)("div",{className:"workflow-edit-content",children:l})]})}var DE=class extends tc.default.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}componentDidCatch(t,r){this.setState({hasError:!0,error:t})}render(){return this.state.hasError?(0,Mn.jsx)("span",{className:"list-error-label",children:this.state.error?.stack||this.state.error?.message||this.state.error?.toString()}):this.props.children}};var rc=E(I(),1);var ZF=E(I(),1);function el(e){return(0,ZF.useMemo)(()=>N0(e),[e])}var tl=E(fr(),1),e3=({inputMin:e,inputMax:t,inputStep:r,name:n,value:o=0,uiWeight:i=1,extraOptions:a,onValueChange:s})=>{let l=el(i||12),[c,u]=(0,rc.useState)(+o.toFixed(3));(0,rc.useEffect)(()=>{u(+o.toFixed(3))},[o]);let d=(0,rc.useCallback)(h=>{if(h!==null){let v=+h.toFixed(3);u(v)}},[]),f=(0,rc.useCallback)(()=>{s(c)},[c,s]);return!((t-e)/r>1e3)&&i>=1&&a?.useSliderForNumberWidget?(0,tl.jsxs)(Va,{style:{width:"100%",...l},align:"center",children:[(0,tl.jsx)(cE,{style:{flex:1},min:e,max:t,step:r,value:c,onChange:d,onChangeComplete:f}),(0,tl.jsx)(e0,{style:{width:80},min:e,max:t,step:r,value:c,onChange:d,onBlur:f,controls:!1})]}):(0,tl.jsxs)(Va,{style:{width:"100%",...l},align:"center",children:[n&&(0,tl.jsx)("span",{style:{flex:1},children:n}),(0,tl.jsx)(e0,{style:{width:"100%",flex:2},min:e,max:t,step:r,value:c,onChange:d,onBlur:f,controls:!1})]})};var Rp=E(fr(),1),t3=({onSelectUpdate:e,options:t,value:r,name:n,uiWeight:o})=>{let i=s=>{let l=t.indexOf(s);e(s,l)},a=el(o||12);return(0,Rp.jsxs)(Va,{style:{width:"100%",...a},align:"center",children:[n&&(0,Rp.jsx)("span",{style:{flex:1},children:n}),(0,Rp.jsx)(ap,{value:r,options:t.map(s=>({value:s,label:s})),style:{flex:2,minWidth:"100%"},onSelect:i,placeholder:me("select..."),showSearch:!0,filterOption:(s,l)=>(l?.label??"").toLowerCase().includes(s.toLowerCase())})]})};var n3=E(fr(),1),r3=({value:e,name:t,onValueChange:r,uiWeight:n})=>{let o=a=>{r(a.target.checked)},i=el(n||12);return(0,n3.jsx)(lp,{checked:!!e,onChange:o,style:{...i},children:t||""})};var kE=E(fr(),1),{TextArea:mG}=vp,o3=({value:e="",onValueChange:t,uiWeight:r})=>{let n=el(r||12);return(0,kE.jsx)("div",{className:"widget-container",style:n,children:(0,kE.jsx)(mG,{value:e,onChange:i=>{t(i.target.value)},autoSize:{minRows:1}})})};var _p=E(I(),1);var I0=E(fr(),1);function i3({title:e,onTitleChange:t}){let[r,n]=(0,_p.useState)(!1),[o,i]=(0,_p.useState)(e);(0,_p.useEffect)(()=>{i(e)},[e]);let a=()=>{n(!0)};return r?(0,I0.jsx)(vp,{autoFocus:!0,value:o,onChange:u=>{i(u.target.value)},onBlur:()=>{n(!1),o!==e&&t&&t(o)},onKeyDown:u=>{u.key==="Enter"?(n(!1),o!==e&&t&&t(o)):u.key==="Escape"&&(n(!1),i(e))},size:"small",className:"workflow-edit-field-title-input"}):(0,I0.jsx)(Fa,{title:me("click to edit"),children:(0,I0.jsx)("span",{onClick:a,style:{cursor:"pointer"},children:o})})}var Ha=E(fr(),1),a3={fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},s3=({size:e=18,className:t,style:r})=>(0,Ha.jsxs)("svg",{width:e,height:e,className:t,style:r,...a3,children:[(0,Ha.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Ha.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),l3=({size:e=16,className:t,style:r})=>(0,Ha.jsxs)("svg",{width:e,height:e,className:t,style:r,...a3,children:[(0,Ha.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,Ha.jsx)("polyline",{points:"17 8 12 3 7 8"}),(0,Ha.jsx)("line",{x1:"12",y1:"3",x2:"12",y2:"15"})]});var Ua=E(fr(),1),c3=({value:e,onValueChange:t,options:r,nodeID:n})=>{let o=a=>{if(a.file.status==="done"){let s=a.file.response.name;t?.(s)}},i=mt.graph.nodes.find(a=>a.id===e);return(0,Ua.jsxs)(Va,{gap:5,align:"stretch",vertical:!0,children:[(0,Ua.jsxs)(Va,{gap:5,vertical:!0,children:[(0,Ua.jsx)(ap,{style:{flex:1},value:e,onChange:a=>{t?.(a)},options:r.map(a=>({label:a.split("/").pop(),value:a}))}),(0,Ua.jsx)($E,{action:"./api/upload/image",onChange:o,showUploadList:!1,data:a=>({image:a}),children:(0,Ua.jsxs)("button",{type:"button",className:"ant-btn",children:[(0,Ua.jsx)(l3,{size:16})," ",me("upload")]})})]}),e&&(0,Ua.jsx)("img",{src:`./api/view?filename=${e}&type=input&subfolder=${e.startsWith("clipspace/")?"clipspace/":""}&rand=`+Math.random(),width:"100%",style:{aspectRatio:"1/1",objectFit:"contain",cursor:"pointer"},onClick:a=>{mt.constructor.copyToClipspace(mt.graph.nodes.find(s=>s.id===n)),mt.constructor.clipspace_return_node=mt.graph.nodes.find(s=>s.id===n),mt.constructor.open_maskeditor()}})]})};var aa=E(fr(),1),u3=window.comfyAPI.api.api,Zu=class extends d3.default.Component{state={comfyStatus:{sid:"",ssid:"",progress:0,queueSize:0,lastError:"",executingNodeTitle:""},widgetTableStructure:Ke.data.widgetTableStructure,widgetTableValue:Ke.data.widgetTableValue,widgetTableErrors:Ke.data.widgetTableErrors};eventListeners=[];unsubscribes=[];constructor(t){super(t);let r=(a,s)=>{u3.addEventListener(a,s),this.eventListeners.push({event:a,handler:s})};r("progress",({detail:a})=>{if(!a||isNaN(a.value/a.max))return;let s=Math.round(a.value/a.max*100);this.setState({comfyStatus:{...this.state.comfyStatus,progress:s}})}),r("status",a=>{a.detail?.exec_info&&this.setState({comfyStatus:{...this.state.comfyStatus,queueSize:a.detail.exec_info.queue_remaining}})}),r("execution_error",({detail:a})=>{this.setState({comfyStatus:{...this.state.comfyStatus,lastError:a.exception_message,executingNodeTitle:""}})}),r("execution_start",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,lastError:"",progress:0,executingNodeTitle:""}})}),r("executing",a=>{let s=a.detail,l=app.graph.nodes.find(c=>c.id==s);l&&this.setState({comfyStatus:{...this.state.comfyStatus,executingNodeTitle:l.title}})}),r("execution_success",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,progress:0,executingNodeTitle:""}})}),r("execution_interrupted",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,progress:0,executingNodeTitle:""}})});let n=a=>{this.setState({widgetTableStructure:a})};Ke.subscribe("/widgetTableStructure",n);let o=a=>{this.setState({widgetTableValue:a})};Ke.subscribe("/widgetTableValue",o);let i=a=>{this.setState({widgetTableErrors:a})};Ke.subscribe("/widgetTableErrors",i),this.unsubscribes.push(()=>{Ke.unsubscribe(n),Ke.unsubscribe(o),Ke.unsubscribe(i)})}componentWillUnmount(){this.eventListeners.forEach(({event:t,handler:r})=>{u3.removeEventListener(t,r)}),this.unsubscribes.forEach(t=>t())}render(){let t={widgetTableStructure:this.state.widgetTableStructure,widgetTableValue:this.state.widgetTableValue,widgetTableErrors:this.state.widgetTableErrors,onWidgetChange:async(n,o,i,a)=>{let s=app.graph.nodes.find(l=>l.id==n);s&&Zp(s,o,i)},onWidgetRender:(n,o,i,a)=>{if(i.outputType==="number"){let s=i.options?.min??0,l=i.options?.max??100,c=i.options?.step??1;return n.result.push((0,aa.jsx)(e3,{uiWeight:i.uiWeight||12,inputMin:s,inputMax:l,inputStep:c,name:i.name,value:parseFloat(this.state.widgetTableValue[o.id][a]),onValueChange:u=>{t.onWidgetChange(o.id,a,u,o)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0}else{if(i.outputType==="combo")return n.result.push((0,aa.jsx)(t3,{uiWeight:i.uiWeight||12,options:i.options?.values||[],name:i.name,onSelectUpdate:s=>{t.onWidgetChange(o.id,a,s,o)},value:this.state.widgetTableValue[o.id][a],extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="toggle")return n.result.push((0,aa.jsx)(r3,{uiWeight:i.uiWeight||12,name:i.name,value:this.state.widgetTableValue[o.id][a],onValueChange:s=>{t.onWidgetChange(o.id,a,s,o)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="string"||i.outputType==="customtext"||i.outputType==="text")return n.result.push((0,aa.jsx)(o3,{uiWeight:i.uiWeight||12,value:this.state.widgetTableValue[o.id][a],onValueChange:s=>{t.onWidgetChange(o.id,a,s,o)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="PS_LAYER"||i.outputType==="PS_DOCUMENT")return n.result.push((0,aa.jsx)("p",{children:me("only supported in Photoshop")})),!0;if(i.outputType=="IMAGE_PATH"||i.outputType=="MASK_PATH")return n.result.push((0,aa.jsx)(c3,{uiWeight:i.uiWeight||12,value:this.state.widgetTableValue[o.id][a],options:i.options?.values||[],onValueChange:async s=>{t.onWidgetChange(o.id,a,s,o)},nodeID:o.id,extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0}return!0},onTitleRender:(n,o)=>(0,aa.jsx)(i3,{title:n,onTitleChange:i=>{jn.instance.setNodeTitle({node_id:o.id,title:i})}})},r=12;return(0,aa.jsx)(Da,{theme:{components:{Input:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)"},Select:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)",colorBgElevated:"var(--p-form-field-background)",colorTextDescription:"var(--p-form-field-color)",controlItemBgActive:"var(--p-form-field-background)",controlItemBgHover:"var(--p-form-field-border-color)"},Checkbox:{fontSize:r,colorText:"var(--p-form-field-color)"},Radio:{fontSize:r},Slider:{fontSize:r},Switch:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)"},InputNumber:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)"}}},children:(0,aa.jsx)(AE,{...t})})}};var Ln=E(fr(),1),f3=document.createElement("style");f3.innerHTML=bN;document.head.appendChild(f3);function ME({onClose:e,tab:t}){let[r,n]=(0,ed.useState)("1"),[o,i]=(0,ed.useState)(0);return(0,ed.useEffect)(()=>{n(t)},[t]),(0,ed.useEffect)(()=>{let a=document.getElementById("graph-canvas"),s=0,l,c=()=>{if(s++,s%3===0&&a){let u=document.querySelector(".side-bar-panel");u&&u.style.display!=="none"?i(u.clientWidth):i(0)}l=requestAnimationFrame(c)};return l=requestAnimationFrame(c),()=>{cancelAnimationFrame(l)}},[]),(0,Ln.jsx)(Da,{theme:{token:{colorText:"var(--fg-color)",colorBgContainer:"var(--comfy-input-bg)",colorBgElevated:"var(--comfy-input-bg)",colorFillSecondary:"var(--comfy-input-bg)",controlItemBgHover:"var(--comfy-input-bg)",colorBgTextHover:"var(--comfy-input-bg)",colorBorder:"var(--p-inputtext-border-color)"}},children:(0,Ln.jsxs)("div",{className:"sdppp-menu-container",style:{paddingLeft:o},children:[(0,Ln.jsxs)("div",{className:"sdppp-menu-header",children:[(0,Ln.jsxs)("div",{className:"sdppp-menu-header-left",children:[(0,Ln.jsx)("button",{onClick:()=>n("1"),className:r==="1"?"active":"",children:me("Simplify Workflow")}),(0,Ln.jsx)("button",{onClick:()=>n("2"),className:r==="2"?"active":"",children:me("Photoshop")})]}),(0,Ln.jsx)("span",{children:"Powered by SDPPP"}),(0,Ln.jsx)("button",{className:"sdppp-menu-close-button",onClick:e,children:(0,Ln.jsx)(s3,{size:18})})]}),(0,Ln.jsxs)("div",{className:"sdppp-menu-content",children:[(0,Ln.jsx)("div",{className:"sdppp-menu-workflow-edit-wrap",style:{display:r==="1"?"block":"none"},children:(0,Ln.jsx)(Zu,{})}),(0,Ln.jsx)("div",{className:"sdppp-menu-settings-wrap",style:{display:r==="2"?"block":"none"},children:(0,Ln.jsx)(QF,{})})]})]})})}var nc=E(fr(),1);function LE({onMaximize:e,onPhotoshop:t}){return(0,nc.jsxs)("div",{className:"sdppp-side-container",children:[(0,nc.jsxs)("div",{className:"sdppp-side-header",children:[(0,nc.jsx)("button",{className:"sdppp-photoshop-icon",onClick:t}),(0,nc.jsx)("button",{className:"pi pi-window-maximize",onClick:e})]}),(0,nc.jsx)(Zu,{})]})}var p3=null,gG=null,FE=null;async function jE(e){if(!p3){let t=document.createElement("div");t.id="sdppp-popup-root",t.style.display="none",document.getElementById("graph-canvas-container")?.prepend(t),e.extensionManager.registerSidebarTab({id:"sdppp",title:"SD-PPP",tooltip:"SD-PPP Workflow UI",icon:"sdppp-side-icon",type:"custom",render:r=>{gG||(r.style.width="100%",r.style.height="auto",r.style.padding="8px",(0,WE.createRoot)(r).render((0,zE.createElement)(LE,{onMaximize:()=>{n("1")},onPhotoshop:()=>{n("2")}}))),t.style.display="none";function n(o){p3?FE.props.tab=o:(FE=(0,zE.createElement)(ME,{onClose:()=>{t.style.display="none"},tab:o}),(0,WE.createRoot)(t).render(FE)),t.style.display="flex",document.querySelector(".sdppp-side-icon")?.parentElement?.click()}}})}}an.addEventListener("graphChanged",e=>{let r=(mt.workflowManager||mt.extensionManager.workflow).activeWorkflow;if(e.detail.id!==r.activeState.id)return;let n=Ke.data.widgetTableStructure,o=em(mt.graph,r);y3(o,n)&&Ke.setWidgetTableStructure(o),Ke.setWidgetTableValue(gd(mt.graph))});an.addEventListener("executed",()=>{Ke.setWidgetTableValue(gd(mt.graph))});var m3=0,g3=!0,h3="";function v3(){requestAnimationFrame(v3);let e=mt.workflowManager||mt.extensionManager.workflow,t=e.activeWorkflow,r=t?.id||0,n=t?.path||"",o=t?.isPersisted||!0;if(r===m3&&n===h3&&o===g3)return;m3=r,h3=n,g3=o;let i=em(mt.graph,t),a=gd(mt.graph);Ke.setWidgetTableStructure(i),Ke.setWidgetTableValue(a),setTimeout(()=>{if(t!==e.activeWorkflow)return;let s=em(mt.graph,t),l=gd(mt.graph);y3(s,i)&&Ke.setWidgetTableStructure(s),Ke.setWidgetTableValue(l)},800)}requestAnimationFrame(v3);function y3(e,t){return e.nodeIndexes.length!==t.nodeIndexes.length||JSON.stringify(e.nodeIndexes)!==JSON.stringify(t.nodeIndexes)||JSON.stringify(e.groups)!==JSON.stringify(t.groups)||JSON.stringify(e.nodes)!==JSON.stringify(t.nodes)}async function hG(e,t,r){t.addEventListener("progress",({detail:s})=>{if(!s||isNaN(s.value/s.max))return;let l=Math.round(s.value/s.max*100);Ke.setProgress(l)}),t.addEventListener("status",s=>{s.detail?.exec_info&&Ke.setQueueSize(s.detail.exec_info.queue_remaining)}),t.addEventListener("execution_error",({detail:s})=>{if(Ke.setExecutingNodeTitle(""),Ke.setLastError(s.exception_message),s.node_id){let l=e.graph.nodes.find(c=>c.id==s.node_id);Ke.setWidgetTableErrors({[s.node_id]:`[${l?.title||s.node_id}]`+s.exception_message})}});let n=[];t.addEventListener("execution_start",({detail:s})=>{if(Ke.setLastError(""),Ke.setWidgetTableErrors({}),Ke.setProgress(0),Ke.setExecutingNodeTitle(""),n.length){let l=n.shift();l&&o.set(s.prompt_id,l)}}),t.addEventListener("executing",s=>{let l=s.detail,c=graph.nodes.find(u=>u.id==l);c&&Ke.setExecutingNodeTitle(c.title)}),t.addEventListener("execution_success",s=>{Ke.setProgress(0),Ke.setExecutingNodeTitle(""),ul.get(s.detail.prompt_id)&&ul.delete(s.detail.prompt_id)}),t.addEventListener("execution_interrupted",()=>{Ke.setProgress(0),Ke.setExecutingNodeTitle("")});let o=new Map;t.addEventListener("executed",s=>{if(s.detail.output&&Array.isArray(s.detail.output.images)&&s.detail.output.images.length>0){let l=null;if(ul.get(s.detail.prompt_id)?l=ul.get(s.detail.prompt_id):l=location.search.match(/webview_fromsid=([^&]+)/)?.[1]||"",!l)return;e.graph.nodes.filter(c=>c.type=="Send Images To Photoshop").filter(c=>c.mode==0).length||i?.sendImage(l,{document_identify:Xt.getSpecialDocumentForPreview(),layer_identifies:s.detail.output.images.map(()=>Xt.getSpecialLayerForSend()[0]),boundaries:s.detail.output.images.map(()=>""),image_urls:s.detail.output.images.map(c=>location.origin+"/api/view?type="+c.type+"&filename="+c.filename),new_layer_name:rm(Ke.data.widgetTableStructure.widgetTablePath)})}}),jE(e);var i=new jn;i.connect(),e.registerExtension({name:"Comfy.SD-PPP",async setup(){},async beforeRegisterNodeDef(s,l,c){try{WR(s,l)}catch(u){Pp.push(u.stack||u.message||u)}}})}var Pp=[];(async function(){if(!(typeof gradioApp<"u")){try{let e=window.comfyAPI?.app?.app,t=window.comfyAPI?.ui?.$el,r=window.comfyAPI?.api?.api;if(!e||!r||!t)throw new Error("comfyAPI is not initialized, maybe comfyUI is too old");await YE(),await hG(e,r,t),import("./sdppp-custom.js").then(n=>{n.default(sa)})}catch(e){Pp.push(e.stack||e.message||e)}await new Promise(e=>setTimeout(e,2e3)),Pp.length&&(console.error(Pp[0]),alert(`sd-ppp init failed: + `]:{zIndex:10,width:n,margin:`0 ${ne(e.marginXXS)}`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ne(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ne(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var L9=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},IF=L9;var F9=e=>{let{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},ar(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}},W9=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),TF=qt("Upload",e=>{let{fontSizeHeading3:t,fontHeight:r,lineWidth:n,pictureCardSize:o,calc:i}=e,a=ct(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(r).div(2)).add(n).equal(),uploadPicCardSize:o});return[F9(a),RF(a),OF(a),NF(a),_F(a),PF(a),IF(a),vw(a)]},W9);var Gt=E(I());var S0=E(I());var z9={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:r}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},$F=z9;var j9=function(t,r){return S0.createElement(Wt,le({},t,{ref:r,icon:$F}))},B9=S0.forwardRef(j9),DF=B9;var C0=E(I());var V9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},AF=V9;var H9=function(t,r){return C0.createElement(Wt,le({},t,{ref:r,icon:AF}))},U9=C0.forwardRef(H9),kF=U9;var x0=E(I());var G9={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:r}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:r}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:r}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},MF=G9;var q9=function(t,r){return x0.createElement(Wt,le({},t,{ref:r,icon:MF}))},K9=x0.forwardRef(q9),LF=K9;var NE=E($e());function wp(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Ep(e,t){let r=re(t),n=r.findIndex(({uid:o})=>o===e.uid);return n===-1?r.push(e):r[n]=e,r}function w0(e,t){let r=e.uid!==void 0?"uid":"name";return t.filter(n=>n[r]===e[r])[0]}function FF(e,t){let r=e.uid!==void 0?"uid":"name",n=t.filter(o=>o[r]!==e[r]);return n.length===t.length?null:n}var X9=(e="")=>{let t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},WF=e=>e.indexOf("image/")===0,zF=e=>{if(e.type&&!e.thumbUrl)return WF(e.type);let t=e.thumbUrl||e.url||"",r=X9(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r)?!0:!(/^data:/.test(t)||r)},Js=200;function jF(e){return new Promise(t=>{if(!e.type||!WF(e.type)){t("");return}let r=document.createElement("canvas");r.width=Js,r.height=Js,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${Js}px; height: ${Js}px; z-index: 9999; display: none;`,document.body.appendChild(r);let n=r.getContext("2d"),o=new Image;if(o.onload=()=>{let{width:i,height:a}=o,s=Js,l=Js,c=0,u=0;i>a?(l=a*(Js/i),u=-(l-s)/2):(s=i*(Js/a),c=-(s-l)/2),n.drawImage(o,c,u,s,l);let d=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(o.src),t(d)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(o.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){let i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}var zt=E(I());var E0=E(I());var Y9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},BF=Y9;var Q9=function(t,r){return E0.createElement(Wt,le({},t,{ref:r,icon:BF}))},J9=E0.forwardRef(Q9),VF=J9;var Zs=E($e());var Z9=zt.forwardRef(({prefixCls:e,className:t,style:r,locale:n,listType:o,file:i,items:a,progress:s,iconRender:l,actionIconRender:c,itemRender:u,isImgUrl:d,showPreviewIcon:f,showRemoveIcon:m,showDownloadIcon:h,previewIcon:v,removeIcon:y,downloadIcon:g,extra:p,onPreview:b,onDownload:S,onClose:C},w)=>{var x,R;let{status:O}=i,[_,T]=zt.useState(O);zt.useEffect(()=>{O!=="removed"&&T(O)},[O]);let[$,D]=zt.useState(!1);zt.useEffect(()=>{let K=setTimeout(()=>{D(!0)},300);return()=>{clearTimeout(K)}},[]);let M=l(i),A=zt.createElement("div",{className:`${e}-icon`},M);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(_==="uploading"||!i.thumbUrl&&!i.url){let K=(0,Zs.default)(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:_!=="uploading"});A=zt.createElement("div",{className:K},M)}else{let K=d?.(i)?zt.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):M,ee=(0,Zs.default)(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:d&&!d(i)});A=zt.createElement("a",{className:ee,onClick:ae=>b(i,ae),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},K)}let F=(0,Zs.default)(`${e}-list-item`,`${e}-list-item-${_}`),W=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,j=(typeof m=="function"?m(i):m)?c((typeof y=="function"?y(i):y)||zt.createElement(yF,null),()=>C(i),e,n.removeFile,!0):null,G=(typeof h=="function"?h(i):h)&&_==="done"?c((typeof g=="function"?g(i):g)||zt.createElement(VF,null),()=>S(i),e,n.downloadFile):null,q=o!=="picture-card"&&o!=="picture-circle"&&zt.createElement("span",{key:"download-delete",className:(0,Zs.default)(`${e}-list-item-actions`,{picture:o==="picture"})},G,j),H=typeof p=="function"?p(i):p,U=H&&zt.createElement("span",{className:`${e}-list-item-extra`},H),z=(0,Zs.default)(`${e}-list-item-name`),k=i.url?zt.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:z,title:i.name},W,{href:i.url,onClick:K=>b(i,K)}),i.name,U):zt.createElement("span",{key:"view",className:z,onClick:K=>b(i,K),title:i.name},i.name,U),B=(typeof f=="function"?f(i):f)&&(i.url||i.thumbUrl)?zt.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:K=>b(i,K),title:n.previewFile},typeof v=="function"?v(i):v||zt.createElement(u0,null)):null,V=(o==="picture-card"||o==="picture-circle")&&_!=="uploading"&&zt.createElement("span",{className:`${e}-list-item-actions`},B,_==="done"&&G,j),{getPrefixCls:oe}=zt.useContext(nt),J=oe(),Q=zt.createElement("div",{className:F},A,k,q,V,$&&zt.createElement(Go,{motionName:`${J}-fade`,visible:_==="uploading",motionDeadline:2e3},({className:K})=>{let ee="percent"in i?zt.createElement(hF,Object.assign({type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]},s)):null;return zt.createElement("div",{className:(0,Zs.default)(`${e}-list-item-progress`,K)},ee)})),pe=i.response&&typeof i.response=="string"?i.response:((x=i.error)===null||x===void 0?void 0:x.statusText)||((R=i.error)===null||R===void 0?void 0:R.message)||n.uploadError,Z=_==="error"?zt.createElement(Fa,{title:pe,getPopupContainer:K=>K.parentNode},Q):Q;return zt.createElement("div",{className:(0,Zs.default)(`${e}-list-item-container`,t),style:r,ref:w},u?u(Z,i,a,{download:S.bind(null,i),preview:b.bind(null,i),remove:C.bind(null,i)}):Z)}),HF=Z9;var eG=(e,t)=>{let{listType:r="text",previewFile:n=jF,onPreview:o,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:c=zF,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:m=!0,showDownloadIcon:h=!1,removeIcon:v,previewIcon:y,downloadIcon:g,extra:p,progress:b={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:C=!0,itemRender:w,disabled:x}=e,[,R]=B2(),[O,_]=Gt.useState(!1),T=["picture-card","picture-circle"].includes(r);Gt.useEffect(()=>{r.startsWith("picture")&&(d||[]).forEach(z=>{!(z.originFileObj instanceof File||z.originFileObj instanceof Blob)||z.thumbUrl!==void 0||(z.thumbUrl="",n?.(z.originFileObj).then(k=>{z.thumbUrl=k||"",R()}))})},[r,d,n]),Gt.useEffect(()=>{_(!0)},[]);let $=(z,k)=>{if(o)return k?.preventDefault(),o(z)},D=z=>{typeof i=="function"?i(z):z.url&&window.open(z.url)},M=z=>{a?.(z)},A=z=>{if(l)return l(z,r);let k=z.status==="uploading";if(r.startsWith("picture")){let B=r==="picture"?Gt.createElement(Wl,null):s.uploading,V=c?.(z)?Gt.createElement(LF,null):Gt.createElement(DF,null);return k?B:V}return k?Gt.createElement(Wl,null):Gt.createElement(kF,null)},F=(z,k,B,V,oe)=>{let J={type:"text",size:"small",title:V,onClick:Q=>{var pe,Z;k(),Gt.isValidElement(z)&&((Z=(pe=z.props).onClick)===null||Z===void 0||Z.call(pe,Q))},className:`${B}-list-item-action`,disabled:oe?x:!1};return Gt.isValidElement(z)?Gt.createElement(zf,Object.assign({},J,{icon:Ko(z,Object.assign(Object.assign({},z.props),{onClick:()=>{}}))})):Gt.createElement(zf,Object.assign({},J),Gt.createElement("span",null,z))};Gt.useImperativeHandle(t,()=>({handlePreview:$,handleDownload:D}));let{getPrefixCls:W}=Gt.useContext(nt),j=W("upload",u),G=W(),q=(0,NE.default)(`${j}-list`,`${j}-list-${r}`),H=Gt.useMemo(()=>Gr(r$(G),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[G]),U=Object.assign(Object.assign({},T?{}:H),{motionDeadline:2e3,motionName:`${j}-${T?"animate-inline":"animate"}`,keys:re(d.map(z=>({key:z.uid,file:z}))),motionAppear:O});return Gt.createElement("div",{className:q},Gt.createElement(Yx,Object.assign({},U,{component:!1}),({key:z,file:k,className:B,style:V})=>Gt.createElement(HF,{key:z,locale:s,prefixCls:j,className:B,style:V,file:k,items:d,progress:b,listType:r,isImgUrl:c,showPreviewIcon:f,showRemoveIcon:m,showDownloadIcon:h,removeIcon:v,previewIcon:y,downloadIcon:g,extra:p,iconRender:A,actionIconRender:F,itemRender:w,onPreview:$,onDownload:D,onClose:M})),S&&Gt.createElement(Go,Object.assign({},U,{visible:C,forceRender:!0}),({className:z,style:k})=>Ko(S,B=>({className:(0,NE.default)(B.className,z),style:Object.assign(Object.assign(Object.assign({},k),{pointerEvents:z?"none":void 0}),B.style)}))))},tG=Gt.forwardRef(eG),UF=tG;var rG=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})},Ju=`__LIST_IGNORE_${Date.now()}__`,nG=(e,t)=>{let r=Dn("upload"),{fileList:n,defaultFileList:o,onRemove:i,showUploadList:a=!0,listType:s="text",onPreview:l,onDownload:c,onChange:u,onDrop:d,previewFile:f,disabled:m,locale:h,iconRender:v,isImageUrl:y,progress:g,prefixCls:p,className:b,type:S="select",children:C,style:w,itemRender:x,maxCount:R,data:O={},multiple:_=!1,hasControlInside:T=!0,action:$="",accept:D="",supportServerRender:M=!0,rootClassName:A}=e,F=br.useContext(Hr),W=m??F,j=e.customRequest||r.customRequest,[G,q]=ir(o||[],{value:n,postState:Ce=>Ce??[]}),[H,U]=br.useState("drop"),z=br.useRef(null),k=br.useRef(null);br.useMemo(()=>{let Ce=Date.now();(n||[]).forEach((he,Be)=>{!he.uid&&!Object.isFrozen(he)&&(he.uid=`__AUTO__${Ce}_${Be}__`)})},[n]);let B=(Ce,he,Be)=>{let Le=re(he),rt=!1;R===1?Le=Le.slice(-1):R&&(rt=Le.length>R,Le=Le.slice(0,R)),(0,IE.flushSync)(()=>{q(Le)});let St={file:Ce,fileList:Le};Be&&(St.event=Be),(!rt||Ce.status==="removed"||Le.some(pt=>pt.uid===Ce.uid))&&(0,IE.flushSync)(()=>{u?.(St)})},V=(Ce,he)=>rG(void 0,void 0,void 0,function*(){let{beforeUpload:Be,transformFile:Le}=e,rt=Ce;if(Be){let St=yield Be(Ce,he);if(St===!1)return!1;if(delete Ce[Ju],St===Ju)return Object.defineProperty(Ce,Ju,{value:!0,configurable:!0}),!1;typeof St=="object"&&St&&(rt=St)}return Le&&(rt=yield Le(rt)),rt}),oe=Ce=>{let he=Ce.filter(rt=>!rt.file[Ju]);if(!he.length)return;let Be=he.map(rt=>wp(rt.file)),Le=re(G);Be.forEach(rt=>{Le=Ep(rt,Le)}),Be.forEach((rt,St)=>{let pt=rt;if(he[St].parsedFile)rt.status="uploading";else{let{originFileObj:ke}=rt,be;try{be=new File([ke],ke.name,{type:ke.type})}catch{be=new Blob([ke],{type:ke.type}),be.name=ke.name,be.lastModifiedDate=new Date,be.lastModified=new Date().getTime()}be.uid=rt.uid,pt=be}B(pt,Le)})},J=(Ce,he,Be)=>{try{typeof Ce=="string"&&(Ce=JSON.parse(Ce))}catch{}if(!w0(he,G))return;let Le=wp(he);Le.status="done",Le.percent=100,Le.response=Ce,Le.xhr=Be;let rt=Ep(Le,G);B(Le,rt)},Q=(Ce,he)=>{if(!w0(he,G))return;let Be=wp(he);Be.status="uploading",Be.percent=Ce.percent;let Le=Ep(Be,G);B(Be,Le,Ce)},pe=(Ce,he,Be)=>{if(!w0(Be,G))return;let Le=wp(Be);Le.error=Ce,Le.response=he,Le.status="error";let rt=Ep(Le,G);B(Le,rt)},Z=Ce=>{let he;Promise.resolve(typeof i=="function"?i(Ce):i).then(Be=>{var Le;if(Be===!1)return;let rt=FF(Ce,G);rt&&(he=Object.assign(Object.assign({},Ce),{status:"removed"}),G?.forEach(St=>{let pt=he.uid!==void 0?"uid":"name";St[pt]===he[pt]&&!Object.isFrozen(St)&&(St.status="removed")}),(Le=z.current)===null||Le===void 0||Le.abort(he),B(he,rt))})},K=Ce=>{U(Ce.type),Ce.type==="drop"&&d?.(Ce)};br.useImperativeHandle(t,()=>({onBatchStart:oe,onSuccess:J,onProgress:Q,onError:pe,fileList:G,upload:z.current,nativeElement:k.current}));let{getPrefixCls:ee,direction:ae,upload:te}=br.useContext(nt),X=ee("upload",p),de=Object.assign(Object.assign({onBatchStart:oe,onError:pe,onProgress:Q,onSuccess:J},e),{customRequest:j,data:O,multiple:_,action:$,accept:D,supportServerRender:M,prefixCls:X,disabled:W,beforeUpload:V,onChange:void 0,hasControlInside:T});delete de.className,delete de.style,(!C||W)&&delete de.id;let fe=`${X}-wrapper`,[se,Ee,we]=TF(X,fe),[Re]=Ea("Upload",wi.Upload),{showRemoveIcon:ve,showPreviewIcon:Y,showDownloadIcon:Ne,removeIcon:Ue,previewIcon:Ze,downloadIcon:Ae,extra:De}=typeof a=="boolean"?{}:a,je=typeof ve>"u"?!W:ve,Ie=(Ce,he)=>a?br.createElement(UF,{prefixCls:X,listType:s,items:G,previewFile:f,onPreview:l,onDownload:c,onRemove:Z,showRemoveIcon:je,showPreviewIcon:Y,showDownloadIcon:Ne,removeIcon:Ue,previewIcon:Ze,downloadIcon:Ae,iconRender:v,extra:De,locale:Object.assign(Object.assign({},Re),h),isImageUrl:y,progress:g,appendAction:Ce,appendActionVisible:he,itemRender:x,disabled:W}):Ce,We=(0,R0.default)(fe,b,A,Ee,we,te?.className,{[`${X}-rtl`]:ae==="rtl",[`${X}-picture-card-wrapper`]:s==="picture-card",[`${X}-picture-circle-wrapper`]:s==="picture-circle"}),Te=Object.assign(Object.assign({},te?.style),w);if(S==="drag"){let Ce=(0,R0.default)(Ee,X,`${X}-drag`,{[`${X}-drag-uploading`]:G.some(he=>he.status==="uploading"),[`${X}-drag-hover`]:H==="dragover",[`${X}-disabled`]:W,[`${X}-rtl`]:ae==="rtl"});return se(br.createElement("span",{className:We,ref:k},br.createElement("div",{className:Ce,style:Te,onDrop:K,onDragOver:K,onDragLeave:K},br.createElement(OE,Object.assign({},de,{ref:z,className:`${X}-btn`}),br.createElement("div",{className:`${X}-drag-container`},C))),Ie()))}let _e=(0,R0.default)(X,`${X}-select`,{[`${X}-disabled`]:W,[`${X}-hidden`]:!C}),Ge=br.createElement("div",{className:_e,style:Te},br.createElement(OE,Object.assign({},de,{ref:z})));return se(s==="picture-card"||s==="picture-circle"?br.createElement("span",{className:We,ref:k},Ie(Ge,!!C)):br.createElement("span",{className:We,ref:k},Ge,Ie()))},oG=br.forwardRef(nG),_0=oG;var iG=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{style:r,height:n,hasControlInside:o=!1,children:i}=e,a=iG(e,["style","height","hasControlInside","children"]),s=Object.assign(Object.assign({},r),{height:n});return P0.createElement(_0,Object.assign({ref:t,hasControlInside:o},a,{style:s,type:"drag"}),i)}),GF=aG;var TE=_0;TE.Dragger=GF;TE.LIST_IGNORE=Ju;var $E=TE;var YF=E(I(),1);var Pr=E(fr(),1),pG=()=>{let[e,t]=(0,YF.useState)(Ke.data.useSliderForNumberWidget),r=()=>{location.href="/sd-ppp-static/sd-ppp_PS.ccx?_="+Date.now()},n=()=>{location.href="https://gitee.com/zombieyang/sd-ppp/raw/main/static/sd-ppp2_PS.ccx?_="+Date.now()};return(0,Pr.jsxs)("div",{className:"settings-container",children:[(0,Pr.jsx)("h2",{children:me("SDPPP Settings/Misc")}),(0,Pr.jsxs)("div",{className:"settings-section",children:[(0,Pr.jsx)("div",{className:"settings-label",children:(0,Pr.jsx)("label",{children:me("Comfy URL (You can copy it to connect ComfyUI in the plugin):")})}),(0,Pr.jsx)("div",{className:"settings-control",children:location.href.split("?")[0].split("#")[0]})]}),(0,Pr.jsxs)("div",{className:"settings-section settings-row",children:[(0,Pr.jsx)("div",{className:"settings-label",children:(0,Pr.jsxs)("label",{children:[me("Photoshop plugin")," (1.x deprecated)"]})}),(0,Pr.jsx)("div",{className:"settings-control",children:(0,Pr.jsx)("button",{onClick:r,className:"download-button",children:me("Download")})})]}),(0,Pr.jsxs)("div",{className:"settings-section settings-row",children:[(0,Pr.jsx)("div",{className:"settings-label",children:(0,Pr.jsxs)("label",{children:[me("Photoshop plugin")," 2.0"]})}),(0,Pr.jsx)("div",{className:"settings-control",children:(0,Pr.jsx)("button",{onClick:n,className:"download-button",children:me("Download")})})]}),(0,Pr.jsxs)("div",{className:"settings-section settings-row",children:[(0,Pr.jsx)("div",{className:"settings-label",children:(0,Pr.jsx)("label",{htmlFor:"maxImageSize",children:me("use slider for number widget:")})}),(0,Pr.jsx)("div",{className:"settings-control",children:(0,Pr.jsx)(lp,{id:"useSliderForNumberWidget",checked:e,onChange:o=>{t(o.target.checked),Ke.setUseSliderForNumberWidget(o.target.checked),an.storeSetting("sdppp.useSliderForNumberWidget",o.target.checked)}})})]})]})},QF=pG;var d3=E(I(),1);var tc=E(I(),1);var JF=E(I(),1);function N0(e){return e=e||12,{flex:`${e} 0 calc(${e/12*100}% - 10px)`,maxWidth:"100%"}}var Mn=E(fr(),1);function AE({widgetTableStructure:e,widgetTableValue:t,widgetTableErrors:r,onWidgetRender:n,onWidgetChange:o,onTitleRender:i}){let[a,s]=(0,tc.useState)(0),l=(0,tc.useMemo)(()=>e.nodeIndexes.map(f=>{let m=e.nodes[f],h=(p,b,S)=>p.keepRender?b.outputType==="error"?(p.result.push((0,Mn.jsx)("span",{className:"list-error-label",children:t[m.id][S]})),p):(n?.(p,m,b,S),p):p,v=Object.values(e.groups).find(p=>p.nodeIDs.includes(m.id)),y=v?.color||"rgba(127, 127, 127, .4)";if(a&&v?.id!==a)return null;let g=m.uiWeightSum<=8&&m.widgets.length==1&&(m.widgets[0].outputType!=="number"||!e.extraOptions?.useSliderForNumberWidget);return(0,Mn.jsxs)("div",{className:"workflow-edit-field",children:[(0,Mn.jsx)("div",{className:"workflow-edit-field-title",title:m.title,style:{...N0(g?4:12),borderColor:y},children:i?i(m.title,m):(0,Mn.jsx)("span",{children:m.title})}),m.widgets.reduce(h,{keepRender:!0,result:[]}).result.map((p,b)=>(0,Mn.jsx)(DE,{children:p},b)),r[m.id]?(0,Mn.jsx)("span",{className:"list-error-label",children:r[m.id]}):""]},m.id)}).filter(Boolean),[e,t,r,n,o,i,a]),[c,u]=(0,tc.useMemo)(()=>[Object.keys(r).filter(f=>e.nodes[parseInt(f)]),Object.keys(r).filter(f=>!e.nodes[parseInt(f)])],[r,e]),d=null;return u.length>0?d=(0,Mn.jsx)("span",{className:"list-error-label",children:r[+u[0]]}):c.length>0&&(d=(0,Mn.jsx)("span",{className:"list-error-label",children:r[+c[0]]})),(0,Mn.jsxs)(Mn.Fragment,{children:[d,Object.keys(e.nodes).length?"":(0,Mn.jsx)("span",{className:"list-error-label",children:me("no suitable node to control in this workflow")}),(0,Mn.jsx)("div",{className:"workflow-edit-content",children:l})]})}var DE=class extends tc.default.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}componentDidCatch(t,r){this.setState({hasError:!0,error:t})}render(){return this.state.hasError?(0,Mn.jsx)("span",{className:"list-error-label",children:this.state.error?.stack||this.state.error?.message||this.state.error?.toString()}):this.props.children}};var rc=E(I(),1);var ZF=E(I(),1);function el(e){return(0,ZF.useMemo)(()=>N0(e),[e])}var tl=E(fr(),1),e3=({inputMin:e,inputMax:t,inputStep:r,name:n,value:o=0,uiWeight:i=1,extraOptions:a,onValueChange:s})=>{let l=el(i||12),[c,u]=(0,rc.useState)(+o.toFixed(3));(0,rc.useEffect)(()=>{u(+o.toFixed(3))},[o]);let d=(0,rc.useCallback)(h=>{if(h!==null){let v=+h.toFixed(3);u(v)}},[]),f=(0,rc.useCallback)(()=>{s(c)},[c,s]);return!((t-e)/r>1e3)&&i>=1&&a?.useSliderForNumberWidget?(0,tl.jsxs)(Va,{style:{width:"100%",...l},align:"center",children:[(0,tl.jsx)(cE,{style:{flex:1},min:e,max:t,step:r,value:c,onChange:d,onChangeComplete:f}),(0,tl.jsx)(e0,{style:{width:80},min:e,max:t,step:r,value:c,onChange:d,onBlur:f,controls:!1})]}):(0,tl.jsxs)(Va,{style:{width:"100%",...l},align:"center",children:[n&&(0,tl.jsx)("span",{style:{flex:1},children:n}),(0,tl.jsx)(e0,{style:{width:"100%",flex:2},min:e,max:t,step:r,value:c,onChange:d,onBlur:f,controls:!1})]})};var Rp=E(fr(),1),t3=({onSelectUpdate:e,options:t,value:r,name:n,uiWeight:o})=>{let i=s=>{let l=t.indexOf(s);e(s,l)},a=el(o||12);return(0,Rp.jsxs)(Va,{style:{width:"100%",...a},align:"center",children:[n&&(0,Rp.jsx)("span",{style:{flex:1},children:n}),(0,Rp.jsx)(ap,{value:r,options:t.map(s=>({value:s,label:s})),style:{flex:2,minWidth:"100%"},onSelect:i,placeholder:me("select..."),showSearch:!0,filterOption:(s,l)=>(l?.label??"").toLowerCase().includes(s.toLowerCase())})]})};var n3=E(fr(),1),r3=({value:e,name:t,onValueChange:r,uiWeight:n})=>{let o=a=>{r(a.target.checked)},i=el(n||12);return(0,n3.jsx)(lp,{checked:!!e,onChange:o,style:{...i},children:t||""})};var kE=E(fr(),1),{TextArea:mG}=vp,o3=({value:e="",onValueChange:t,uiWeight:r})=>{let n=el(r||12);return(0,kE.jsx)("div",{className:"widget-container",style:n,children:(0,kE.jsx)(mG,{value:e,onChange:i=>{t(i.target.value)},autoSize:{minRows:1}})})};var _p=E(I(),1);var I0=E(fr(),1);function i3({title:e,onTitleChange:t}){let[r,n]=(0,_p.useState)(!1),[o,i]=(0,_p.useState)(e);(0,_p.useEffect)(()=>{i(e)},[e]);let a=()=>{n(!0)};return r?(0,I0.jsx)(vp,{autoFocus:!0,value:o,onChange:u=>{i(u.target.value)},onBlur:()=>{n(!1),o!==e&&t&&t(o)},onKeyDown:u=>{u.key==="Enter"?(n(!1),o!==e&&t&&t(o)):u.key==="Escape"&&(n(!1),i(e))},size:"small",className:"workflow-edit-field-title-input"}):(0,I0.jsx)(Fa,{title:me("click to edit"),children:(0,I0.jsx)("span",{onClick:a,style:{cursor:"pointer"},children:o})})}var Ha=E(fr(),1),a3={fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},s3=({size:e=18,className:t,style:r})=>(0,Ha.jsxs)("svg",{width:e,height:e,className:t,style:r,...a3,children:[(0,Ha.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Ha.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),l3=({size:e=16,className:t,style:r})=>(0,Ha.jsxs)("svg",{width:e,height:e,className:t,style:r,...a3,children:[(0,Ha.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,Ha.jsx)("polyline",{points:"17 8 12 3 7 8"}),(0,Ha.jsx)("line",{x1:"12",y1:"3",x2:"12",y2:"15"})]});var Ua=E(fr(),1),c3=({value:e,onValueChange:t,options:r,nodeID:n})=>{let o=a=>{if(a.file.status==="done"){let s=a.file.response.name;t?.(s)}},i=mt.graph.nodes.find(a=>a.id===e);return(0,Ua.jsxs)(Va,{gap:5,align:"stretch",vertical:!0,children:[(0,Ua.jsxs)(Va,{gap:5,vertical:!0,children:[(0,Ua.jsx)(ap,{style:{flex:1},value:e,onChange:a=>{t?.(a)},options:r.map(a=>({label:a.split("/").pop(),value:a}))}),(0,Ua.jsx)($E,{action:"./api/upload/image",onChange:o,showUploadList:!1,data:a=>({image:a}),children:(0,Ua.jsxs)("button",{type:"button",className:"ant-btn",children:[(0,Ua.jsx)(l3,{size:16})," ",me("upload")]})})]}),e&&(0,Ua.jsx)("img",{src:`./api/view?filename=${e}&type=input&subfolder=${e.startsWith("clipspace/")?"clipspace/":""}&rand=`+Math.random(),width:"100%",style:{aspectRatio:"1/1",objectFit:"contain",cursor:"pointer"},onClick:a=>{mt.constructor.copyToClipspace(mt.graph.nodes.find(s=>s.id===n)),mt.constructor.clipspace_return_node=mt.graph.nodes.find(s=>s.id===n),mt.constructor.open_maskeditor()}})]})};var aa=E(fr(),1),u3=window.comfyAPI.api.api,Zu=class extends d3.default.Component{state={comfyStatus:{sid:"",ssid:"",progress:0,queueSize:0,lastError:"",executingNodeTitle:""},widgetTableStructure:Ke.data.widgetTableStructure,widgetTableValue:Ke.data.widgetTableValue,widgetTableErrors:Ke.data.widgetTableErrors};eventListeners=[];unsubscribes=[];constructor(t){super(t);let r=(a,s)=>{u3.addEventListener(a,s),this.eventListeners.push({event:a,handler:s})};r("progress",({detail:a})=>{if(!a||isNaN(a.value/a.max))return;let s=Math.round(a.value/a.max*100);this.setState({comfyStatus:{...this.state.comfyStatus,progress:s}})}),r("status",a=>{a.detail?.exec_info&&this.setState({comfyStatus:{...this.state.comfyStatus,queueSize:a.detail.exec_info.queue_remaining}})}),r("execution_error",({detail:a})=>{this.setState({comfyStatus:{...this.state.comfyStatus,lastError:a.exception_message,executingNodeTitle:""}})}),r("execution_start",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,lastError:"",progress:0,executingNodeTitle:""}})}),r("executing",a=>{let s=a.detail,l=app.graph.nodes.find(c=>c.id==s);l&&this.setState({comfyStatus:{...this.state.comfyStatus,executingNodeTitle:l.title}})}),r("execution_success",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,progress:0,executingNodeTitle:""}})}),r("execution_interrupted",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,progress:0,executingNodeTitle:""}})});let n=a=>{this.setState({widgetTableStructure:a})};Ke.subscribe("/widgetTableStructure",n);let o=a=>{this.setState({widgetTableValue:a})};Ke.subscribe("/widgetTableValue",o);let i=a=>{this.setState({widgetTableErrors:a})};Ke.subscribe("/widgetTableErrors",i),this.unsubscribes.push(()=>{Ke.unsubscribe(n),Ke.unsubscribe(o),Ke.unsubscribe(i)})}componentWillUnmount(){this.eventListeners.forEach(({event:t,handler:r})=>{u3.removeEventListener(t,r)}),this.unsubscribes.forEach(t=>t())}render(){let t={widgetTableStructure:this.state.widgetTableStructure,widgetTableValue:this.state.widgetTableValue,widgetTableErrors:this.state.widgetTableErrors,onWidgetChange:async(n,o,i,a)=>{let s=app.graph.nodes.find(l=>l.id==n);s&&Zp(s,o,i)},onWidgetRender:(n,o,i,a)=>{if(i.outputType==="number"){let s=i.options?.min??0,l=i.options?.max??100,c=i.options?.step??1;return n.result.push((0,aa.jsx)(e3,{uiWeight:i.uiWeight||12,inputMin:s,inputMax:l,inputStep:c,name:i.name,value:parseFloat(this.state.widgetTableValue[o.id][a]),onValueChange:u=>{t.onWidgetChange(o.id,a,u,o)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0}else{if(i.outputType==="combo")return n.result.push((0,aa.jsx)(t3,{uiWeight:i.uiWeight||12,options:i.options?.values||[],name:i.name,onSelectUpdate:s=>{t.onWidgetChange(o.id,a,s,o)},value:this.state.widgetTableValue[o.id][a],extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="toggle")return n.result.push((0,aa.jsx)(r3,{uiWeight:i.uiWeight||12,name:i.name,value:this.state.widgetTableValue[o.id][a],onValueChange:s=>{t.onWidgetChange(o.id,a,s,o)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="string"||i.outputType==="customtext"||i.outputType==="text")return n.result.push((0,aa.jsx)(o3,{uiWeight:i.uiWeight||12,value:this.state.widgetTableValue[o.id][a],onValueChange:s=>{t.onWidgetChange(o.id,a,s,o)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="PS_LAYER"||i.outputType==="PS_DOCUMENT")return n.result.push((0,aa.jsx)("p",{children:me("only supported in Photoshop")})),!0;if(i.outputType=="IMAGE_PATH"||i.outputType=="MASK_PATH")return n.result.push((0,aa.jsx)(c3,{uiWeight:i.uiWeight||12,value:this.state.widgetTableValue[o.id][a],options:i.options?.values||[],onValueChange:async s=>{t.onWidgetChange(o.id,a,s,o)},nodeID:o.id,extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0}return!0},onTitleRender:(n,o)=>(0,aa.jsx)(i3,{title:n,onTitleChange:i=>{jn.instance.setNodeTitle({node_id:o.id,title:i})}})},r=12;return(0,aa.jsx)(Da,{theme:{components:{Input:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)"},Select:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)",colorBgElevated:"var(--p-form-field-background)",colorTextDescription:"var(--p-form-field-color)",controlItemBgActive:"var(--p-form-field-background)",controlItemBgHover:"var(--p-form-field-border-color)"},Checkbox:{fontSize:r,colorText:"var(--p-form-field-color)"},Radio:{fontSize:r},Slider:{fontSize:r},Switch:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)"},InputNumber:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)"}}},children:(0,aa.jsx)(AE,{...t})})}};var Ln=E(fr(),1),f3=document.createElement("style");f3.innerHTML=bN;document.head.appendChild(f3);function ME({onClose:e,tab:t}){let[r,n]=(0,ed.useState)("1"),[o,i]=(0,ed.useState)(0);return(0,ed.useEffect)(()=>{n(t)},[t]),(0,ed.useEffect)(()=>{let a=document.getElementById("graph-canvas"),s=0,l,c=()=>{if(s++,s%3===0&&a){let u=document.querySelector(".side-bar-panel");u&&u.style.display!=="none"?i(u.clientWidth):i(0)}l=requestAnimationFrame(c)};return l=requestAnimationFrame(c),()=>{cancelAnimationFrame(l)}},[]),(0,Ln.jsx)(Da,{theme:{token:{colorText:"var(--fg-color)",colorBgContainer:"var(--comfy-input-bg)",colorBgElevated:"var(--comfy-input-bg)",colorFillSecondary:"var(--comfy-input-bg)",controlItemBgHover:"var(--comfy-input-bg)",colorBgTextHover:"var(--comfy-input-bg)",colorBorder:"var(--p-inputtext-border-color)"}},children:(0,Ln.jsxs)("div",{className:"sdppp-menu-container",style:{paddingLeft:o},children:[(0,Ln.jsxs)("div",{className:"sdppp-menu-header",children:[(0,Ln.jsxs)("div",{className:"sdppp-menu-header-left",children:[(0,Ln.jsx)("button",{onClick:()=>n("1"),className:r==="1"?"active":"",children:me("Simplify Workflow")}),(0,Ln.jsx)("button",{onClick:()=>n("2"),className:r==="2"?"active":"",children:me("Photoshop")})]}),(0,Ln.jsx)("span",{children:"Powered by SDPPP"}),(0,Ln.jsx)("button",{className:"sdppp-menu-close-button",onClick:e,children:(0,Ln.jsx)(s3,{size:18})})]}),(0,Ln.jsxs)("div",{className:"sdppp-menu-content",children:[(0,Ln.jsx)("div",{className:"sdppp-menu-workflow-edit-wrap",style:{display:r==="1"?"block":"none"},children:(0,Ln.jsx)(Zu,{})}),(0,Ln.jsx)("div",{className:"sdppp-menu-settings-wrap",style:{display:r==="2"?"block":"none"},children:(0,Ln.jsx)(QF,{})})]})]})})}var nc=E(fr(),1);function LE({onMaximize:e,onPhotoshop:t}){return(0,nc.jsxs)("div",{className:"sdppp-side-container",children:[(0,nc.jsxs)("div",{className:"sdppp-side-header",children:[(0,nc.jsx)("button",{className:"sdppp-photoshop-icon",onClick:t}),(0,nc.jsx)("button",{className:"pi pi-window-maximize",onClick:e})]}),(0,nc.jsx)(Zu,{})]})}var p3=null,gG=null,FE=null;async function jE(e){if(!p3){let t=document.createElement("div");t.id="sdppp-popup-root",t.style.display="none",document.getElementById("graph-canvas-container")?.prepend(t),e.extensionManager.registerSidebarTab({id:"sdppp",title:"SD-PPP",tooltip:"SD-PPP Workflow UI",icon:"sdppp-side-icon",type:"custom",render:r=>{gG||(r.style.width="100%",r.style.height="auto",r.style.padding="8px",(0,WE.createRoot)(r).render((0,zE.createElement)(LE,{onMaximize:()=>{n("1")},onPhotoshop:()=>{n("2")}}))),t.style.display="none";function n(o){p3?FE.props.tab=o:(FE=(0,zE.createElement)(ME,{onClose:()=>{t.style.display="none"},tab:o}),(0,WE.createRoot)(t).render(FE)),t.style.display="flex",document.querySelector(".sdppp-side-icon")?.parentElement?.click()}}})}}an.addEventListener("graphChanged",e=>{let r=(mt.workflowManager||mt.extensionManager.workflow).activeWorkflow;if(e.detail.id!==r.activeState.id)return;let n=Ke.data.widgetTableStructure,o=em(mt.graph,r);y3(o,n)&&Ke.setWidgetTableStructure(o),Ke.setWidgetTableValue(gd(mt.graph))});an.addEventListener("executed",()=>{Ke.setWidgetTableValue(gd(mt.graph))});var m3=0,g3=!0,h3="";function v3(){requestAnimationFrame(v3);let e=mt.workflowManager||mt.extensionManager.workflow,t=e.activeWorkflow,r=t?.id||0,n=t?.path||"",o=t?.isPersisted||!0;if(r===m3&&n===h3&&o===g3)return;m3=r,h3=n,g3=o;let i=em(mt.graph,t),a=gd(mt.graph);Ke.setWidgetTableStructure(i),Ke.setWidgetTableValue(a),setTimeout(()=>{if(t!==e.activeWorkflow)return;let s=em(mt.graph,t),l=gd(mt.graph);y3(s,i)&&Ke.setWidgetTableStructure(s),Ke.setWidgetTableValue(l)},800)}requestAnimationFrame(v3);function y3(e,t){return e.nodeIndexes.length!==t.nodeIndexes.length||JSON.stringify(e.nodeIndexes)!==JSON.stringify(t.nodeIndexes)||JSON.stringify(e.groups)!==JSON.stringify(t.groups)||JSON.stringify(e.nodes)!==JSON.stringify(t.nodes)}async function hG(e,t,r){t.addEventListener("progress",({detail:s})=>{if(!s||isNaN(s.value/s.max))return;let l=Math.round(s.value/s.max*100);Ke.setProgress(l)}),t.addEventListener("status",s=>{s.detail?.exec_info&&Ke.setQueueSize(s.detail.exec_info.queue_remaining)}),t.addEventListener("execution_error",({detail:s})=>{if(Ke.setExecutingNodeTitle(""),Ke.setLastError(s.exception_message),s.node_id){let l=e.graph.nodes.find(c=>c.id==s.node_id);Ke.setWidgetTableErrors({[s.node_id]:`[${l?.title||s.node_id}]`+s.exception_message})}});let n=[];t.addEventListener("execution_start",({detail:s})=>{if(Ke.setLastError(""),Ke.setWidgetTableErrors({}),Ke.setProgress(0),Ke.setExecutingNodeTitle(""),n.length){let l=n.shift();l&&o.set(s.prompt_id,l)}}),t.addEventListener("executing",s=>{let l=s.detail,c=graph.nodes.find(u=>u.id==l);c&&Ke.setExecutingNodeTitle(c.title)}),t.addEventListener("execution_success",s=>{Ke.setProgress(0),Ke.setExecutingNodeTitle(""),ul.get(s.detail.prompt_id)&&ul.delete(s.detail.prompt_id)}),t.addEventListener("execution_interrupted",()=>{Ke.setProgress(0),Ke.setExecutingNodeTitle("")});let o=new Map;t.addEventListener("executed",s=>{if(s.detail.output&&Array.isArray(s.detail.output.images)&&s.detail.output.images.length>0){let l=null;if(ul.get(s.detail.prompt_id)?l=ul.get(s.detail.prompt_id):l=location.search.match(/webview_fromsid=([^&]+)/)?.[1]||"",!l)return;e.graph.nodes.filter(c=>c.type=="Send Images To Photoshop").filter(c=>c.mode==0).length||i?.sendImage(l,{document_identify:Xt.getSpecialDocumentForPreview(),layer_identifies:s.detail.output.images.map(()=>Xt.getSpecialLayerForSend()[0]),boundaries:s.detail.output.images.map(()=>""),image_urls:s.detail.output.images.map(c=>location.origin+"/api/view?type="+c.type+"&filename="+c.filename),new_layer_name:rm(Ke.data.widgetTableStructure.widgetTablePath)})}}),jE(e);var i=new jn;i.connect(),e.registerExtension({name:"Comfy.SD-PPP",async setup(){},async beforeRegisterNodeDef(s,l,c){try{WR(s,l)}catch(u){Pp.push(u.stack||u.message||u)}}})}var Pp=[];(async function(){if(!(typeof gradioApp<"u")){try{let e=window.comfyAPI?.app?.app,t=window.comfyAPI?.ui?.$el,r=window.comfyAPI?.api?.api;if(!e||!r||!t)throw new Error("comfyAPI is not initialized, maybe comfyUI is too old");await YE(),await hG(e,r,t),import("./sdppp-custom.js").then(n=>{n.default(sa)})}catch(e){Pp.push(e.stack||e.message||e)}await new Promise(e=>setTimeout(e,2e3)),Pp.length&&(console.error(Pp[0]),alert(`sd-ppp init failed: `+Pp.join(` `)))}})(); /*! Bundled license information: diff --git a/javascript/sdppp-comfy2.js b/javascript/sdppp-comfy2.js index 61ad9f2..6184807 100644 --- a/javascript/sdppp-comfy2.js +++ b/javascript/sdppp-comfy2.js @@ -1,2203 +1,2208 @@ -var Ln = Object.defineProperty; -var $n = (o, x, t) => x in o ? Ln(o, x, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[x] = t; -var me = (o, x, t) => $n(o, typeof x != "symbol" ? x + "" : x, t); -const a = K; +var On = Object.defineProperty; +var Dn = (o, x, t) => x in o ? On(o, x, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[x] = t; +var me = (o, x, t) => Dn(o, typeof x != "symbol" ? x + "" : x, t); +const a = Z; (function(o, x) { - const t = K, r = o(); + const t = Z, r = o(); for (; ; ) try { - if (-parseInt(t(535)) / 1 + parseInt(t(1810)) / 2 + -parseInt(t(1798)) / 3 * (parseInt(t(1193)) / 4) + parseInt(t(657)) / 5 + parseInt(t(2677)) / 6 + -parseInt(t(1966)) / 7 + parseInt(t(2995)) / 8 === x) break; + if (parseInt(t(2803)) / 1 + -parseInt(t(1926)) / 2 + parseInt(t(2094)) / 3 * (-parseInt(t(3004)) / 4) + parseInt(t(2523)) / 5 + parseInt(t(2361)) / 6 * (-parseInt(t(1480)) / 7) + -parseInt(t(2390)) / 8 * (parseInt(t(1916)) / 9) + -parseInt(t(1509)) / 10 * (-parseInt(t(1703)) / 11) === x) break; r.push(r.shift()); } catch { r.push(r.shift()); } -})(yx, 988054); -const Te = window[a(1608)][a(2012)][a(2012)]; -window.comfyAPI.ui.$el; -const R0 = window[a(1608)][a(706)][a(706)]; +})(Px, 379318); +const Ne = window[a(2914)][a(2837)][a(2837)]; +window[a(2914)].ui[a(2194)]; +const R0 = window[a(2914)][a(2753)][a(2753)]; var as; -class Un { +class jn { constructor(x) { me(this, as); const t = a; - this[t(1686)] = x; - const r = this[t(3181)](); - if (!r[t(1122)]) throw new Error(t(2225) + r[t(2800)][t(1592)](", ")); + this[t(528)] = x; + const r = this.validate(); + if (!r.valid) throw new Error(t(2230) + r[t(1139)][t(896)](", ")); } - [(as = a(1686), a(3181))]() { + [(as = a(528), a(2029))]() { const x = a, t = []; - (!this[x(1686)].nodes || Object[x(2123)](this[x(1686)][x(669)])[x(2710)] === 0) && t[x(3062)](x(2937)); - for (const [e, s] of this[x(1686)].edges) - !this[x(1686)][x(669)][e] && t[x(3062)]("Edge references unknown source node: " + e), !this.definition[x(669)][s] && t[x(3062)](x(1423) + s); - const r = this[x(2200)](); - return !r[x(1122)] && t[x(3062)](...r[x(2800)]), { valid: t.length === 0, errors: t }; + (!this[x(528)][x(2844)] || Object[x(1877)](this[x(528)][x(2844)]).length === 0) && t.push("Graph must have at least one node"); + for (const [e, s] of this[x(528)][x(1026)]) + !this[x(528)].nodes[e] && t[x(3019)]("Edge references unknown source node: " + e), !this.definition.nodes[s] && t.push("Edge references unknown target node: " + s); + const r = this[x(1834)](); + return !r[x(467)] && t[x(3019)](...r[x(1139)]), { valid: t[x(1148)] === 0, errors: t }; } - [a(2822)]() { + [a(2085)]() { const x = a, t = /* @__PURE__ */ new Map(); - for (const r of Object[x(2123)](this[x(1686)].nodes)) - t.set(r, []); - for (const [r, e] of this[x(1686)][x(2273)]) { - const s = t[x(674)](r) || []; - s[x(3062)](e), t[x(780)](r, s); + for (const r of Object[x(1877)](this[x(528)][x(2844)])) + t[x(823)](r, []); + for (const [r, e] of this[x(528)][x(1026)]) { + const s = t.get(r) || []; + s[x(3019)](e), t[x(823)](r, s); } return t; } - [a(2200)]() { - const x = a, t = [], r = /* @__PURE__ */ new Set(), e = /* @__PURE__ */ new Set(), s = this[x(2822)](), n = (i, c) => { + [a(1834)]() { + const x = a, t = [], r = /* @__PURE__ */ new Set(), e = /* @__PURE__ */ new Set(), s = this[x(2085)](), n = (i, c) => { const u = x; - if (e[u(2348)](i)) { - const l = c.indexOf(i), d = c[u(1387)](l)[u(2700)](i); - return t[u(3062)]("Cycle detected: " + d[u(1592)](u(3055))), !0; + if (e[u(1281)](i)) { + const l = c[u(2273)](i), f = c[u(1908)](l).concat(i); + return t.push(u(1929) + f[u(896)](u(2672))), !0; } if (r.has(i)) return !1; - r[u(1580)](i), e[u(1580)](i); - const f = s[u(674)](i) || []; - for (const l of f) + r[u(986)](i), e.add(i); + const d = s[u(1507)](i) || []; + for (const l of d) if (n(l, [...c, i])) return !0; - return e[u(875)](i), !1; + return e[u(2375)](i), !1; }; - for (const i of Object[x(2123)](this[x(1686)][x(669)])) - !r[x(2348)](i) && n(i, []); - return { valid: t.length === 0, errors: t }; + for (const i of Object[x(1877)](this[x(528)].nodes)) + !r[x(1281)](i) && n(i, []); + return { valid: t[x(1148)] === 0, errors: t }; } - [a(1804)]() { + buildAdjacencyList() { const x = a, t = /* @__PURE__ */ new Map(); - for (const r of Object[x(2123)](this[x(1686)][x(669)])) - t[x(780)](r, []); - for (const [r, e] of this[x(1686)][x(2273)]) { - const s = t.get(r) || []; - s[x(3062)](e), t[x(780)](r, s); - const n = t[x(674)](e) || []; - n[x(3062)](r), t[x(780)](e, n); + for (const r of Object[x(1877)](this[x(528)][x(2844)])) + t.set(r, []); + for (const [r, e] of this.definition[x(1026)]) { + const s = t[x(1507)](r) || []; + s[x(3019)](e), t[x(823)](r, s); + const n = t[x(1507)](e) || []; + n[x(3019)](r), t.set(e, n); } return t; } - [a(710)](x) { + [a(495)](x) { const t = a; - return this.buildAdjacencyList()[t(674)](x) || []; + return this[t(426)]()[t(1507)](x) || []; } - [a(1316)](x) { + [a(540)](x) { const t = a; - return this.definition[t(669)][x]; + return this[t(528)][t(2844)][x]; } - [a(681)]() { + [a(2231)]() { const x = a; - return Object[x(2123)](this.definition[x(669)]); + return Object[x(1877)](this[x(528)][x(2844)]); } - [a(1070)](x, t) { + [a(1697)](x, t) { const r = a; - return this.definition.edges[r(2172)](([e, s]) => e === x && s === t || e === t && s === x); + return this.definition[r(1026)][r(2257)](([e, s]) => e === x && s === t || e === t && s === x); } - [a(1395)](x, t) { + [a(2279)](x, t) { const r = a; if (x === t) return [x]; - const e = this[r(1804)](), s = [{ nodeId: x, path: [x] }], n = /* @__PURE__ */ new Set(); - for (; s[r(2710)] > 0; ) { - const { nodeId: i, path: c } = s[r(1263)](); - if (n[r(2348)](i)) continue; - if (n[r(1580)](i), i === t) return c; - const u = e[r(674)](i) || []; - for (const f of u) - !n[r(2348)](f) && s[r(3062)]({ nodeId: f, path: [...c, f] }); + const e = this[r(426)](), s = [{ nodeId: x, path: [x] }], n = /* @__PURE__ */ new Set(); + for (; s.length > 0; ) { + const { nodeId: i, path: c } = s[r(1766)](); + if (n[r(1281)](i)) continue; + if (n.add(i), i === t) return c; + const u = e[r(1507)](i) || []; + for (const d of u) + !n.has(d) && s[r(3019)]({ nodeId: d, path: [...c, d] }); } return null; } - hasPath(x, t) { - return this[a(1395)](x, t) !== null; + [a(2798)](x, t) { + return this[a(2279)](x, t) !== null; } - [a(1857)]() { + [a(298)]() { return { ...this.definition }; } } const Ca = (o) => { let x; - const t = /* @__PURE__ */ new Set(), r = (u, f) => { - const l = K, d = typeof u === l(1936) ? u(x) : u; - if (!Object.is(d, x)) { + const t = /* @__PURE__ */ new Set(), r = (u, d) => { + const l = Z, f = typeof u === l(1149) ? u(x) : u; + if (!Object.is(f, x)) { const g = x; - x = f ?? (typeof d !== l(1304) || d === null) ? d : Object[l(661)]({}, x, d), t[l(2617)]((h) => h(x, g)); + x = d ?? (typeof f != "object" || f === null) ? f : Object.assign({}, x, f), t.forEach((h) => h(x, g)); } }, e = () => x, s = () => c, n = (u) => { - const f = K; - return t.add(u), () => t[f(875)](u); + const d = Z; + return t[d(986)](u), () => t[d(2375)](u); }, i = { setState: r, getState: e, getInitialState: s, subscribe: n }, c = x = o(r, e, i); return i; -}, zn = (o) => o ? Ca(o) : Ca; -var Ne; +}, Ln = (o) => o ? Ca(o) : Ca; +var Te; (function(o) { const x = a; - o[x(1133)] = (s) => { + o[x(1561)] = (s) => { }; function t(s) { } - o[x(1809)] = t; + o[x(1492)] = t; function r(s) { throw new Error(); } - o[x(1034)] = r, o[x(692)] = (s) => { + o[x(1635)] = r, o[x(3029)] = (s) => { const n = {}; for (const i of s) n[i] = i; return n; - }, o[x(1256)] = (s) => { - const n = x, i = o[n(2493)](s)[n(2581)]((u) => typeof s[s[u]] !== n(2665)), c = {}; + }, o[x(483)] = (s) => { + const n = x, i = o[n(732)](s).filter((u) => typeof s[s[u]] !== n(867)), c = {}; for (const u of i) c[u] = s[u]; - return o.objectValues(c); - }, o.objectValues = (s) => { + return o[n(1800)](c); + }, o[x(1800)] = (s) => { const n = x; - return o[n(2493)](s)[n(1930)](function(i) { + return o.objectKeys(s)[n(2739)](function(i) { return s[i]; }); - }, o[x(2493)] = typeof Object[x(2123)] === x(1936) ? (s) => Object[x(2123)](s) : (s) => { + }, o[x(732)] = typeof Object[x(1877)] === x(1149) ? (s) => Object[x(1877)](s) : (s) => { const n = x, i = []; for (const c in s) - Object.prototype[n(1315)][n(1522)](s, c) && i.push(c); + Object.prototype.hasOwnProperty.call(s, c) && i[n(3019)](c); return i; - }, o[x(3146)] = (s, n) => { + }, o[x(304)] = (s, n) => { for (const i of s) if (n(i)) return i; - }, o[x(2534)] = typeof Number[x(2534)] === x(1936) ? (s) => Number.isInteger(s) : (s) => typeof s === x(2665) && Number.isFinite(s) && Math.floor(s) === s; - function e(s, n = x(1512)) { + }, o[x(826)] = typeof Number[x(826)] === x(1149) ? (s) => Number[x(826)](s) : (s) => typeof s === x(867) && Number[x(1024)](s) && Math[x(2600)](s) === s; + function e(s, n = " | ") { const i = x; - return s[i(1930)]((c) => typeof c === i(1361) ? "'" + c + "'" : c).join(n); + return s[i(2739)]((c) => typeof c == "string" ? "'" + c + "'" : c)[i(896)](n); } - o[x(2768)] = e, o.jsonStringifyReplacer = (s, n) => { + o.joinValues = e, o[x(2932)] = (s, n) => { const i = x; - return typeof n === i(3242) ? n[i(2732)]() : n; + return typeof n === i(1373) ? n[i(511)]() : n; }; -})(Ne || (Ne = {})); -var _a; +})(Te || (Te = {})); +var Fa; (function(o) { const x = a; - o[x(2969)] = (t, r) => ({ ...t, ...r }); -})(_a || (_a = {})); -const ae = Ne.arrayToEnum([a(1361), a(1220), a(2665), a(766), a(2863), a(3106), a(1591), a(3242), a(1698), a(1936), "undefined", a(1959), a(529), a(1304), "unknown", a(810), a(1123), "never", a(1930), "set"]), E0 = (o) => { + o[x(2625)] = (t, r) => ({ ...t, ...r }); +})(Fa || (Fa = {})); +const ae = Te[a(3029)](["string", "nan", a(867), a(1999), "float", a(2903), a(2923), a(1373), a(1732), a(1149), a(2781), a(2607), a(1912), a(2220), a(1775), "promise", "void", a(1657), a(2739), a(823)]), E0 = (o) => { const x = a; switch (typeof o) { - case x(993): - return ae.undefined; - case x(1361): - return ae[x(1361)]; - case x(2665): - return Number.isNaN(o) ? ae[x(1220)] : ae[x(2665)]; - case x(3106): - return ae[x(3106)]; - case x(1936): - return ae[x(1936)]; - case x(3242): - return ae[x(3242)]; + case x(2781): + return ae[x(2781)]; + case x(2028): + return ae[x(2028)]; + case x(867): + return Number[x(1632)](o) ? ae.nan : ae.number; + case "boolean": + return ae.boolean; + case x(1149): + return ae[x(1149)]; + case x(1373): + return ae[x(1373)]; case "symbol": - return ae[x(1698)]; - case "object": - return Array[x(3255)](o) ? ae[x(529)] : o === null ? ae[x(1959)] : o[x(2517)] && typeof o[x(2517)] === x(1936) && o[x(742)] && typeof o[x(742)] === x(1936) ? ae[x(810)] : typeof Map !== x(993) && o instanceof Map ? ae[x(1930)] : typeof Set < "u" && o instanceof Set ? ae[x(780)] : typeof Date !== x(993) && o instanceof Date ? ae.date : ae[x(1304)]; + return ae[x(1732)]; + case x(2220): + return Array.isArray(o) ? ae[x(1912)] : o === null ? ae.null : o.then && typeof o[x(634)] == "function" && o.catch && typeof o[x(1045)] === x(1149) ? ae[x(2828)] : typeof Map < "u" && o instanceof Map ? ae[x(2739)] : typeof Set < "u" && o instanceof Set ? ae[x(823)] : typeof Date < "u" && o instanceof Date ? ae[x(2923)] : ae[x(2220)]; default: - return ae[x(1440)]; + return ae.unknown; } -}, Z = Ne[a(692)]([a(2421), a(1703), "custom", a(1572), "invalid_union_discriminator", "invalid_enum_value", a(1825), "invalid_arguments", a(765), a(1869), "invalid_string", "too_small", a(1305), a(1998), "not_multiple_of", a(2546)]); +}, K = Te[a(3029)]([a(2165), a(1891), a(2126), a(1945), a(2222), a(1905), a(2592), a(1243), a(1194), a(1819), "invalid_string", "too_small", a(457), a(2444), a(694), a(1136)]); class P0 extends Error { - get [a(2800)]() { - return this[a(908)]; + get errors() { + return this[a(995)]; } constructor(x) { const t = a; - super(), this.issues = [], this.addIssue = (e) => { - const s = K; - this[s(908)] = [...this[s(908)], e]; - }, this[t(2258)] = (e = []) => { + super(), this[t(995)] = [], this.addIssue = (e) => { const s = t; - this.issues = [...this[s(908)], ...e]; + this[s(995)] = [...this.issues, e]; + }, this[t(1968)] = (e = []) => { + const s = t; + this[s(995)] = [...this[s(995)], ...e]; }; const r = new.target.prototype; - Object[t(2109)] ? Object[t(2109)](this, r) : this.__proto__ = r, this[t(2641)] = t(3054), this[t(908)] = x; + Object[t(2849)] ? Object.setPrototypeOf(this, r) : this[t(2806)] = r, this[t(1166)] = t(1123), this[t(995)] = x; } - [a(802)](x) { + format(x) { const t = x || function(s) { - return s[K(1044)]; + return s[Z(2461)]; }, r = { _errors: [] }, e = (s) => { - const n = K; + const n = Z; for (const i of s.issues) - if (i[n(2427)] === n(1572)) i.unionErrors[n(1930)](e); - else if (i[n(2427)] === "invalid_return_type") e(i[n(517)]); - else if (i[n(2427)] === n(2252)) e(i[n(1375)]); - else if (i[n(2474)][n(2710)] === 0) r[n(1613)][n(3062)](t(i)); + if (i.code === "invalid_union") i[n(1125)][n(2739)](e); + else if (i[n(2345)] === n(1194)) e(i[n(345)]); + else if (i[n(2345)] === n(1243)) e(i.argumentsError); + else if (i[n(648)].length === 0) r[n(1484)][n(3019)](t(i)); else { let c = r, u = 0; - for (; u < i.path[n(2710)]; ) { - const f = i[n(2474)][u]; - u === i[n(2474)][n(2710)] - 1 ? (c[f] = c[f] || { _errors: [] }, c[f][n(1613)][n(3062)](t(i))) : c[f] = c[f] || { _errors: [] }, c = c[f], u++; + for (; u < i[n(648)][n(1148)]; ) { + const d = i[n(648)][u]; + u === i[n(648)].length - 1 ? (c[d] = c[d] || { _errors: [] }, c[d][n(1484)][n(3019)](t(i))) : c[d] = c[d] || { _errors: [] }, c = c[d], u++; } } }; return e(this), r; } - static [a(2746)](x) { + static [a(746)](x) { const t = a; - if (!(x instanceof P0)) throw new Error(t(1702) + x); + if (!(x instanceof P0)) throw new Error(t(2755) + x); } - [a(2732)]() { - return this.message; + [a(511)]() { + return this[a(2461)]; } - get [a(1044)]() { + get [a(2461)]() { const x = a; - return JSON[x(1031)](this[x(908)], Ne[x(2161)], 2); + return JSON[x(3038)](this[x(995)], Te[x(2932)], 2); } - get [a(509)]() { + get [a(2218)]() { const x = a; - return this[x(908)][x(2710)] === 0; + return this.issues[x(1148)] === 0; } - [a(2343)](x = (t) => t[a(1044)]) { + [a(2561)](x = (t) => t[a(2461)]) { const t = a, r = {}, e = []; - for (const s of this[t(908)]) - if (s[t(2474)][t(2710)] > 0) { - const n = s.path[0]; + for (const s of this.issues) + if (s[t(648)][t(1148)] > 0) { + const n = s[t(648)][0]; r[n] = r[n] || [], r[n].push(x(s)); - } else e[t(3062)](x(s)); + } else e[t(3019)](x(s)); return { formErrors: e, fieldErrors: r }; } get formErrors() { - return this[a(2343)](); + return this[a(2561)](); } } -P0.create = (o) => new P0(o); +P0[a(558)] = (o) => new P0(o); const Ut = (o, x) => { const t = a; let r; - switch (o[t(2427)]) { - case Z[t(2421)]: - o[t(1412)] === ae[t(993)] ? r = t(3230) : r = t(1633) + o[t(1598)] + t(762) + o[t(1412)]; + switch (o[t(2345)]) { + case K[t(2165)]: + o.received === ae[t(2781)] ? r = "Required" : r = "Expected " + o[t(967)] + t(1731) + o.received; break; - case Z.invalid_literal: - r = t(758) + JSON.stringify(o[t(1598)], Ne[t(2161)]); + case K.invalid_literal: + r = t(458) + JSON[t(3038)](o[t(967)], Te[t(2932)]); break; - case Z.unrecognized_keys: - r = t(1802) + Ne.joinValues(o.keys, ", "); + case K.unrecognized_keys: + r = "Unrecognized key(s) in object: " + Te.joinValues(o[t(1877)], ", "); break; - case Z.invalid_union: - r = t(2380); + case K[t(1945)]: + r = t(1227); break; - case Z.invalid_union_discriminator: - r = t(2972) + Ne[t(2768)](o.options); + case K[t(2222)]: + r = t(2197) + Te.joinValues(o[t(1341)]); break; - case Z[t(1065)]: - r = t(978) + Ne[t(2768)](o[t(2876)]) + t(1884) + o[t(1412)] + "'"; + case K[t(1905)]: + r = "Invalid enum value. Expected " + Te[t(1878)](o[t(1341)]) + t(2510) + o.received + "'"; break; - case Z[t(2252)]: - r = t(2360); + case K[t(1243)]: + r = t(1058); break; - case Z[t(765)]: - r = t(1658); + case K[t(1194)]: + r = t(2622); break; - case Z[t(1869)]: - r = t(2243); + case K[t(1819)]: + r = t(706); break; - case Z[t(893)]: - typeof o.validation == "object" ? t(2978) in o.validation ? (r = t(2333) + o[t(2183)].includes + '"', typeof o.validation[t(1293)] === t(2665) && (r = r + t(1812) + o[t(2183)][t(1293)])) : t(760) in o[t(2183)] ? r = t(1029) + o.validation[t(760)] + '"' : t(1826) in o[t(2183)] ? r = 'Invalid input: must end with "' + o[t(2183)][t(1826)] + '"' : Ne.assertNever(o[t(2183)]) : o[t(2183)] !== t(2338) ? r = t(2767) + o[t(2183)] : r = t(2283); + case K[t(532)]: + typeof o.validation === t(2220) ? "includes" in o[t(2850)] ? (r = t(295) + o[t(2850)][t(555)] + '"', typeof o[t(2850)][t(285)] === t(867) && (r = r + t(2180) + o[t(2850)][t(285)])) : t(1654) in o[t(2850)] ? r = t(2362) + o[t(2850)].startsWith + '"' : t(579) in o.validation ? r = t(371) + o[t(2850)][t(579)] + '"' : Te[t(1635)](o[t(2850)]) : o[t(2850)] !== t(2840) ? r = "Invalid " + o[t(2850)] : r = t(750); break; - case Z[t(2724)]: - o[t(2076)] === t(529) ? r = t(3128) + (o.exact ? "exactly" : o[t(2068)] ? t(1526) : "more than") + " " + o[t(2226)] + t(1568) : o[t(2076)] === t(1361) ? r = t(1625) + (o[t(2579)] ? "exactly" : o[t(2068)] ? t(1526) : "over") + " " + o.minimum + " character(s)" : o[t(2076)] === t(2665) ? r = "Number must be " + (o[t(2579)] ? t(1956) : o[t(2068)] ? t(2197) : t(923)) + o[t(2226)] : o[t(2076)] === t(3242) ? r = t(2852) + (o[t(2579)] ? t(1956) : o[t(2068)] ? t(2197) : "greater than ") + o[t(2226)] : o[t(2076)] === t(1591) ? r = t(2626) + (o[t(2579)] ? t(1956) : o[t(2068)] ? t(2197) : t(923)) + new Date(Number(o[t(2226)])) : r = t(2380); + case K[t(2627)]: + o[t(2291)] === t(1912) ? r = "Array must contain " + (o[t(2164)] ? t(469) : o[t(1752)] ? t(1198) : t(2049)) + " " + o[t(813)] + t(2469) : o[t(2291)] === t(2028) ? r = "String must contain " + (o[t(2164)] ? t(469) : o.inclusive ? "at least" : t(2319)) + " " + o.minimum + " character(s)" : o[t(2291)] === t(867) ? r = t(1810) + (o[t(2164)] ? t(2041) : o[t(1752)] ? "greater than or equal to " : "greater than ") + o[t(813)] : o[t(2291)] === t(1373) ? r = t(1810) + (o.exact ? "exactly equal to " : o[t(1752)] ? t(1144) : t(2779)) + o.minimum : o.type === t(2923) ? r = "Date must be " + (o[t(2164)] ? "exactly equal to " : o[t(1752)] ? t(1144) : t(2779)) + new Date(Number(o[t(813)])) : r = t(1227); break; - case Z.too_big: - o.type === t(529) ? r = t(3128) + (o[t(2579)] ? t(1192) : o[t(2068)] ? "at most" : t(721)) + " " + o.maximum + t(1568) : o[t(2076)] === t(1361) ? r = "String must contain " + (o.exact ? t(1192) : o[t(2068)] ? t(2912) : "under") + " " + o.maximum + " character(s)" : o[t(2076)] === "number" ? r = "Number must be " + (o[t(2579)] ? t(1192) : o[t(2068)] ? "less than or equal to" : "less than") + " " + o[t(631)] : o[t(2076)] === t(3242) ? r = "BigInt must be " + (o.exact ? t(1192) : o[t(2068)] ? t(3249) : "less than") + " " + o[t(631)] : o[t(2076)] === t(1591) ? r = t(2626) + (o[t(2579)] ? t(1192) : o.inclusive ? t(3017) : "smaller than") + " " + new Date(Number(o[t(631)])) : r = "Invalid input"; + case K[t(457)]: + o[t(2291)] === t(1912) ? r = t(397) + (o[t(2164)] ? "exactly" : o[t(1752)] ? t(1758) : t(571)) + " " + o[t(1613)] + " element(s)" : o[t(2291)] === "string" ? r = t(2555) + (o.exact ? t(469) : o.inclusive ? t(1758) : t(787)) + " " + o.maximum + t(2774) : o[t(2291)] === t(867) ? r = t(1810) + (o[t(2164)] ? t(469) : o[t(1752)] ? t(2504) : "less than") + " " + o[t(1613)] : o.type === "bigint" ? r = t(2685) + (o[t(2164)] ? t(469) : o[t(1752)] ? t(2504) : t(571)) + " " + o[t(1613)] : o[t(2291)] === t(2923) ? r = t(777) + (o[t(2164)] ? t(469) : o.inclusive ? t(1898) : "smaller than") + " " + new Date(Number(o[t(1613)])) : r = "Invalid input"; break; - case Z[t(1618)]: - r = t(2380); + case K[t(2126)]: + r = t(1227); break; - case Z.invalid_intersection_types: - r = "Intersection results could not be merged"; + case K[t(2444)]: + r = t(932); break; - case Z[t(2267)]: - r = t(1168) + o[t(2798)]; + case K[t(694)]: + r = t(1883) + o[t(2342)]; break; - case Z[t(2546)]: - r = t(2379); + case K.not_finite: + r = t(1850); break; default: - r = x[t(2272)], Ne[t(1034)](o); + r = x.defaultError, Te[t(1635)](o); } return { message: r }; }; -let Hn = Ut; -function Vn() { - return Hn; +let Mn = Ut; +function $n() { + return Mn; } -const Bn = (o) => { - const x = a, { data: t, path: r, errorMaps: e, issueData: s } = o, n = [...r, ...s[x(2474)] || []], i = { ...s, path: n }; - if (s.message !== void 0) return { ...s, path: n, message: s[x(1044)] }; +const Un = (o) => { + const x = a, { data: t, path: r, errorMaps: e, issueData: s } = o, n = [...r, ...s[x(648)] || []], i = { ...s, path: n }; + if (s[x(2461)] !== void 0) return { ...s, path: n, message: s[x(2461)] }; let c = ""; - const u = e.filter((f) => !!f)[x(1387)]()[x(2462)](); - for (const f of u) - c = f(i, { data: t, defaultError: c }).message; + const u = e.filter((d) => !!d)[x(1908)]().reverse(); + for (const d of u) + c = d(i, { data: t, defaultError: c })[x(2461)]; return { ...s, path: n, message: c }; }; -function ee(o, x) { - const t = a, r = Vn(), e = Bn({ issueData: x, data: o[t(2663)], path: o[t(2474)], errorMaps: [o[t(1281)][t(2896)], o[t(2208)], r, r === Ut ? void 0 : Ut][t(2581)]((s) => !!s) }); - o[t(1281)][t(908)][t(3062)](e); +function Y(o, x) { + const t = a, r = $n(), e = Un({ issueData: x, data: o[t(1506)], path: o.path, errorMaps: [o.common[t(2082)], o[t(2983)], r, r === Ut ? void 0 : Ut][t(362)]((s) => !!s) }); + o[t(2919)].issues[t(3019)](e); } class e0 { constructor() { - this.value = "valid"; - } - [a(2329)]() { const x = a; - this[x(2446)] === x(1122) && (this.value = "dirty"); + this[x(935)] = "valid"; } - [a(1158)]() { + [a(2726)]() { const x = a; - this[x(2446)] !== "aborted" && (this[x(2446)] = x(896)); + this[x(935)] === x(467) && (this.value = "dirty"); } - static [a(1141)](x, t) { + [a(715)]() { + const x = a; + this.value !== x(1363) && (this[x(935)] = x(1363)); + } + static [a(2628)](x, t) { const r = a, e = []; for (const s of t) { - if (s.status === r(896)) return he; - s.status === r(2329) && x.dirty(), e[r(3062)](s[r(2446)]); + if (s.status === r(1363)) return he; + s.status === "dirty" && x[r(2726)](), e[r(3019)](s[r(935)]); } - return { status: x[r(2446)], value: e }; + return { status: x[r(935)], value: e }; } - static async [a(3003)](x, t) { + static async [a(2684)](x, t) { const r = a, e = []; for (const s of t) { - const n = await s[r(480)], i = await s.value; - e[r(3062)]({ key: n, value: i }); + const n = await s.key, i = await s[r(935)]; + e[r(3019)]({ key: n, value: i }); } - return e0.mergeObjectSync(x, e); + return e0[r(574)](x, e); } - static [a(3048)](x, t) { + static [a(574)](x, t) { const r = a, e = {}; for (const s of t) { const { key: n, value: i } = s; - if (n.status === "aborted" || i[r(1227)] === "aborted") return he; - n.status === "dirty" && x[r(2329)](), i[r(1227)] === r(2329) && x.dirty(), n[r(2446)] !== r(1134) && (typeof i[r(2446)] !== r(993) || s[r(2643)]) && (e[n.value] = i.value); + if (n[r(1071)] === "aborted" || i[r(1071)] === r(1363)) return he; + n.status === r(2726) && x[r(2726)](), i[r(1071)] === r(2726) && x[r(2726)](), n.value !== "__proto__" && (typeof i[r(935)] !== r(2781) || s[r(1151)]) && (e[n[r(935)]] = i[r(935)]); } - return { status: x[r(2446)], value: e }; + return { status: x[r(935)], value: e }; } } -const he = Object.freeze({ status: "aborted" }), X0 = (o) => ({ status: a(2329), value: o }), a0 = (o) => ({ status: a(1122), value: o }), Fa = (o) => o.status === a(896), Ta = (o) => o[a(1227)] === a(2329), V0 = (o) => o[a(1227)] === a(1122), gx = (o) => typeof Promise !== a(993) && o instanceof Promise; -var ne; +const he = Object.freeze({ status: a(1363) }), Q0 = (o) => ({ status: "dirty", value: o }), a0 = (o) => ({ status: "valid", value: o }), _a = (o) => o[a(1071)] === a(1363), Na = (o) => o.status === a(2726), H0 = (o) => o[a(1071)] === a(467), gx = (o) => typeof Promise < "u" && o instanceof Promise; +var re; (function(o) { const x = a; - o[x(1892)] = (t) => typeof t == "string" ? { message: t } : t || {}, o[x(2732)] = (t) => typeof t === x(1361) ? t : t == null ? void 0 : t.message; -})(ne || (ne = {})); + o.errToObj = (t) => typeof t === x(2028) ? { message: t } : t || {}, o[x(511)] = (t) => typeof t == "string" ? t : t == null ? void 0 : t.message; +})(re || (re = {})); class p0 { constructor(x, t, r, e) { const s = a; - this._cachedPath = [], this[s(2366)] = x, this.data = t, this[s(2953)] = r, this._key = e; + this[s(2066)] = [], this.parent = x, this.data = t, this._path = r, this._key = e; } - get path() { + get [a(648)]() { const x = a; - return !this._cachedPath[x(2710)] && (Array[x(3255)](this[x(1084)]) ? this[x(1571)][x(3062)](...this[x(2953)], ...this[x(1084)]) : this[x(1571)][x(3062)](...this[x(2953)], this[x(1084)])), this[x(1571)]; + return !this[x(2066)][x(1148)] && (Array.isArray(this[x(2132)]) ? this[x(2066)].push(...this[x(2847)], ...this[x(2132)]) : this[x(2066)][x(3019)](...this[x(2847)], this[x(2132)])), this[x(2066)]; } } -const Na = (o, x) => { +const Ta = (o, x) => { const t = a; - if (V0(x)) return { success: !0, data: x[t(2446)] }; - if (!o[t(1281)][t(908)][t(2710)]) throw new Error(t(1092)); + if (H0(x)) return { success: !0, data: x[t(935)] }; + if (!o.common.issues[t(1148)]) throw new Error("Validation failed but no issues detected."); return { success: !1, get error() { const r = t; - if (this[r(2697)]) return this._error; - const e = new P0(o[r(1281)][r(908)]); - return this._error = e, this._error; + if (this[r(2408)]) return this[r(2408)]; + const e = new P0(o[r(2919)][r(995)]); + return this[r(2408)] = e, this[r(2408)]; } }; }; -function ve(o) { +function we(o) { const x = a; if (!o) return {}; const { errorMap: t, invalid_type_error: r, required_error: e, description: s } = o; - if (t && (r || e)) throw new Error(x(806)); + if (t && (r || e)) throw new Error(x(2733)); return t ? { errorMap: t, description: s } : { errorMap: (i, c) => { - const u = x, { message: f } = o; - return i[u(2427)] === u(1065) ? { message: f ?? c[u(2272)] } : typeof c.data === u(993) ? { message: f ?? e ?? c[u(2272)] } : i.code !== "invalid_type" ? { message: c.defaultError } : { message: f ?? r ?? c.defaultError }; + const u = x, { message: d } = o; + return i[u(2345)] === u(1905) ? { message: d ?? c[u(790)] } : typeof c.data > "u" ? { message: d ?? e ?? c[u(790)] } : i[u(2345)] !== u(2165) ? { message: c.defaultError } : { message: d ?? r ?? c.defaultError }; }, description: s }; } -class Ce { - get [a(541)]() { - return this[a(1575)].description; +function Z(o, x) { + return o = o - 259, Px()[o]; +} +class Fe { + get description() { + const x = a; + return this[x(2200)][x(2428)]; } - _getType(x) { - return E0(x[a(2663)]); + [a(904)](x) { + return E0(x[a(1506)]); } - [a(3148)](x, t) { + [a(1310)](x, t) { const r = a; - return t || { common: x[r(2366)].common, data: x.data, parsedType: E0(x[r(2663)]), schemaErrorMap: this._def[r(717)], path: x[r(2474)], parent: x.parent }; + return t || { common: x.parent[r(2919)], data: x[r(1506)], parsedType: E0(x[r(1506)]), schemaErrorMap: this[r(2200)][r(3e3)], path: x.path, parent: x[r(1181)] }; } - [a(861)](x) { + [a(2437)](x) { const t = a; - return { status: new e0(), ctx: { common: x[t(2366)][t(1281)], data: x[t(2663)], parsedType: E0(x.data), schemaErrorMap: this[t(1575)][t(717)], path: x[t(2474)], parent: x[t(2366)] } }; + return { status: new e0(), ctx: { common: x[t(1181)][t(2919)], data: x.data, parsedType: E0(x[t(1506)]), schemaErrorMap: this[t(2200)][t(3e3)], path: x[t(648)], parent: x[t(1181)] } }; } - [a(2308)](x) { - const t = a, r = this[t(1585)](x); - if (gx(r)) throw new Error(t(1822)); + _parseSync(x) { + const t = a, r = this[t(2297)](x); + if (gx(r)) throw new Error(t(3013)); return r; } - [a(2909)](x) { - const t = a, r = this[t(1585)](x); - return Promise[t(2457)](r); + _parseAsync(x) { + const t = a, r = this[t(2297)](x); + return Promise[t(855)](r); } - [a(2774)](x, t) { + [a(1598)](x, t) { const r = a, e = this.safeParse(x, t); - if (e.success) return e[r(2663)]; - throw e[r(490)]; + if (e[r(2186)]) return e[r(1506)]; + throw e[r(1491)]; } - [a(3098)](x, t) { - const r = a, e = { common: { issues: [], async: (t == null ? void 0 : t[r(2416)]) ?? !1, contextualErrorMap: t == null ? void 0 : t.errorMap }, path: (t == null ? void 0 : t[r(2474)]) || [], schemaErrorMap: this[r(1575)].errorMap, parent: null, data: x, parsedType: E0(x) }, s = this._parseSync({ data: x, path: e[r(2474)], parent: e }); - return Na(e, s); + [a(1110)](x, t) { + const r = a, e = { common: { issues: [], async: (t == null ? void 0 : t[r(2538)]) ?? !1, contextualErrorMap: t == null ? void 0 : t[r(3e3)] }, path: (t == null ? void 0 : t[r(648)]) || [], schemaErrorMap: this[r(2200)][r(3e3)], parent: null, data: x, parsedType: E0(x) }, s = this[r(1386)]({ data: x, path: e[r(648)], parent: e }); + return Ta(e, s); } - [a(877)](x) { + [a(2458)](x) { var e, s; - const t = a, r = { common: { issues: [], async: !!this[t(859)][t(2416)] }, path: [], schemaErrorMap: this[t(1575)][t(717)], parent: null, data: x, parsedType: E0(x) }; - if (!this[t(859)].async) try { - const n = this[t(2308)]({ data: x, path: [], parent: r }); - return V0(n) ? { value: n[t(2446)] } : { issues: r[t(1281)].issues }; + const t = a, r = { common: { issues: [], async: !!this[t(2995)][t(2538)] }, path: [], schemaErrorMap: this[t(2200)][t(3e3)], parent: null, data: x, parsedType: E0(x) }; + if (!this["~standard"][t(2538)]) try { + const n = this[t(1386)]({ data: x, path: [], parent: r }); + return H0(n) ? { value: n.value } : { issues: r[t(2919)].issues }; } catch (n) { - (s = (e = n == null ? void 0 : n[t(1044)]) == null ? void 0 : e.toLowerCase()) != null && s[t(2978)](t(628)) && (this[t(859)].async = !0), r.common = { issues: [], async: !0 }; + (s = (e = n == null ? void 0 : n[t(2461)]) == null ? void 0 : e[t(1119)]()) != null && s[t(555)](t(1255)) && (this[t(2995)].async = !0), r[t(2919)] = { issues: [], async: !0 }; } - return this[t(2909)]({ data: x, path: [], parent: r }).then((n) => V0(n) ? { value: n[t(2446)] } : { issues: r[t(1281)].issues }); + return this[t(1923)]({ data: x, path: [], parent: r }).then((n) => H0(n) ? { value: n[t(935)] } : { issues: r[t(2919)][t(995)] }); } - async [a(2237)](x, t) { - const r = a, e = await this[r(755)](x, t); - if (e[r(3031)]) return e[r(2663)]; - throw e[r(490)]; + async parseAsync(x, t) { + const r = a, e = await this.safeParseAsync(x, t); + if (e[r(2186)]) return e.data; + throw e.error; } - async [a(755)](x, t) { - const r = a, e = { common: { issues: [], contextualErrorMap: t == null ? void 0 : t[r(717)], async: !0 }, path: (t == null ? void 0 : t.path) || [], schemaErrorMap: this[r(1575)][r(717)], parent: null, data: x, parsedType: E0(x) }, s = this[r(1585)]({ data: x, path: e[r(2474)], parent: e }), n = await (gx(s) ? s : Promise[r(2457)](s)); - return Na(e, n); + async [a(1335)](x, t) { + const r = a, e = { common: { issues: [], contextualErrorMap: t == null ? void 0 : t[r(3e3)], async: !0 }, path: (t == null ? void 0 : t[r(648)]) || [], schemaErrorMap: this[r(2200)][r(3e3)], parent: null, data: x, parsedType: E0(x) }, s = this._parse({ data: x, path: e.path, parent: e }), n = await (gx(s) ? s : Promise[r(855)](s)); + return Ta(e, n); } - refine(x, t) { - const r = a, e = (s) => { - const n = K; - return typeof t === n(1361) || typeof t === n(993) ? { message: t } : typeof t === n(1936) ? t(s) : t; + [a(2921)](x, t) { + const r = (e) => { + const s = Z; + return typeof t === s(2028) || typeof t === s(2781) ? { message: t } : typeof t == "function" ? t(e) : t; }; - return this[r(3129)]((s, n) => { - const i = r, c = x(s), u = () => n[i(1910)]({ code: Z.custom, ...e(s) }); - return typeof Promise !== i(993) && c instanceof Promise ? c[i(2517)]((f) => f ? !0 : (u(), !1)) : c ? !0 : (u(), !1); + return this._refinement((e, s) => { + const n = Z, i = x(e), c = () => s[n(960)]({ code: K[n(2126)], ...r(e) }); + return typeof Promise !== n(2781) && i instanceof Promise ? i[n(634)]((u) => u ? !0 : (c(), !1)) : i ? !0 : (c(), !1); }); } refinement(x, t) { - return this._refinement((r, e) => { - const s = K; - return x(r) ? !0 : (e[s(1910)](typeof t === s(1936) ? t(r, e) : t), !1); + const r = a; + return this[r(889)]((e, s) => { + const n = r; + return x(e) ? !0 : (s[n(960)](typeof t === n(1149) ? t(e, s) : t), !1); }); } - [a(3129)](x) { - const t = a; - return new N0({ schema: this, typeName: pe[t(1621)], effect: { type: t(2100), refinement: x } }); + [a(889)](x) { + return new T0({ schema: this, typeName: pe.ZodEffects, effect: { type: "refinement", refinement: x } }); } - [a(957)](x) { - return this._refinement(x); + superRefine(x) { + return this[a(889)](x); } constructor(x) { const t = a; - this[t(812)] = this.safeParseAsync, this[t(1575)] = x, this.parse = this[t(2774)][t(1386)](this), this[t(3098)] = this.safeParse.bind(this), this[t(2237)] = this.parseAsync[t(1386)](this), this[t(755)] = this[t(755)].bind(this), this[t(812)] = this[t(812)][t(1386)](this), this[t(570)] = this[t(570)].bind(this), this.refinement = this[t(2100)][t(1386)](this), this[t(957)] = this.superRefine[t(1386)](this), this[t(2478)] = this[t(2478)][t(1386)](this), this[t(2644)] = this.nullable[t(1386)](this), this[t(1987)] = this[t(1987)][t(1386)](this), this[t(529)] = this[t(529)][t(1386)](this), this.promise = this[t(810)][t(1386)](this), this.or = this.or[t(1386)](this), this.and = this[t(1638)].bind(this), this[t(2450)] = this[t(2450)][t(1386)](this), this[t(2823)] = this[t(2823)][t(1386)](this), this.default = this[t(2485)][t(1386)](this), this[t(742)] = this[t(742)][t(1386)](this), this[t(3065)] = this[t(3065)][t(1386)](this), this[t(1514)] = this.pipe[t(1386)](this), this[t(1558)] = this[t(1558)][t(1386)](this), this[t(1015)] = this[t(1015)][t(1386)](this), this.isOptional = this[t(2275)].bind(this), this["~standard"] = { version: 1, vendor: t(1639), validate: (r) => this[t(877)](r) }; + this[t(2721)] = this[t(1335)], this._def = x, this[t(1598)] = this[t(1598)].bind(this), this.safeParse = this.safeParse[t(2764)](this), this.parseAsync = this[t(650)][t(2764)](this), this.safeParseAsync = this[t(1335)][t(2764)](this), this[t(2721)] = this[t(2721)].bind(this), this.refine = this[t(2921)][t(2764)](this), this.refinement = this[t(2749)][t(2764)](this), this[t(1637)] = this[t(1637)][t(2764)](this), this[t(2184)] = this[t(2184)].bind(this), this[t(3011)] = this[t(3011)][t(2764)](this), this[t(405)] = this[t(405)][t(2764)](this), this.array = this[t(1912)].bind(this), this.promise = this[t(2828)].bind(this), this.or = this.or[t(2764)](this), this[t(1919)] = this.and[t(2764)](this), this.transform = this[t(1593)][t(2764)](this), this[t(2970)] = this[t(2970)].bind(this), this[t(2096)] = this[t(2096)][t(2764)](this), this[t(1045)] = this[t(1045)][t(2764)](this), this[t(1550)] = this[t(1550)][t(2764)](this), this[t(2340)] = this.pipe[t(2764)](this), this[t(1788)] = this[t(1788)].bind(this), this.isNullable = this[t(2808)][t(2764)](this), this.isOptional = this[t(2187)][t(2764)](this), this[t(2995)] = { version: 1, vendor: "zod", validate: (r) => this["~validate"](r) }; } - [a(2478)]() { - return S0[a(1602)](this, this._def); - } - [a(2644)]() { + [a(2184)]() { const x = a; - return D0[x(1602)](this, this[x(1575)]); + return S0[x(558)](this, this[x(2200)]); } - nullish() { + [a(3011)]() { + return D0[a(558)](this, this._def); + } + [a(405)]() { const x = a; - return this[x(2644)]()[x(2478)](); + return this[x(3011)]()[x(2184)](); } - [a(529)]() { - return h0[a(1602)](this); + [a(1912)]() { + return h0[a(558)](this); } - [a(810)]() { + [a(2828)]() { const x = a; - return Ix[x(1602)](this, this[x(1575)]); + return Ix[x(558)](this, this[x(2200)]); } or(x) { const t = a; - return wx[t(1602)]([this, x], this[t(1575)]); + return vx.create([this, x], this[t(2200)]); } and(x) { const t = a; - return Sx[t(1602)](this, x, this[t(1575)]); + return wx[t(558)](this, x, this[t(2200)]); } - [a(2450)](x) { + transform(x) { const t = a; - return new N0({ ...ve(this[t(1575)]), schema: this, typeName: pe[t(1621)], effect: { type: t(2450), transform: x } }); + return new T0({ ...we(this[t(2200)]), schema: this, typeName: pe[t(1728)], effect: { type: t(1593), transform: x } }); } - [a(2485)](x) { - const t = a, r = typeof x === t(1936) ? x : () => x; - return new Ex({ ...ve(this[t(1575)]), innerType: this, defaultValue: r, typeName: pe[t(3051)] }); + [a(2096)](x) { + const t = a, r = typeof x === t(1149) ? x : () => x; + return new Ex({ ...we(this[t(2200)]), innerType: this, defaultValue: r, typeName: pe[t(1388)] }); } - [a(2823)]() { + brand() { const x = a; - return new Hs({ typeName: pe[x(1020)], type: this, ...ve(this[x(1575)]) }); + return new Ms({ typeName: pe[x(1010)], type: this, ...we(this[x(2200)]) }); } - [a(742)](x) { - const t = a, r = typeof x === t(1936) ? x : () => x; - return new Rx({ ...ve(this[t(1575)]), innerType: this, catchValue: r, typeName: pe[t(2521)] }); + [a(1045)](x) { + const t = a, r = typeof x === t(1149) ? x : () => x; + return new Rx({ ...we(this[t(2200)]), innerType: this, catchValue: r, typeName: pe.ZodCatch }); } - [a(3065)](x) { - const t = a, r = this[t(2038)]; - return new r({ ...this._def, description: x }); + [a(1550)](x) { + const t = a, r = this[t(1230)]; + return new r({ ...this[t(2200)], description: x }); } - [a(1514)](x) { - return oa.create(this, x); + pipe(x) { + return oa[a(558)](this, x); } - [a(1558)]() { - return Cx.create(this); + [a(1788)]() { + return Cx[a(558)](this); } - [a(2275)]() { + [a(2187)]() { const x = a; - return this[x(3098)](void 0)[x(3031)]; + return this[x(1110)](void 0)[x(2186)]; } - [a(1015)]() { + [a(2808)]() { const x = a; - return this[x(3098)](null)[x(3031)]; + return this[x(1110)](null)[x(2186)]; } } -const Wn = /^c[^\s-]{8,}$/i, Zn = /^[0-9a-z]+$/, Kn = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Gn = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Jn = /^[a-z0-9_-]{21}$/i, Qn = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Xn = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Yn = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, eo = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"; +const zn = /^c[^\s-]{8,}$/i, Hn = /^[0-9a-z]+$/, Vn = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Bn = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Wn = /^[a-z0-9_-]{21}$/i, Kn = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Zn = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Gn = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Jn = a(2101); let Ux; -const xo = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, to = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, ao = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, ro = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, so = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, no = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, $s = a(1303), oo = new RegExp("^" + $s + "$"); -function Us(o) { +const Qn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Xn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Yn = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, eo = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, xo = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, to = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Ds = a(838), ao = new RegExp("^" + Ds + "$"); +function js(o) { const x = a; - let t = "[0-5]\\d"; - o.precision ? t = t + x(2051) + o[x(2394)] + "}" : o[x(2394)] == null && (t = t + x(2162)); - const r = o[x(2394)] ? "+" : "?"; - return x(2899) + t + ")" + r; + let t = x(1005); + o[x(394)] ? t = t + x(1551) + o[x(394)] + "}" : o[x(394)] == null && (t = t + x(2208)); + const r = o[x(394)] ? "+" : "?"; + return x(1489) + t + ")" + r; } -function io(o) { - return new RegExp("^" + Us(o) + "$"); +function ro(o) { + return new RegExp("^" + js(o) + "$"); } -function co(o) { +function so(o) { const x = a; - let t = $s + "T" + Us(o); + let t = Ds + "T" + js(o); const r = []; - return r[x(3062)](o[x(655)] ? "Z?" : "Z"), o.offset && r.push("([+-]\\d{2}:?\\d{2})"), t = t + "(" + r.join("|") + ")", new RegExp("^" + t + "$"); + return r[x(3019)](o.local ? "Z?" : "Z"), o[x(2353)] && r.push(x(448)), t = t + "(" + r[x(896)]("|") + ")", new RegExp("^" + t + "$"); } -function uo(o, x) { +function no(o, x) { const t = a; - return !!((x === "v4" || !x) && xo[t(2346)](o) || (x === "v6" || !x) && ao[t(2346)](o)); + return !!((x === "v4" || !x) && Qn[t(1531)](o) || (x === "v6" || !x) && Yn[t(1531)](o)); } -function fo(o, x) { +function oo(o, x) { const t = a; - if (!Qn[t(2346)](o)) return !1; + if (!Kn[t(1531)](o)) return !1; try { - const [r] = o.split("."); + const [r] = o[t(1958)]("."); if (!r) return !1; - const e = r[t(1521)](/-/g, "+").replace(/_/g, "/").padEnd(r.length + (4 - r[t(2710)] % 4) % 4, "="), s = JSON.parse(atob(e)); - return !(typeof s !== t(1304) || s === null || t(2990) in s && (s == null ? void 0 : s[t(2990)]) !== t(843) || !s[t(627)] || x && s[t(627)] !== x); + const e = r[t(1252)](/-/g, "+").replace(/_/g, "/")[t(2645)](r.length + (4 - r[t(1148)] % 4) % 4, "="), s = JSON[t(1598)](atob(e)); + return !(typeof s != "object" || s === null || "typ" in s && (s == null ? void 0 : s[t(1070)]) !== t(596) || !s[t(2039)] || x && s.alg !== x); } catch { return !1; } } -function lo(o, x) { +function io(o, x) { const t = a; - return !!((x === "v4" || !x) && to[t(2346)](o) || (x === "v6" || !x) && ro[t(2346)](o)); + return !!((x === "v4" || !x) && Xn[t(1531)](o) || (x === "v6" || !x) && eo[t(1531)](o)); } -class w0 extends Ce { - [a(1585)](x) { +class w0 extends Fe { + _parse(x) { const t = a; - if (this._def[t(1077)] && (x[t(2663)] = String(x[t(2663)])), this._getType(x) !== ae.string) { - const n = this[t(3148)](x); - return ee(n, { code: Z[t(2421)], expected: ae.string, received: n[t(3156)] }), he; + if (this._def[t(2571)] && (x[t(1506)] = String(x.data)), this[t(904)](x) !== ae[t(2028)]) { + const n = this[t(1310)](x); + return Y(n, { code: K[t(2165)], expected: ae[t(2028)], received: n[t(1358)] }), he; } const e = new e0(); let s; - for (const n of this[t(1575)].checks) - if (n[t(1859)] === t(521)) x[t(2663)][t(2710)] < n.value && (s = this[t(3148)](x, s), ee(s, { code: Z[t(2724)], minimum: n[t(2446)], type: t(1361), inclusive: !0, exact: !1, message: n[t(1044)] }), e[t(2329)]()); - else if (n[t(1859)] === "max") x.data[t(2710)] > n[t(2446)] && (s = this[t(3148)](x, s), ee(s, { code: Z[t(1305)], maximum: n.value, type: t(1361), inclusive: !0, exact: !1, message: n.message }), e[t(2329)]()); - else if (n.kind === t(2710)) { - const i = x[t(2663)][t(2710)] > n[t(2446)], c = x[t(2663)][t(2710)] < n[t(2446)]; - (i || c) && (s = this[t(3148)](x, s), i ? ee(s, { code: Z[t(1305)], maximum: n[t(2446)], type: t(1361), inclusive: !0, exact: !0, message: n[t(1044)] }) : c && ee(s, { code: Z[t(2724)], minimum: n[t(2446)], type: t(1361), inclusive: !0, exact: !0, message: n[t(1044)] }), e[t(2329)]()); - } else if (n.kind === t(2255)) !Yn[t(2346)](x[t(2663)]) && (s = this[t(3148)](x, s), ee(s, { validation: t(2255), code: Z[t(893)], message: n[t(1044)] }), e.dirty()); - else if (n[t(1859)] === t(2738)) !Ux && (Ux = new RegExp(eo, "u")), !Ux[t(2346)](x[t(2663)]) && (s = this[t(3148)](x, s), ee(s, { validation: "emoji", code: Z.invalid_string, message: n[t(1044)] }), e.dirty()); - else if (n[t(1859)] === "uuid") !Gn.test(x[t(2663)]) && (s = this[t(3148)](x, s), ee(s, { validation: "uuid", code: Z[t(893)], message: n[t(1044)] }), e.dirty()); - else if (n[t(1859)] === t(2031)) !Jn.test(x[t(2663)]) && (s = this[t(3148)](x, s), ee(s, { validation: t(2031), code: Z[t(893)], message: n[t(1044)] }), e[t(2329)]()); - else if (n[t(1859)] === t(1025)) !Wn[t(2346)](x[t(2663)]) && (s = this[t(3148)](x, s), ee(s, { validation: t(1025), code: Z[t(893)], message: n[t(1044)] }), e[t(2329)]()); - else if (n[t(1859)] === "cuid2") !Zn.test(x[t(2663)]) && (s = this._getOrReturnCtx(x, s), ee(s, { validation: t(1130), code: Z[t(893)], message: n[t(1044)] }), e[t(2329)]()); - else if (n[t(1859)] === t(2035)) !Kn[t(2346)](x.data) && (s = this[t(3148)](x, s), ee(s, { validation: "ulid", code: Z[t(893)], message: n.message }), e[t(2329)]()); - else if (n[t(1859)] === "url") try { + for (const n of this[t(2200)].checks) + if (n[t(1130)] === "min") x[t(1506)][t(1148)] < n[t(935)] && (s = this[t(1310)](x, s), Y(s, { code: K[t(2627)], minimum: n[t(935)], type: t(2028), inclusive: !0, exact: !1, message: n[t(2461)] }), e.dirty()); + else if (n[t(1130)] === t(477)) x.data.length > n[t(935)] && (s = this[t(1310)](x, s), Y(s, { code: K[t(457)], maximum: n[t(935)], type: t(2028), inclusive: !0, exact: !1, message: n[t(2461)] }), e[t(2726)]()); + else if (n[t(1130)] === t(1148)) { + const i = x[t(1506)][t(1148)] > n[t(935)], c = x[t(1506)][t(1148)] < n[t(935)]; + (i || c) && (s = this[t(1310)](x, s), i ? Y(s, { code: K.too_big, maximum: n[t(935)], type: "string", inclusive: !0, exact: !0, message: n[t(2461)] }) : c && Y(s, { code: K[t(2627)], minimum: n[t(935)], type: t(2028), inclusive: !0, exact: !0, message: n[t(2461)] }), e[t(2726)]()); + } else if (n[t(1130)] === t(1921)) !Gn[t(1531)](x[t(1506)]) && (s = this._getOrReturnCtx(x, s), Y(s, { validation: t(1921), code: K.invalid_string, message: n[t(2461)] }), e[t(2726)]()); + else if (n[t(1130)] === t(1562)) !Ux && (Ux = new RegExp(Jn, "u")), !Ux[t(1531)](x[t(1506)]) && (s = this[t(1310)](x, s), Y(s, { validation: t(1562), code: K[t(532)], message: n[t(2461)] }), e[t(2726)]()); + else if (n[t(1130)] === t(1486)) !Bn.test(x.data) && (s = this[t(1310)](x, s), Y(s, { validation: t(1486), code: K.invalid_string, message: n[t(2461)] }), e[t(2726)]()); + else if (n[t(1130)] === t(2402)) !Wn[t(1531)](x[t(1506)]) && (s = this[t(1310)](x, s), Y(s, { validation: "nanoid", code: K[t(532)], message: n[t(2461)] }), e[t(2726)]()); + else if (n[t(1130)] === t(1839)) !zn[t(1531)](x[t(1506)]) && (s = this._getOrReturnCtx(x, s), Y(s, { validation: t(1839), code: K.invalid_string, message: n[t(2461)] }), e[t(2726)]()); + else if (n.kind === "cuid2") !Hn.test(x[t(1506)]) && (s = this._getOrReturnCtx(x, s), Y(s, { validation: t(1678), code: K.invalid_string, message: n.message }), e[t(2726)]()); + else if (n[t(1130)] === t(2351)) !Vn[t(1531)](x[t(1506)]) && (s = this[t(1310)](x, s), Y(s, { validation: "ulid", code: K.invalid_string, message: n.message }), e[t(2726)]()); + else if (n[t(1130)] === t(2740)) try { new URL(x.data); } catch { - s = this[t(3148)](x, s), ee(s, { validation: t(2120), code: Z[t(893)], message: n[t(1044)] }), e[t(2329)](); + s = this[t(1310)](x, s), Y(s, { validation: "url", code: K[t(532)], message: n[t(2461)] }), e[t(2726)](); } else - n.kind === "regex" ? (n[t(2338)].lastIndex = 0, !n[t(2338)].test(x.data) && (s = this[t(3148)](x, s), ee(s, { validation: t(2338), code: Z[t(893)], message: n[t(1044)] }), e[t(2329)]())) : n[t(1859)] === t(2337) ? x.data = x.data[t(2337)]() : n[t(1859)] === "includes" ? !x[t(2663)][t(2978)](n[t(2446)], n[t(1293)]) && (s = this._getOrReturnCtx(x, s), ee(s, { code: Z[t(893)], validation: { includes: n[t(2446)], position: n[t(1293)] }, message: n[t(1044)] }), e[t(2329)]()) : n[t(1859)] === t(1945) ? x[t(2663)] = x[t(2663)][t(1945)]() : n[t(1859)] === "toUpperCase" ? x[t(2663)] = x.data[t(3013)]() : n[t(1859)] === "startsWith" ? !x[t(2663)][t(760)](n[t(2446)]) && (s = this[t(3148)](x, s), ee(s, { code: Z[t(893)], validation: { startsWith: n[t(2446)] }, message: n.message }), e[t(2329)]()) : n[t(1859)] === t(1826) ? !x[t(2663)][t(1826)](n.value) && (s = this[t(3148)](x, s), ee(s, { code: Z[t(893)], validation: { endsWith: n.value }, message: n.message }), e[t(2329)]()) : n[t(1859)] === t(2638) ? !co(n).test(x.data) && (s = this[t(3148)](x, s), ee(s, { code: Z[t(893)], validation: t(2638), message: n[t(1044)] }), e[t(2329)]()) : n[t(1859)] === t(1591) ? !oo[t(2346)](x[t(2663)]) && (s = this[t(3148)](x, s), ee(s, { code: Z[t(893)], validation: t(1591), message: n[t(1044)] }), e[t(2329)]()) : n[t(1859)] === t(2193) ? !io(n).test(x[t(2663)]) && (s = this[t(3148)](x, s), ee(s, { code: Z[t(893)], validation: t(2193), message: n[t(1044)] }), e.dirty()) : n[t(1859)] === t(2523) ? !Xn[t(2346)](x[t(2663)]) && (s = this[t(3148)](x, s), ee(s, { validation: t(2523), code: Z.invalid_string, message: n[t(1044)] }), e[t(2329)]()) : n[t(1859)] === "ip" ? !uo(x[t(2663)], n.version) && (s = this[t(3148)](x, s), ee(s, { validation: "ip", code: Z[t(893)], message: n[t(1044)] }), e[t(2329)]()) : n.kind === t(1749) ? !fo(x[t(2663)], n[t(627)]) && (s = this._getOrReturnCtx(x, s), ee(s, { validation: t(1749), code: Z[t(893)], message: n[t(1044)] }), e[t(2329)]()) : n[t(1859)] === t(2559) ? !lo(x[t(2663)], n[t(2739)]) && (s = this[t(3148)](x, s), ee(s, { validation: t(2559), code: Z[t(893)], message: n.message }), e[t(2329)]()) : n[t(1859)] === t(3046) ? !so[t(2346)](x[t(2663)]) && (s = this[t(3148)](x, s), ee(s, { validation: t(3046), code: Z[t(893)], message: n[t(1044)] }), e[t(2329)]()) : n[t(1859)] === "base64url" ? !no[t(2346)](x.data) && (s = this[t(3148)](x, s), ee(s, { validation: "base64url", code: Z.invalid_string, message: n.message }), e.dirty()) : Ne[t(1034)](n); - return { status: e[t(2446)], value: x[t(2663)] }; + n[t(1130)] === t(2840) ? (n[t(2840)].lastIndex = 0, !n[t(2840)][t(1531)](x[t(1506)]) && (s = this[t(1310)](x, s), Y(s, { validation: t(2840), code: K.invalid_string, message: n[t(2461)] }), e[t(2726)]())) : n[t(1130)] === t(2845) ? x[t(1506)] = x[t(1506)].trim() : n[t(1130)] === "includes" ? !x[t(1506)][t(555)](n[t(935)], n[t(285)]) && (s = this[t(1310)](x, s), Y(s, { code: K[t(532)], validation: { includes: n[t(935)], position: n.position }, message: n[t(2461)] }), e[t(2726)]()) : n[t(1130)] === t(1119) ? x[t(1506)] = x.data[t(1119)]() : n.kind === "toUpperCase" ? x[t(1506)] = x.data[t(1998)]() : n[t(1130)] === t(1654) ? !x[t(1506)][t(1654)](n[t(935)]) && (s = this._getOrReturnCtx(x, s), Y(s, { code: K[t(532)], validation: { startsWith: n[t(935)] }, message: n[t(2461)] }), e.dirty()) : n[t(1130)] === t(579) ? !x[t(1506)].endsWith(n[t(935)]) && (s = this[t(1310)](x, s), Y(s, { code: K[t(532)], validation: { endsWith: n.value }, message: n[t(2461)] }), e.dirty()) : n[t(1130)] === "datetime" ? !so(n).test(x[t(1506)]) && (s = this._getOrReturnCtx(x, s), Y(s, { code: K.invalid_string, validation: t(2988), message: n[t(2461)] }), e[t(2726)]()) : n[t(1130)] === "date" ? !ao.test(x[t(1506)]) && (s = this._getOrReturnCtx(x, s), Y(s, { code: K.invalid_string, validation: t(2923), message: n[t(2461)] }), e[t(2726)]()) : n[t(1130)] === "time" ? !ro(n)[t(1531)](x.data) && (s = this[t(1310)](x, s), Y(s, { code: K.invalid_string, validation: t(1129), message: n[t(2461)] }), e[t(2726)]()) : n[t(1130)] === "duration" ? !Zn[t(1531)](x[t(1506)]) && (s = this[t(1310)](x, s), Y(s, { validation: t(2658), code: K.invalid_string, message: n[t(2461)] }), e[t(2726)]()) : n[t(1130)] === "ip" ? !no(x[t(1506)], n.version) && (s = this[t(1310)](x, s), Y(s, { validation: "ip", code: K[t(532)], message: n[t(2461)] }), e[t(2726)]()) : n[t(1130)] === "jwt" ? !oo(x[t(1506)], n[t(2039)]) && (s = this[t(1310)](x, s), Y(s, { validation: "jwt", code: K[t(532)], message: n[t(2461)] }), e.dirty()) : n.kind === t(2548) ? !io(x[t(1506)], n[t(2317)]) && (s = this[t(1310)](x, s), Y(s, { validation: t(2548), code: K[t(532)], message: n[t(2461)] }), e[t(2726)]()) : n.kind === t(1997) ? !xo[t(1531)](x[t(1506)]) && (s = this[t(1310)](x, s), Y(s, { validation: "base64", code: K[t(532)], message: n[t(2461)] }), e[t(2726)]()) : n[t(1130)] === t(3026) ? !to[t(1531)](x.data) && (s = this[t(1310)](x, s), Y(s, { validation: "base64url", code: K[t(532)], message: n.message }), e[t(2726)]()) : Te[t(1635)](n); + return { status: e[t(935)], value: x[t(1506)] }; } - [a(1341)](x, t, r) { + [a(1476)](x, t, r) { const e = a; - return this[e(2100)]((s) => x[e(2346)](s), { validation: t, code: Z[e(893)], ...ne[e(1892)](r) }); + return this[e(2749)]((s) => x[e(1531)](s), { validation: t, code: K.invalid_string, ...re[e(2404)](r) }); } - [a(1095)](x) { + [a(1616)](x) { const t = a; - return new w0({ ...this[t(1575)], checks: [...this._def[t(1773)], x] }); + return new w0({ ...this[t(2200)], checks: [...this[t(2200)][t(2978)], x] }); } - [a(2255)](x) { + [a(1921)](x) { const t = a; - return this[t(1095)]({ kind: t(2255), ...ne[t(1892)](x) }); + return this[t(1616)]({ kind: t(1921), ...re[t(2404)](x) }); } - [a(2120)](x) { + [a(2740)](x) { const t = a; - return this[t(1095)]({ kind: t(2120), ...ne.errToObj(x) }); + return this[t(1616)]({ kind: t(2740), ...re[t(2404)](x) }); } - [a(2738)](x) { + [a(1562)](x) { const t = a; - return this[t(1095)]({ kind: t(2738), ...ne[t(1892)](x) }); + return this._addCheck({ kind: "emoji", ...re[t(2404)](x) }); } - [a(1551)](x) { + [a(1486)](x) { const t = a; - return this[t(1095)]({ kind: t(1551), ...ne[t(1892)](x) }); + return this._addCheck({ kind: "uuid", ...re[t(2404)](x) }); } - [a(2031)](x) { + [a(2402)](x) { + return this[a(1616)]({ kind: "nanoid", ...re.errToObj(x) }); + } + [a(1839)](x) { const t = a; - return this[t(1095)]({ kind: t(2031), ...ne[t(1892)](x) }); + return this[t(1616)]({ kind: "cuid", ...re[t(2404)](x) }); } - [a(1025)](x) { - return this._addCheck({ kind: "cuid", ...ne.errToObj(x) }); - } - cuid2(x) { + [a(1678)](x) { const t = a; - return this[t(1095)]({ kind: t(1130), ...ne[t(1892)](x) }); + return this[t(1616)]({ kind: t(1678), ...re[t(2404)](x) }); } ulid(x) { - return this[a(1095)]({ kind: "ulid", ...ne.errToObj(x) }); - } - [a(3046)](x) { const t = a; - return this[t(1095)]({ kind: t(3046), ...ne.errToObj(x) }); + return this._addCheck({ kind: "ulid", ...re[t(2404)](x) }); } - [a(1136)](x) { + [a(1997)](x) { const t = a; - return this[t(1095)]({ kind: t(1136), ...ne[t(1892)](x) }); + return this._addCheck({ kind: t(1997), ...re.errToObj(x) }); } - [a(1749)](x) { + [a(3026)](x) { const t = a; - return this._addCheck({ kind: t(1749), ...ne[t(1892)](x) }); + return this[t(1616)]({ kind: t(3026), ...re[t(2404)](x) }); + } + jwt(x) { + const t = a; + return this[t(1616)]({ kind: t(2529), ...re[t(2404)](x) }); } ip(x) { - return this._addCheck({ kind: "ip", ...ne.errToObj(x) }); - } - [a(2559)](x) { const t = a; - return this._addCheck({ kind: t(2559), ...ne[t(1892)](x) }); + return this._addCheck({ kind: "ip", ...re[t(2404)](x) }); } - [a(2638)](x) { + cidr(x) { const t = a; - return typeof x == "string" ? this._addCheck({ kind: "datetime", precision: null, offset: !1, local: !1, message: x }) : this[t(1095)]({ kind: "datetime", precision: typeof (x == null ? void 0 : x[t(2394)]) === t(993) ? null : x == null ? void 0 : x[t(2394)], offset: (x == null ? void 0 : x[t(2887)]) ?? !1, local: (x == null ? void 0 : x[t(655)]) ?? !1, ...ne.errToObj(x == null ? void 0 : x[t(1044)]) }); + return this._addCheck({ kind: t(2548), ...re.errToObj(x) }); } - [a(1591)](x) { + [a(2988)](x) { const t = a; - return this[t(1095)]({ kind: t(1591), message: x }); + return typeof x === t(2028) ? this[t(1616)]({ kind: t(2988), precision: null, offset: !1, local: !1, message: x }) : this[t(1616)]({ kind: "datetime", precision: typeof (x == null ? void 0 : x.precision) === t(2781) ? null : x == null ? void 0 : x[t(394)], offset: (x == null ? void 0 : x.offset) ?? !1, local: (x == null ? void 0 : x[t(2056)]) ?? !1, ...re[t(2404)](x == null ? void 0 : x[t(2461)]) }); } - [a(2193)](x) { + [a(2923)](x) { const t = a; - return typeof x === t(1361) ? this[t(1095)]({ kind: "time", precision: null, message: x }) : this[t(1095)]({ kind: "time", precision: typeof (x == null ? void 0 : x[t(2394)]) === t(993) ? null : x == null ? void 0 : x[t(2394)], ...ne.errToObj(x == null ? void 0 : x[t(1044)]) }); + return this[t(1616)]({ kind: t(2923), message: x }); } - [a(2523)](x) { + time(x) { const t = a; - return this._addCheck({ kind: t(2523), ...ne[t(1892)](x) }); + return typeof x == "string" ? this[t(1616)]({ kind: t(1129), precision: null, message: x }) : this[t(1616)]({ kind: t(1129), precision: typeof (x == null ? void 0 : x[t(394)]) === t(2781) ? null : x == null ? void 0 : x[t(394)], ...re[t(2404)](x == null ? void 0 : x[t(2461)]) }); } - [a(2338)](x, t) { + [a(2658)](x) { + const t = a; + return this[t(1616)]({ kind: t(2658), ...re[t(2404)](x) }); + } + [a(2840)](x, t) { const r = a; - return this[r(1095)]({ kind: r(2338), regex: x, ...ne.errToObj(t) }); + return this[r(1616)]({ kind: "regex", regex: x, ...re[r(2404)](t) }); } - [a(2978)](x, t) { + [a(555)](x, t) { const r = a; - return this[r(1095)]({ kind: r(2978), value: x, position: t == null ? void 0 : t[r(1293)], ...ne.errToObj(t == null ? void 0 : t[r(1044)]) }); + return this[r(1616)]({ kind: r(555), value: x, position: t == null ? void 0 : t[r(285)], ...re.errToObj(t == null ? void 0 : t[r(2461)]) }); } - [a(760)](x, t) { + [a(1654)](x, t) { const r = a; - return this[r(1095)]({ kind: "startsWith", value: x, ...ne[r(1892)](t) }); + return this[r(1616)]({ kind: r(1654), value: x, ...re[r(2404)](t) }); } - [a(1826)](x, t) { + [a(579)](x, t) { const r = a; - return this._addCheck({ kind: r(1826), value: x, ...ne[r(1892)](t) }); + return this[r(1616)]({ kind: r(579), value: x, ...re[r(2404)](t) }); } - [a(521)](x, t) { + [a(316)](x, t) { const r = a; - return this[r(1095)]({ kind: r(521), value: x, ...ne[r(1892)](t) }); + return this[r(1616)]({ kind: r(316), value: x, ...re[r(2404)](t) }); } - [a(753)](x, t) { + max(x, t) { const r = a; - return this[r(1095)]({ kind: r(753), value: x, ...ne[r(1892)](t) }); + return this[r(1616)]({ kind: r(477), value: x, ...re[r(2404)](t) }); } - [a(2710)](x, t) { + [a(1148)](x, t) { const r = a; - return this[r(1095)]({ kind: r(2710), value: x, ...ne[r(1892)](t) }); + return this[r(1616)]({ kind: r(1148), value: x, ...re[r(2404)](t) }); } - nonempty(x) { - return this.min(1, ne.errToObj(x)); + [a(2814)](x) { + const t = a; + return this[t(316)](1, re[t(2404)](x)); } - [a(2337)]() { + [a(2845)]() { const x = a; - return new w0({ ...this[x(1575)], checks: [...this[x(1575)][x(1773)], { kind: x(2337) }] }); + return new w0({ ...this[x(2200)], checks: [...this[x(2200)][x(2978)], { kind: x(2845) }] }); } - [a(1945)]() { + [a(1119)]() { const x = a; - return new w0({ ...this[x(1575)], checks: [...this[x(1575)][x(1773)], { kind: x(1945) }] }); + return new w0({ ...this[x(2200)], checks: [...this[x(2200)][x(2978)], { kind: x(1119) }] }); } - [a(3013)]() { + [a(1998)]() { const x = a; - return new w0({ ...this[x(1575)], checks: [...this[x(1575)][x(1773)], { kind: x(3013) }] }); + return new w0({ ...this._def, checks: [...this[x(2200)][x(2978)], { kind: "toUpperCase" }] }); } get isDatetime() { const x = a; - return !!this[x(1575)].checks[x(3146)]((t) => t[x(1859)] === x(2638)); + return !!this[x(2200)][x(2978)].find((t) => t.kind === x(2988)); } - get isDate() { + get [a(1339)]() { const x = a; - return !!this[x(1575)][x(1773)][x(3146)]((t) => t.kind === x(1591)); + return !!this[x(2200)].checks.find((t) => t[x(1130)] === "date"); } - get [a(3191)]() { + get [a(1691)]() { const x = a; - return !!this[x(1575)][x(1773)][x(3146)]((t) => t[x(1859)] === x(2193)); + return !!this[x(2200)][x(2978)][x(304)]((t) => t[x(1130)] === x(1129)); } - get [a(904)]() { + get isDuration() { const x = a; - return !!this._def[x(1773)].find((t) => t[x(1859)] === x(2523)); + return !!this._def[x(2978)][x(304)]((t) => t[x(1130)] === "duration"); } - get [a(575)]() { + get [a(1894)]() { const x = a; - return !!this[x(1575)].checks.find((t) => t.kind === x(2255)); + return !!this[x(2200)][x(2978)].find((t) => t[x(1130)] === x(1921)); } - get isURL() { + get [a(2001)]() { const x = a; - return !!this[x(1575)][x(1773)].find((t) => t[x(1859)] === "url"); + return !!this[x(2200)][x(2978)][x(304)]((t) => t[x(1130)] === x(2740)); } - get [a(1016)]() { + get [a(1906)]() { const x = a; - return !!this[x(1575)][x(1773)][x(3146)]((t) => t.kind === x(2738)); + return !!this[x(2200)][x(2978)].find((t) => t[x(1130)] === x(1562)); } - get isUUID() { + get [a(2212)]() { const x = a; - return !!this[x(1575)][x(1773)][x(3146)]((t) => t[x(1859)] === x(1551)); + return !!this._def[x(2978)][x(304)]((t) => t[x(1130)] === x(1486)); } - get [a(1007)]() { + get [a(1681)]() { const x = a; - return !!this[x(1575)][x(1773)][x(3146)]((t) => t[x(1859)] === "nanoid"); + return !!this[x(2200)][x(2978)][x(304)]((t) => t.kind === x(2402)); } - get [a(3280)]() { + get [a(837)]() { + return !!this[a(2200)].checks.find((t) => t.kind === "cuid"); + } + get [a(563)]() { const x = a; - return !!this._def[x(1773)][x(3146)]((t) => t[x(1859)] === x(1025)); + return !!this[x(2200)].checks[x(304)]((t) => t[x(1130)] === "cuid2"); } - get [a(2496)]() { + get [a(998)]() { const x = a; - return !!this[x(1575)].checks[x(3146)]((t) => t[x(1859)] === "cuid2"); + return !!this[x(2200)].checks[x(304)]((t) => t[x(1130)] === x(2351)); } - get [a(1978)]() { + get [a(2576)]() { const x = a; - return !!this[x(1575)].checks[x(3146)]((t) => t.kind === x(2035)); + return !!this._def[x(2978)][x(304)]((t) => t[x(1130)] === "ip"); } - get isIP() { + get [a(788)]() { const x = a; - return !!this[x(1575)][x(1773)].find((t) => t[x(1859)] === "ip"); + return !!this._def[x(2978)][x(304)]((t) => t[x(1130)] === x(2548)); } - get [a(2389)]() { + get [a(1830)]() { const x = a; - return !!this[x(1575)][x(1773)][x(3146)]((t) => t[x(1859)] === x(2559)); + return !!this[x(2200)].checks.find((t) => t[x(1130)] === x(1997)); } - get [a(1314)]() { + get [a(597)]() { const x = a; - return !!this[x(1575)][x(1773)][x(3146)]((t) => t[x(1859)] === x(3046)); + return !!this[x(2200)][x(2978)][x(304)]((t) => t[x(1130)] === x(3026)); } - get [a(981)]() { - const x = a; - return !!this._def[x(1773)][x(3146)]((t) => t.kind === "base64url"); - } - get minLength() { + get [a(1979)]() { const x = a; let t = null; - for (const r of this[x(1575)][x(1773)]) - r[x(1859)] === x(521) && (t === null || r[x(2446)] > t) && (t = r[x(2446)]); + for (const r of this._def[x(2978)]) + r[x(1130)] === "min" && (t === null || r[x(935)] > t) && (t = r.value); return t; } - get [a(649)]() { + get [a(388)]() { const x = a; let t = null; - for (const r of this[x(1575)][x(1773)]) - r[x(1859)] === x(753) && (t === null || r.value < t) && (t = r[x(2446)]); + for (const r of this[x(2200)][x(2978)]) + r[x(1130)] === "max" && (t === null || r[x(935)] < t) && (t = r[x(935)]); return t; } } -w0[a(1602)] = (o) => { +w0[a(558)] = (o) => { const x = a; - return new w0({ checks: [], typeName: pe[x(1451)], coerce: (o == null ? void 0 : o.coerce) ?? !1, ...ve(o) }); + return new w0({ checks: [], typeName: pe[x(1620)], coerce: (o == null ? void 0 : o[x(2571)]) ?? !1, ...we(o) }); }; -function yx() { - const o = ["Graph must have at least one node", "getRegisteredActions", "Invalid forward path for proxy action", "errs_", "lngs", "simplifyPluralSuffix", "当前任务路由暂不支持上传控件", "Cloud:", "You must pass an array of schemas to z.tuple([ ... ])", "setProperty", ".test(", "getResourceBundle", " = new RegExp(", "#00CCCC", "interpolationkey", " === undefined || ", "_path", "Please login to use the plugin", "Please provide prompt content.", "_exclusiveLimit", " = formats[", "escapeValue", "Set text to layer", "joinArrays", "交集或缩放目标为空", "formData", "response", "partialBundledLanguages", "使用整个画布", "ZodNativeEnum", "channel", "combo", "mergeShapes", "fragment", "ydd", "Invalid discriminator value. Expected ", "notificationHandlers", "scheme", "Disk", "graphInstance", "full", "includes", "_loadingSchemas", "colors", "_getType", "sendPromptListChanged", "mountTo", "timeoutId", "__nwjs", "favorites", "Empty", "resource", " , parentSchema: validate.schema", "typ", " , message: 'should be ", "postProcessor", "getConnectionToNodeInternal", "Boundary", "23364256xDpQma", "RULES", "任务失败:{{status}}", "inlineRefs", "setDefaultNamespace", "找不到文档: {{0}}", "no plural rule found for: ", "lowerCaseLng", "mergeObjectAsync", "removeMiddleware", "properties", "Failed to reboot ComfyUI", "createAsyncIterator", " , message: 'should match exactly one schema in oneOf' ", "allErrors", "getNodes API failed - {{reason}}", "如何获取APIKey", "not-basic", "toUpperCase", "logging/setLevel", "/then", "Invalid JSON-pointer: ", "smaller than or equal to", "minDate", "race", "正向裁剪", "执行成功", "curlayer", "\\:\\:", "requestsHandled", "Invalid boundary: left must be less than right, top must be less than bottom", '" is used in schema at path "', "Manage reusable prompt snippets for Comfy Simple workflows.", "isRequest", "isInitialized", "当前无法应用模板。", "success", "getNodes API 调用失败 - HTTP 错误,状态: {{status}}", ") && (missing", "hbo", "Refresh workflow list", "_formats", " , params: { allowedValues: schema", "async ", "getProperty", "dataVar", "ComfyUI server reconnecting", "#FF0066", "serialize", ` + '" schema' `, "enabled", "base64", " ) { ", "mergeObjectSync", "openWorkflowJSON", "Not implemented (501)", "ZodDefault", "Client does not support listing roots (required for ", "loadGraphData", "ZodError", " -> ", "{0,1}", "Prompts", "Select Banana app...", "setupStreamRequestHandler", "cache", " && ", "push", "yih", "Request handler failed: ", "describe", "Get pixel of {{0}} failed", "valueSchema", "hasLanguageSomeTranslations", " } else if ( ", "__cycle__", "_onprogress", "Layer mask", "Google Gemini 图像生成器", "Source", "自动同步中…", "模板已删除。", "getPath", "examples", " == null) ", "Template name", "fullPath", "resourceStore", "saveMissing", "pctEncChar", ".hasOwnProperty(", "weeks", "Failed to fetch account status", "请选择要获取的图像", "{0,4}", "language", "aeb", "removeRequestHandler", "sdpppX2", "loopRequired", "Remove slot", "#FF00CC", "ordinal", "safeParse", "Set as Current Selection", "输入设置", "getFixedT", "formatParams", "查看日志", "initialize", "cardinal", "boolean", "No images", "Current Selection", ".then", "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]", "NOT_SCHEME", "ayh", "keyword schema is invalid: ", "languageDetector", "#CC33FF", "Auto send disabled", "pick", "var missing", "=== Options ===", "MethodNotFound", " if (schema", "state", "_resetTimeout", "_errorDataPathProperty", "week", "inlineRef", "[i], ", "Array must contain ", "_refinement", "ZodNaN", "模板名称", "Run Photoshop Action", "normalizeId", "_oninitialize", " , ", "Delete current", "removeAdditional", "./api/userdata/workflows%2F.index.json", "registerStreamRequestorHandler", "Exclude selection", "handleDirectProxyForward", "Fetch current layer with primary boundary", "2024-10-07", " , message: 'should NOT be ", "sdppp/streamResponse", "find", "ZodTuple", "_getOrReturnCtx", "获取表单数据失败", "performWorkflowReset: ", "coerced", "outputs API 调用失败 - {{reason}}", "#FFCC00", "$id", "formats", "parsedType", "_limitItems", "debug", "ucs2length", "Invalid proxy forwarding: current node ", "abortRequest", "findIndex", "ZodMap", "lng", "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", "结果获取已中止", "Selection bounds only", " , message: 'should NOT have more than ", "queues", "content", "Upload from disk", "setupStreamResponseHandler", "executeHandlerAsync", "Uploading...", "No store found for node ", "activeWorkflow", "status API failed - {{reason}}", "abortAllRequests", "notifications/progress", "Invalid name: {{0}}", "validate", "i18next:", "sdppp/broadcast", "More actions", "#FF0000", " } ", "Sending image...", "Supabase anon key", "Task Details", "适配至选区", "isTime", "getNodes API failed - HTTP error! status: {{status}}", "hasDefaultValue", "openWorkflow: ", "No default templates available.", "云端推荐:", "failed parsing options string in nesting for key ", "createStreamState", "run API 调用失败 - {{reason}}", "缺少遮罩资源", "(typeof ", "InvalidRequest", "Comfy侧SDPPP版本({{comfyVersion}})与插件({{pluginVersion}})不匹配,运行可能有问题", "requestId", "{0,3}", "#6600CC", "#/definitions/simpleTypes", "以画布边界获取当前图层", "disconnect", "loaded namespace ", "模板已应用。", "sourceType", "http", " else { ", "Server does not support tools (required for ", "isNotification", "notifications/initialized", "humanize", "hrs", "actionManager", "invalid_union_discriminator", "images", "#0066FF", "Enter a quality percentage", "queueLoad", "peo", "_setupTimeout", "inline", "Canvas bounds", "Required", "propsKeywords", "parseMissingKeyHandler", "作为新文档导入", "processors", "fromNode", "workflows", "values", "formatType", " break; ", "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF", "node_errors", "bigint", "]; ", " = true; else if (!Array.isArray(schema", "_requestHandlers", "fromCodePoint", "Task failed: {{status}}", ".length , ", "less than or equal to", "#FF3366", "Clear all", " characters' ", "callback", "hasLoadedNamespace", "isArray", "Prompt Templates", "sdppp/abort", ") {", "minSize", "; else vErrors = vErrors.concat(", " {} ", "messageHandlers", "split", "contentMediaType", "每批图像数", "activeState", " ? await ", "Send to PS", "Store not found for current node ", "Use entire canvas", "跳转到最后一个", ` , message: 'should pass "`, "请求超时 (408)", "[^\\%\\[\\]\\:]", "now", "Error in broadcast handler for ", ") == -1 ", " = null; ", "posterIdentifier", "isCUID", "ZodSet", "exclusiveMaximum", "getAccountStatus API failed - {{reason}}", "key", "_getCached", "[\\@]", "userinfo", "broadcastManager", "#9900FF", "initializeConsumer", "nonpositive", "cancel", "maxDate", "error", "sd-ppp-static/sdppp_images/", "清空所有", " = errors; ", "request", "equal", "addMetaSchema", "_refs", " && Object.prototype.hasOwnProperty.call(", "Loading...", "Task execution failed", "; }", "#CC0033", "2.1.0", "minutes", "jsonrpc", "/type", "addResource", "sdppp-heartbeat", "isEmpty", "SDPPP may not be installed or version mismatch (404)", "从文件打开图像", "overflow", "ASCII", "pending", "#CC0099", "transport", "returnTypeError", "uri-reference", "选择应用...", "sessionId", "min", "任务详情", " if (true) { ", "适配至当前图层", "usedParams", "pattern", "usedKey", "missingSchema", "array", "Layer not found {{0}}", "Fetch canvas with current-layer boundary", "访客登录成功", "pickLocalFile", " (async", "786655TtrUxU", "重启ComfyUI失败", "partial", "workflow", "_responseHandlers", "删除模板", "description", "lte", "未返回图片", "executed", " == '", "outputs API 调用失败 - HTTP 错误,状态: {{status}}", "initializedStoreOnce", "DateTimeFormat", "iri", "Forbidden (403)", "Select Source", "网关超时 (504)", "生成失败", "sqr", "图层 {{0}} 不是一个组", " === 'true' || ", "assertCapabilityForMethod", "WebkitAppearance", "createErrors", "UploadPassProvider is not fully compatible with TaskRouter upload mechanism. Please use the uploadResource prop instead.", "RH币:", " === undefined ", "outputs API failed - {{reason}}", "工作流打开中", `Get image & -Limit image boundary`, "获取图层 {{0}} 的内容", "Positive Prompt", "$data", "errSchemaPath", "refine", "Invalid boundary type: {{type}}", "Aborted", "Host's domain name can not be converted to ASCII via punycode: ", " == ", "isEmail", "every", "ZodNull", "exclusiveMinimum", "Please provide a template name.", "#FF9900", "Generating", "withTimeout", "asyncIterator", "A discriminator value for key `", "loadNamespaces", "originalQueuePrompt", "无法从文件创建文档", "refs", "Failed to create document from file", "No history tasks", "#33CC33", " } else { for (var ", "executing", "getLanguagePartFromCode", "Notification interceptor failed for ", ".validate; var ", "notifications/roots/list_changed", "; else vErrors = null; }", "=0; ", "'].definition; var ", "批次数量", "Values", "actionHandlers", "customErrors", "setupAbortHandler", "timestamp", "addResourceBundle", "__connection_established", "++) { ", "localRefs", "Get selection", "var ", "++) { if (", "exclType", " = 'then'; ", "ckb", " var errors = 0; ", "syncStoresToNewConnection", "No active layer available", "Resize document for preview", "toFixed", "setWidgetValue", "schemaId", ") : ", "useColors", "Show Preview ({{count}} images)", "alg", "encountered", "Bounds", "Desire bounds is null", "maximum", "prefix", "URI is not a ", "等待 ComfyUI 连接完成…", "notificationsHandled", "{2})", "schema id ignored", "languageChanged", "Module", " && ( ", "Modify", " is not a valid identifier", "isFinite", "Rectangle coordinates required for create action", "seconds", "msecs", " % 1)", "property", "maxLength", "varReplace", "_serverInfo", " !== undefined && ( typeof ", "限制图片尺寸", "safe", "local", "Save all", "3065650IVplXZ", "Current Tasks:", " = false; if (e instanceof ValidationError) ", "prompt_ids: ", "assign", "dataPathArr", "; } catch (e) { ", " == 'boolean' || ", "registerDirectRequestHandlerGeneric", "node_id", "removeNamespaces", "###", "nodes", "运行中...", " ) || ", "substring", "saveMissingPlurals", "get", "Scan", "result", "Sponsor", "assistant", ") { var op", "./sdppp_upload2", "getNodeIds", "使用教程", " = errors;", "domainHost", "选区边界", "#FF33CC", " ); if (isAdditional", "contains", "resource_link", "_onresponse", "Layer {{0}} is not a group", "arrayToEnum", "graphChanged", "NOT_PATH_NOSCHEME", " is already defined", "ZodNumber", "isTransportReady", "missed to pass in variable ", "zero", "acx", "getScriptPartFromCode", "]; return false; ", "_unknown", "allOf", "image", "api", "zh-CN", "Failed", "toHash", "getNeighbors", "execution_error", "Result fetch aborted", "暂无历史任务", "获取 Supabase 会话失败: {{error}}", "__proxy_forward", "click to restore", "errorMap", "Invalid attempt to destructure non-iterable instance", "getConnectedNodeIds", "从磁盘上传", "less than", "选择图像来源", "setResolvedLanguage", "获取任务状态失败", "exec_info", "markConnected", "true", "wss", "comfy_api_key", "MissingRefError", "addEventListener", "exports", "无法将文件作为文档打开: {{path}}", "Your powerful node-based workflow engine", "IPV6ADDRESS", "新增槽位", "保存提示词模板失败。", "setState", "ActionSet {{0}} 未找到", "env", "oninitialized", "catch", "there was no format function for ", "suffix", "abh", "host", "_any", "#CC00FF", "maxValue", "root.refVal[0]", "getAccountStatus API 调用失败 - {{reason}}", "提示信息", "max", ".type", "safeParseAsync", "Intersect or scaledDesire is null", "statusText", "Invalid literal value, expected ", "changeLanguage", "startsWith", " } else { ", ", received ", "getKeyword", "[^\\%\\/\\@]", "invalid_return_type", "integer", "newlayer_selection", "is an invalid additional property", " = true; if (", "react", "Refresh", "initImmediate", "Press Enter to open app: {{appName}}", " ) { ", "createInstance", "uri", "SCHEMES", "Task incomplete, current status: {{status}}", "Select layer", "set", "+Alt reversed mask", "ready", "Batch Count", "保存并立即执行", " (division", "ComfyUI - {{workflowName}}", "missed to resolve ", "detail", "promptIds", "getDataByLanguage", " - no connection available", " division", "scanned", " == errors) { ", "加载中...", "尚未配置 ComfyUI 连接,请先设置地址。", "Auto sync is off", "getAllReachableNodes", "missingKey", "right", 'unknown format "', "format", "nss", "ZodEnum", "baseId", `Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`, "isHeartbeatEnabled", "listRoots", "options.loadSchema should be a function", "promise", "_cache", "spa", "initializeProducer", "table", "Input not instance of ", "onprogress", "compiling", `((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)`, " } if (errors === ", "管理 Comfy Simple 工作流的提示词片段。", " == 'number' || ", "getHandlerTypes", "toNode", "getResource", "]] === undefined ", "从 选区 获取遮罩", "extractFromKey", "longer", 'key "', "Layer", "aec", " = equal(", "disconnected", " outer: for (;i--;) { for (j = i; j--;) { if (equal(", "ZodPromise", " if ( ", "initialState", "反向裁剪", "stopSequence", "http://json-schema.org/draft-07/schema#", "sort", "prevValid", "JWT", "Masked", "获取账户信息失败", "size", "ZodNullable", "#3300FF", "authInfo", " var itemIndices = {}, item; for (;i--;) { var item = ", "选择 AI 服务提供商", "modules", "删除当前", "#FF33FF", "removeResourceBundle", "status API 调用失败 - {{reason}}", "can't resolve reference ", "var default", "~standard", " var errs_", "_processInputParams", "documentElement", "获取选区失败", "Google Gemini - Image Generation", "画布变更后自动运行工作流", "currentNodeId", "manuallyExtractDefaults", "strictKeywords", "No crop", " } } ", "' } ", "store", "isClone", "Sync current content", "delete", "logger must implement log, warn and error methods", "~validate", "Import from disk", " = true;", "rtl", "未知错误({{code}})", "prepend", " , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' ", "UUID is not valid.", "$ref", "comfy", "Current Layer", "setupGeneralBroadcastHandler", "#FF3399", "未能解析租户信息", "#/definitions/nonNegativeIntegerDefault0", "ParseError", "invalid_string", "No videos yet", "Node definition not found for current node ", "aborted", "ComfyUI 未就绪", "\\$&", "[\\uE000-\\uF8FF]", "Comfy.userId", "charCodeAt", "fail", " throw new ValidationError(vErrors); ", "isDuration", " = errors; var ", "创建文档失败", "Options", "issues", "设置图层的文本", "openWorkflows", "i18nFormat", "Outpaint (positive crop)", "{0,6}", "Confirm", "保存所有", "rejectImage", "当前图层边界", "maxTokens", "extend", "HeartbeatTimeoutError", "save", "自动填入画布开启", "greater than ", "Input Setting", "localeCompare", "ListFormat", "hasPath", "hasRequestHandler", ") { ", "更多设置", "prompt_id", "&", "Please click Login in the top-right corner.", "onerror", "years", " return data; ", "_metaOpts", "silent", "Unknown message type: ", "skipOnVariables", " not found in graph definition", "mcp-mesh-router", "registerProxyForwardHandler", "Inpaint (reverse crop)", "outgoingRequestInterceptors", "Missing upload resource", "Template removed.", "生成中...", "+Alt 反转遮罩", "Image imported to canvas", "ownProperties", "resources/read", "read", "Workflow stopped by user", "Upload controls are not supported for TaskRouter", " === null) ", "superRefine", "validateKeyword", "Save", "getTransportToNode", "hasLoadedNamespace: i18n.languages were undefined or empty", "apd", "'", "men", "setNodeTitle", " == 'string' && ", "尺寸限制 (px)", "connectedNodes", "Upload aborted", "运行了 {{duration}} 秒,{{message}}", "aao", "留空表示不限", "timeout", "Connection closed", "Layer {0} not found", "New Layer", " , message: 'should be equal to constant' ", "Invalid enum value. Expected ", "regexp", "critical", "isBase64url", "Running", "上传中,如果图片过大,可能会卡顿...", "returnObjects", "+Alt 按选区裁剪", "sourceCode", "addMessageEventListener", "Failed to send cancellation: ", "notifications/message", "isNaN", " = false; else {", "responseSchema", "undefined", "mask", "accept", "Set as Current Layer", "清除参考线框架", " for language ", "#66CC00", "Failed to update the {{part}} prompt: no matching widget binding.", "init: i18next is already initialized. You should call init just once!", "revoke", "ZodReadonly", "Delete Template", "subject", "非法的名称: {{0}}", "isNANOID", "reloadResources", "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ", "catchall", "Action {{0}} was not found", "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!", "Overflow: input needs wider integers to process", "{3}", "isNullable", "isEmoji", "$$$$", "Importing history image...", "nodeStores", "ZodBranded", " validate.errors = vErrors; return false; ", "logging", "setupTransportHandlers", "Output to", "cuid", "_compile", "未找到文档 {0}", "absolute", 'Invalid input: must start with "', "Email address's domain name can not be converted to ", "stringify", "workflows/", "Document {{0}} not found", "assertNever", "idx", "externalListenMessageCallback", "getRunningRequestsCount", "source", "Failed to request initial state for ", " console.log(", ".length == 1) { ", ") ) { ", "toUnicode", "message", "listWorkflows", "ZodDiscriminatedUnion", "文件未找到: {{path}}", "Cannot register capabilities after connecting to transport", "resolvedLanguage", "resolveComponents", "newlayer_canvas", `Log saved to file: {{path}} - - -`, "当前图层范围", "xn--", "Back", "languages", "fullFilename", "Boundary preview", "Current layer", "点击恢复默认遮罩", " == 'function' ? ", " } if (", "validate.schema", "' + ", "invalid_enum_value", "messagePoster", "assertCanSetRequestHandler", "_opts", "Rescoped", "hasEdge", "Email address's domain name can not be converted to ASCII via punycode: ", "Waiting for ComfyUI to finish connecting…", "keyPrefix", "ComfyManager not found, cannot reboot", "isValidLookup", "Clear selection", "coerce", "Failed to request initial states after connecting to ", "getState", "#FF00FF", "continueOnInterceptorError", "level", "property ", "_key", "Server error (500)", " , message: 'property name \\'", "default is ignored for: ", "detect", "新增模板", "WARNING DEPRECATED: ", "checkState", "Validation failed but no issues detected.", "pre", ".replace(/~/g, '~0').replace(/\\//g, '~1')", "_addCheck", "all", "reconnecting", "_limitLength", "延迟上传失败: {{error}}", "freeze", "$async", " if (!", " var startErrs", "#0066CC", "getNodes API 调用失败 - {{reason}}", "getRule", " if (true) {", " { keyword: '", "varOccurences", "dependencies", "nodeErrors", "Connecting to ComfyUI...", "Duration", "warn", "return", "strict", "useDefault", ", exclusive: ", "setupStreamProtocolHandlers", 'schema with key or id "', "output", "valid", "void", "handleIncomingRequest", "preload", "querySelector", "Retry", "Email: {{email}}", "Gemini 2.5 Flash 图像", "cuid2", "ZodRecord", "regExpMap", "assertEqual", "__proto__", '" as the namespace "', "base64url", "file", " , params: { i: i, j: j } ", "Click to restore default mask", "emergency", "mergeArray", "put", "prompts/get", " === undefined) ", "Internal ZodObject error: invalid unknownKeys value.", "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (", "Click to get RunningHub APIKey", "Select Image Source", "isSupportedCode", "Auto sync in progress…", "isObject", "shorter", "setter", '" ignored in schema at path "', "kPanelBrightnessMediumGray", " = errors;var ", " = ''; ", "abort", "macro", "resourceName", " after ", "unshift", ") { for (var ", "elicitInput", "filename", "meta", ", '", "Number must be a multiple of ", "handleIncomingNotification", "选择文件失败,请重试", " : ", "Prompt", "appendNamespaceToCIMode", "#33CCFF", "3rdParty", "OpenAI API 错误", "getter", "验证表单中...", "', depsCount: ", "上传失败,请重试", "context", "运行失败 - 未获取到 nodeInfoList,请先执行 getNodes()。", "仅当前图层范围", "Current layer boundary", "无法打开图像文件: {{error}}", "getData", "setupGraphStoreSync", "defaultMeta", "prepareLoading", "namespace", ` , message: 'should match "' + `, "exactly", "3692rjRfYn", "fallbackRequestHandler", " return errors === 0; ", "currentOnly", " === 'false' || ", "自动填入画布关闭", "getCurrentNodeId", "keySeparator", "#/definitions/stringArray", "不裁剪", "hasResourceBundle", "userDefinedKeySeparator", "revocable", "elicitation/create", "json", "Idle", "getPrototypeOf", "App ID:", "请输入您的 Google API Key", "创建参考线框架", "Clear", "nonempty", "resolveRef", "Click to send (Shift-click creates new document)", "Unknown error", "Server does not support resources (required for ", "setRequestHandler", "nan", "; if (!", "Failed to create file resource", "-{{value}} points", " = vErrors[", "locale", "removed", "status", "Uncaught error in notification handler: ", "Failed to save prompt templates.", "origin", "backend", "调整预览文档尺寸", "notificationQueue", "Uploader not set", "Fit to current layer", "dataType", "Sending all images...", "abv", "任务执行失败: {{error}}", "NumberFormat", "info", " when property ", "[0-9A-Fa-f]", "Full Canvas", "warning", "closeWorkflow", "ConnectionClosed", " if (!(await ", "setLimit", " } }", "SDPPPX 服务不可用", "getBestMatchFromCodes", "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", "] = ", "connectionManager", "getValidEnumValues", "INTERCEPTOR_ERROR", "无效边界: 左边必须小于右边,上边必须小于下边", ") || ", "isPersisted", "Action handler ", "schemaPath", "shift", "loadResources", "escapeQuotes", `" keyword validation' `, "query", "getTransportInternal", "refVal", "sendResourceUpdated", "safeValue", "maxSize", "getConnectionInfo", "cacheUserLanguage", "HTTP URIs must have a host.", "如何获取APIKey和API Secret", "sendToolListChanged", "#00CCFF", "processCode", '" already exists', "common", "executeOutgoingRequestInterceptor", "更多操作", "finally", "{0,5}", "[BroadcastManager] Error forwarding ", "cancelled", "addRule", " failed", "File upload failed", "resolvedOptions", "currency", "position", "validateHandlerType", "Server does not support logging (required for ", "Points Spent", "__DEFAULT__", "); if (!", "%25", ")) { if (vErrors === null) vErrors = ", "正在发送图像...", "[GraphStoreSynchronizer] Error broadcasting state update for ", "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", "object", "too_big", "[GraphStoreSynchronizer] Error processing store update for ", "passthrough", "]; } else { ", "uploadImage API failed - HTTP error! status: {{status}}", "firebug", " var schema", "minLength", "date-time", "isBase64", "hasOwnProperty", "getNode", "[\\.]", "preprocess", "510", "Model with affordable price, abundant community applications", "请选择AI服务", "Crop by selection", " = false , ", "milliseconds", "点击发送(Shift-点击新建文档)", "unescapeComponent", "cleanCode", "Internal error", "async keyword in sync schema", " ( ( ", "/", "day", " than ", "initializeResponseQueue", "maxItems", "New Template", "Reset", "fallbackLng", "prp", "Send all", "_regex", "Adjust input settings", "exception", `获取图像 & -裁剪选区遮罩`, ")) ", " , schema: validate.schema", "Base URL", "startTime", "pst", "Failed to write log file:", "status API failed - HTTP error! status: {{status}}", "Advanced selection", "uiLocale", "userDefinedNsSeparator", "proxy", "iterator", ".schema = ", "step", "/required", ") break; } ", "string", "pctDecChars", "toJSON", "Fetch current layer with canvas boundary", "nest", "schema id must be string", "hijacked", "custom keyword definition is invalid: ", " Math.abs(Math.round(division", "readOnly", "reason", "画布边界", "Fetch canvas with primary boundary", "./api/manager/reboot", "argumentsError", "以主图边界获取画布", "getImage", "No handler for streamRequestor: ", "allServers", " , message: 'boolean schema is false' ", " var err = ", "realTransport", "finite", "管理可复用的提示词模板", " == 'boolean') ", "bind", "slice", "本地视频", "addFormat", 'did not save key "', "isLanguageChangingTo", "start", "Selection", "outputType", "findPath", "prompts/list", "nonExplicitSupportedLngs", " not implemented for node ", "_fragments", "color", "Edit Template", "addCached", "{2}", "Preparing...", " reference.", "' && !(typeof ", "pes", " else if (", "请输入大于 0 的像素值", "getAccountStatus API 调用失败 - HTTP 错误,状态: {{status}}", " } ", "received", "__internal_requestInitialState_", "getNodeStore", " = undefined; ", "Auto", "Unsupported upload type: {{type}}", ") break; ", "buffer", "]] !== undefined ", "上传图片中...", "仅选区范围", "Edge references unknown target node: ", "registerHandler", "schema", "prev", "); for (var ", "Get selection failed", "load", "ajv", "Set as Canvas", "新建文档", "click", "Validation", "validateStreamRequestorRequest", "Layer {{layerName}}", "点击移除本地文件", " , message: 'should have ", "Processing {{processed}}/{{total}}", "unknown", "Maximum total timeout exceeded", "(?:", "'else'", "-latn", "_notificationHandlers", "Service unavailable (503)", "我的模板", "_transport", "整个画布", "[\\+\\-\\.]", "ZodString", "false schema", "Cloud-based model service platform", "Upload failed: ", "X10", "joinAs", "forwarded", "重新加载", "Canvas boundary", "Shortcut selection feature requires login", "addSchema", "Input Image", "done", "req_", "assertRequestHandlerCapability", "智能对象图层", " = false; else if (", "ComfyUI not ready", "skipCopy", "创建文档", "[\\:\\@\\/\\?]", " if (Array.isArray(", "SDPPP sponsor exclusive API", "implementInternalAction", "给发送的图片创建文档", "languageUtils", "loadLanguages", "Outgoing message:", "2025-06-18", "prd", "ComfyUI加载中...", "notificationsIntercepted", " = true , j; if (i > 1) { ", "PS shortcuts may be blocked by plugin...", "useRawValueToEscape", "parentDataProperty", "RH Coins:", " var missing", "close", "defaultVariables", "Quick", "Exclude current layer", "compileAsync", "forward", "ZodPipeline", "自定义AI工作流引擎", "Error validating elicitation response: ", "dataLevel", " throw new ValidationError([", " = false; ", "ComfyUI loading...", "completion/complete", "Action {{0}} 未找到", "decline", "skipKeywords", "Content", "after app.queuePrompt errors: ", "{6}", "_clientCapabilities", "xmn", "#9933CC", " | ", '"number"', "pipe", "forkResourceStore", "Google Gemini Image Generator", " == +", "Cannot access data ", "', missingProperty: '", "Generating...", "replace", "call", "connecting", "Manage reusable prompt templates", "获取图片", "at least", "/additionalProperties", "遮罩应用后未得到资源", "setNotificationHandler", "skips", " , message: '", "Enter Google API Key", "_timeoutInfo", "changeTracker", "getSchema", "Negative Crop", "))) { ", "getTransport", "加载历史任务...", "hasOutgoingRequestInterceptor", "dev", "setItem", "translate", "opts", "registerCapabilities", " var i = ", "shape", "控件 {0} 转换失败:", "Local file", "handleAsObject", "uuid", "api/view?type=", "同步当前内容", ".errors", "fallbackNS", "_requestMessageId", "languageOnly", "readonly", "IPV4ADDRESS", " , message: 'should be equal to one of the allowed values' ", "widgetable", "reference", "subfolder", " = true; else if (typeof ", "strictNumbers", "init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting", "[^0-9]", " element(s)", "auz", "reboot", "_cachedPath", "invalid_union", "defaults", "sdppp_assets", "_def", "storage", "backendConnector", " || ! Object.prototype.hasOwnProperty.call(", "maxRetries", "add", "headers", "PluralRules", "))))) {", "Success", "_parse", "sdpppHandshake", "How to get APIKey and API Secret", " = await ", "defaultNS", " must be number or boolean", "date", "join", "清空选择", "requestInitialStateForNode", "准备中...", "Run", "当前任务数:", "expected", "nonstrict", "notifications/tools/list_changed", "protocol", "create", "const", "My Templates", "__esModule", "; if (vErrors !== null) { if (", "Current layer bounds only", "comfyAPI", " = true; if ( ", "omit", "[UnexpectedJSONParseError]: ", "unknownFormats", "_errors", "isInitializing", ".dataPath === undefined) ", " , params: { type: '", "Logout", "custom", "Select Workflow", ".length > ", "ZodEffects", " via punycode: ", "exactLength", " = true; break; }", "String must contain ", "创建时间", "pong", "URI can not be parsed.", "notifications/resources/list_changed", "reduce", " ucs2length(", "当前图层", "Expected ", "getCapabilities", "log", "formatters", "relativetime", "and", "zod", "waitingReads", ") > 1e-", "提示词", "metaSchema", " ) ", "connect", "reload", "interpolation", "_options", "long", "translation", "maxProperties", "removeDotSegments", "ESCAPE", "addNamespaces", "No images to preview", "params", "ZodNever", "Invalid function return type", "Tutorial", "fromCharCode", "Connect", " < ", " , schema: false , parentSchema: validate.schema", "Username: {{username}}", "获取结果失败: {{error}}", "Heartbeat timeout for poster ", "Only the latest 10 items are available in this version", "absolutePath", "Add Template", "streamRequestorHandlers", "range", ".dataPath = (dataPath || '') + ", "resources", "Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.", "escapeFragment", " , params: {} ", "stats", "反向裁剪(Inpaint)", "NOT_FRAGMENT", "separator", "Auto send enabled", "image/png", "Auto-run workflow after changes...", "uniqueItems", "MIN_SAFE_INTEGER", "definition", " , message: 'should NOT have ", "patternProperties", "质量{{percent}}%", "{4}", "; var ", "disable", "substr", "PS图片", "ZodUnion", "messages", "Result fetch failed", "symbol", " = validate.schema", "extendTranslation", "选择模型", "Not a ZodError: ", "invalid_literal", "comfy-entry", "No errors", "Cannot reboot because ComfyManager is missing", "nsSeparator", "second", "lazycreate", "lastPongReceived", " = errors , ", " != 'number') || ", "获取结果失败", "停止自动运行", " = typeof ", "createWithPreprocess", "; } var err = ", "extract", "initAsync", "已选择", "[BroadcastManager] Error forwarding broadcast:", "网关错误 (502)", ".length <= ", "资源标识符无效", "Max size (px)", "选择文件", "Supabase URL", "use", "missingKeyNoValueFallbackToKey", "ZodUnknown", "ref/resource", "暂无视频", "schemaHasRules", "external", "nestingOptionsSeparator", "创建文件资源失败", "(会员专属)", "removeSchema", "callValidate", "objectValues", "); errors = vErrors.length; for (var ", "mode", "处理进度 {{processed}}/{{total}}", "order", "Shift 点击或右键可切换自动发送", "Mask apply returned empty resource", "user", "Outgoing request interceptor failed: ", "jwt", "sdppp/directRequest", "resolveImage", " = null; try { ", "UNRESERVED", " if (", "Document {0} not found", "OpenAI/Google 格式API", "runningRequests", "count", "File not found: {{path}}", " in ", "Uploading, if the image too large, may be lag...", "typeof ", "jpr", "mailto", "uploadImage API failed - {{reason}}", "returnDetails", "toQuotedString", "#FF3300", "[object RegExp]", "loaded", "选择边界", " self._opts.$comment(", "checks", "default is ignored in the schema root", "init", "_getId", "heartbeatInterval", "if (!", "merge", "ComfyUI服务器重连中", "translator", "OpenAI/Google format API", "Generate", "选择素材来源", "Request interceptor failed for ", "schemaHasRulesExcept", "Comfy Manager未安装,无法重启", "获取 API Key", "waiting for queue prompt", "mcpMesh", "services", "$schema must be a string", ") { ", "toASCII", "postProcessPassResolved", "requestHandlers", "extensionManager", "5604mBcUKY", "发送图片失败 {{index}}: {{error}}", "empty", "#CC33CC", "Unrecognized key(s) in object: ", "onmessage", "buildAdjacencyList", "errorDataPath", "无效操作: {{action}}", "streamRequest", "checkDataTypes", "assertIs", "1240282MfDGBR", "请登陆后使用插件", " at one or more positions greater than or equal to ", " = defaults[", " === 1) ", " = +", "widgets", "Template saved.", "token", "快捷键选图功能仅在插件窗口聚焦时可用", "#CC6600", "./sdppp-custom.js", "Synchronous parse encountered promise.", "broadcastCurrentState", "Not current document", "unrecognized_keys", "endsWith", "executeOutgoingNotificationInterceptor", "[object Function]", "broadcast", "缺少主图资源", "_requestHandlerAbortControllers", "urn", "TaskRouter 服务地址", "ary", "compile", "getDefaultValueFromField", "_compilations", "send", "Auto fetching…", "fcName", "负面提示词", "exists", "graph", " , data: ", " , params: { allowedValue: schema", "newdoc_canvas", "#33CCCC", " !== parseInt(division", "Using local file", "Please select an app first", "keySchema", "relatedRequestId", ")) { var err = ", "ZodFunction", "lastIndex", ") { if (vErrors === null) vErrors = ", "getDefinition", "More Settings", "kind", "async schema in sync schema", "protocolVersion", "Cannot access property/index ", " === 0 || ", " != 'boolean' && ", "unescapePrefix", " if (rootData === undefined) rootData = data; ", " try { await ", "0?[1-9]", "invalid_date", "errs__", "当前选项:图层 {{layerName}}", "additionalProperties", "getFallbackCodes", "customRule", "请输入您的Replicate API Key", "prs", "RunningHub - {{webappId}}", "requestInfo", "curr", "connected", "{1,4}", " , params: { additionalProperty: '", " for (var ", ", received '", "diff", "自动同步: 开启", " || ", "Outputs", '[\\"\\\\]', "画布范围", "nodeId", "errToObj", "action", "maxParallelReads", "TaskRouter client is not initialized", "interpolator", "_onnotification", "findPathInternal", "[^\\%]", "pluralCategories", "暂无预览内容", "Guest login successful", "getStats", "请填写模板名称。", "请输入您的RunningHub API Key", "正在连接 ComfyUI...", "历史记录", "No workflow selected", "sendStreamRequestorRequest", "addIssue", " , params: { multipleOf: ", "customRules", "Smart Object Layer", "Mask resource is missing", "Array.isArray(", "sdppp/streamRequest", "[\\:]", "escapeComponent", "minItems", "Task ID", "++) { var ", "[A-Za-z]", "设为选区", "notifications/cancelled", "deprecate", " + ']'", "No task template selected", "enforceStrictCapabilities", "canvas", "map", "_onerror", "if ( ", "readingCalls", "formatter", "errorPath", "function", "未授权 (401)", "uploadImage API 调用失败 - HTTP 错误,状态: {{status}}", ") { var err = ", "Failed to update the {{part}} prompt: ComfyUI connection is not ready.", "Applying templates is unavailable right now.", "key '", "} else { errors = ", "Unable to reboot ComfyUI", "toLowerCase", "body", "checkDataType", "Incoming message:", " !== undefined ", "#3366CC", ")) { ", "subscribe", " && !(", "ZodOptional", "#FF0033", "exactly equal to ", "xaa", "#FF6633", "null", "Note", " else { ", "payload", "请选择要发送图像的位置", "nodeTransports", "async schema referenced by sync schema", "11068155tILZfg", "Output to:", "点我恢复", "failedLoading", "uiWeight", "请填写提示词内容。", "ayn", " / ", "2[0-4]", "util", " must be number", "Stop", "isULID", "Leave empty for no limit", "ayp", "以画布边界获取画布", "[^\\%\\:]", "[\\-\\.\\_\\~]", "UploadPassProvider 与 TaskRouter 上传机制不兼容,请改用 uploadResource。", "ZodAny", "#0033FF", "nullish", "Defaults using", "A-Z\\x5E-\\x7E]", "'[\\'' + ", "Limit image size", "No image returned", "splice", " } ", "missingRef", "; ", "Opening workflow", """, "offset", "registerDirectRequestHandler", "val is not a non-empty string or a valid number. val=", "自动同步未打开", "请输入质量百分比", "is a required property", "AI使用的区域与最大尺寸控制", "]) ", " var schemaExcl", "contextualErrorMap", "Created At", "InternalError", "([01]\\d|2[0-3]):[0-5]\\d(:", "pop", "') ", "color: inherit", "addKeyword", "handleIncomingMessage", "Keyword ", "Negative prompt content", "getRegExp", "useCustomRule", "_parseAsync", "expired", "_capabilities", "at most", " = null;", "自动获取中…", "SDPPP 2.0 不再需要此节点", " already exists, which would be overridden", "isOpen", "isTop", " if (!", "requestedSchema", "No first related layer in {{0}}", "implementAction", "mins", "flags", "interpolate", "排队等待", " , message: 'should NOT be valid' ", "isSafeInteger", " , params: { limit: ", "默认模板", "(new RegExp(", "stream", " is loaded but ", "当前没有活动图层", "Server does not support notifying of prompt list changes (required for ", "nodeProxies"]; - return yx = function() { - return o; - }, yx(); -} -function ho(o, x) { - const t = a, r = (o.toString()[t(3263)](".")[1] || "")[t(2710)], e = (x.toString()[t(3263)](".")[1] || "").length, s = r > e ? r : e, n = Number[t(2085)](o[t(621)](s)[t(1521)](".", "")), i = Number[t(2085)](x[t(621)](s)[t(1521)](".", "")); +function co(o, x) { + const t = a, r = (o[t(511)]()[t(1958)](".")[1] || "")[t(1148)], e = (x[t(511)]()[t(1958)](".")[1] || "")[t(1148)], s = r > e ? r : e, n = Number[t(2125)](o[t(1990)](s)[t(1252)](".", "")), i = Number.parseInt(x.toFixed(s)[t(1252)](".", "")); return n % i / 10 ** s; } -class B0 extends Ce { +class V0 extends Fe { constructor() { const x = a; - super(...arguments), this[x(521)] = this.gte, this[x(753)] = this[x(542)], this[x(1358)] = this[x(2798)]; + super(...arguments), this[x(316)] = this[x(2796)], this.max = this[x(2842)], this[x(2075)] = this[x(2342)]; } - [a(1585)](x) { + [a(2297)](x) { const t = a; - if (this[t(1575)][t(1077)] && (x[t(2663)] = Number(x.data)), this[t(2981)](x) !== ae[t(2665)]) { - const n = this[t(3148)](x); - return ee(n, { code: Z[t(2421)], expected: ae[t(2665)], received: n[t(3156)] }), he; + if (this[t(2200)][t(2571)] && (x[t(1506)] = Number(x.data)), this[t(904)](x) !== ae.number) { + const n = this[t(1310)](x); + return Y(n, { code: K[t(2165)], expected: ae[t(867)], received: n[t(1358)] }), he; } let e; const s = new e0(); - for (const n of this[t(1575)][t(1773)]) - n.kind === t(2755) ? !Ne.isInteger(x[t(2663)]) && (e = this[t(3148)](x, e), ee(e, { code: Z.invalid_type, expected: t(766), received: "float", message: n[t(1044)] }), s[t(2329)]()) : n[t(1859)] === t(521) ? (n[t(2068)] ? x[t(2663)] < n.value : x[t(2663)] <= n[t(2446)]) && (e = this[t(3148)](x, e), ee(e, { code: Z[t(2724)], minimum: n[t(2446)], type: t(2665), inclusive: n[t(2068)], exact: !1, message: n[t(1044)] }), s[t(2329)]()) : n[t(1859)] === t(753) ? (n.inclusive ? x.data > n[t(2446)] : x[t(2663)] >= n[t(2446)]) && (e = this[t(3148)](x, e), ee(e, { code: Z[t(1305)], maximum: n[t(2446)], type: "number", inclusive: n[t(2068)], exact: !1, message: n[t(1044)] }), s[t(2329)]()) : n[t(1859)] === t(2798) ? ho(x.data, n[t(2446)]) !== 0 && (e = this._getOrReturnCtx(x, e), ee(e, { code: Z[t(2267)], multipleOf: n.value, message: n[t(1044)] }), s[t(2329)]()) : n[t(1859)] === t(1383) ? !Number[t(643)](x[t(2663)]) && (e = this[t(3148)](x, e), ee(e, { code: Z[t(2546)], message: n[t(1044)] }), s[t(2329)]()) : Ne[t(1034)](n); - return { status: s.value, value: x.data }; + for (const n of this[t(2200)][t(2978)]) + n[t(1130)] === t(2021) ? !Te[t(826)](x.data) && (e = this[t(1310)](x, e), Y(e, { code: K.invalid_type, expected: t(1999), received: t(2683), message: n[t(2461)] }), s[t(2726)]()) : n[t(1130)] === t(316) ? (n[t(1752)] ? x.data < n[t(935)] : x.data <= n[t(935)]) && (e = this[t(1310)](x, e), Y(e, { code: K[t(2627)], minimum: n[t(935)], type: t(867), inclusive: n.inclusive, exact: !1, message: n[t(2461)] }), s.dirty()) : n.kind === t(477) ? (n[t(1752)] ? x[t(1506)] > n[t(935)] : x.data >= n[t(935)]) && (e = this[t(1310)](x, e), Y(e, { code: K.too_big, maximum: n[t(935)], type: t(867), inclusive: n.inclusive, exact: !1, message: n[t(2461)] }), s[t(2726)]()) : n[t(1130)] === t(2342) ? co(x[t(1506)], n[t(935)]) !== 0 && (e = this[t(1310)](x, e), Y(e, { code: K[t(694)], multipleOf: n.value, message: n[t(2461)] }), s[t(2726)]()) : n[t(1130)] === t(2676) ? !Number.isFinite(x.data) && (e = this[t(1310)](x, e), Y(e, { code: K[t(1136)], message: n[t(2461)] }), s[t(2726)]()) : Te.assertNever(n); + return { status: s[t(935)], value: x.data }; } - [a(2846)](x, t) { + [a(2796)](x, t) { const r = a; - return this.setLimit("min", x, !0, ne[r(2732)](t)); + return this[r(449)](r(316), x, !0, re.toString(t)); } gt(x, t) { const r = a; - return this[r(1249)](r(521), x, !1, ne[r(2732)](t)); + return this[r(449)](r(316), x, !1, re.toString(t)); } - lte(x, t) { + [a(2842)](x, t) { const r = a; - return this[r(1249)](r(753), x, !0, ne[r(2732)](t)); + return this[r(449)](r(477), x, !0, re.toString(t)); } lt(x, t) { const r = a; - return this.setLimit(r(753), x, !1, ne[r(2732)](t)); + return this[r(449)]("max", x, !1, re[r(511)](t)); } - [a(1249)](x, t, r, e) { + [a(449)](x, t, r, e) { const s = a; - return new B0({ ...this._def, checks: [...this[s(1575)].checks, { kind: x, value: t, inclusive: r, message: ne[s(2732)](e) }] }); + return new V0({ ...this[s(2200)], checks: [...this[s(2200)][s(2978)], { kind: x, value: t, inclusive: r, message: re[s(511)](e) }] }); } - [a(1095)](x) { + [a(1616)](x) { const t = a; - return new B0({ ...this[t(1575)], checks: [...this[t(1575)].checks, x] }); + return new V0({ ...this[t(2200)], checks: [...this[t(2200)][t(2978)], x] }); } - [a(2755)](x) { + [a(2021)](x) { const t = a; - return this[t(1095)]({ kind: t(2755), message: ne[t(2732)](x) }); + return this._addCheck({ kind: t(2021), message: re[t(511)](x) }); } - [a(2797)](x) { + [a(778)](x) { + return this._addCheck({ kind: "min", value: 0, inclusive: !1, message: re.toString(x) }); + } + [a(2632)](x) { const t = a; - return this[t(1095)]({ kind: "min", value: 0, inclusive: !1, message: ne[t(2732)](x) }); + return this._addCheck({ kind: t(477), value: 0, inclusive: !1, message: re[t(511)](x) }); + } + [a(1203)](x) { + const t = a; + return this[t(1616)]({ kind: t(477), value: 0, inclusive: !0, message: re[t(511)](x) }); + } + nonnegative(x) { + const t = a; + return this[t(1616)]({ kind: "min", value: 0, inclusive: !0, message: re[t(511)](x) }); + } + [a(2342)](x, t) { + const r = a; + return this[r(1616)]({ kind: r(2342), value: x, message: re.toString(t) }); + } + [a(2676)](x) { + const t = a; + return this[t(1616)]({ kind: t(2676), message: re[t(511)](x) }); + } + safe(x) { + const t = a; + return this._addCheck({ kind: t(316), inclusive: !0, value: Number.MIN_SAFE_INTEGER, message: re[t(511)](x) })._addCheck({ kind: t(477), inclusive: !0, value: Number.MAX_SAFE_INTEGER, message: re[t(511)](x) }); + } + get [a(964)]() { + const x = a; + let t = null; + for (const r of this[x(2200)][x(2978)]) + r[x(1130)] === x(316) && (t === null || r[x(935)] > t) && (t = r.value); + return t; + } + get [a(2084)]() { + const x = a; + let t = null; + for (const r of this[x(2200)][x(2978)]) + r[x(1130)] === x(477) && (t === null || r[x(935)] < t) && (t = r[x(935)]); + return t; + } + get [a(2237)]() { + const x = a; + return !!this[x(2200)][x(2978)][x(304)]((t) => t[x(1130)] === x(2021) || t[x(1130)] === x(2342) && Te[x(826)](t[x(935)])); + } + get [a(1024)]() { + const x = a; + let t = null, r = null; + for (const e of this._def[x(2978)]) { + if (e[x(1130)] === x(2676) || e[x(1130)] === "int" || e.kind === x(2342)) return !0; + e[x(1130)] === x(316) ? (r === null || e[x(935)] > r) && (r = e[x(935)]) : e[x(1130)] === x(477) && (t === null || e[x(935)] < t) && (t = e[x(935)]); + } + return Number[x(1024)](r) && Number[x(1024)](t); + } +} +V0[a(558)] = (o) => { + const x = a; + return new V0({ checks: [], typeName: pe[x(1465)], coerce: (o == null ? void 0 : o[x(2571)]) || !1, ...we(o) }); +}; +class tx extends Fe { + constructor() { + const x = a; + super(...arguments), this[x(316)] = this.gte, this[x(477)] = this[x(2842)]; + } + [a(2297)](x) { + const t = a; + if (this[t(2200)][t(2571)]) try { + x[t(1506)] = BigInt(x[t(1506)]); + } catch { + return this[t(524)](x); + } + if (this[t(904)](x) !== ae[t(1373)]) return this[t(524)](x); + let e; + const s = new e0(); + for (const n of this[t(2200)][t(2978)]) + n[t(1130)] === t(316) ? (n[t(1752)] ? x[t(1506)] < n[t(935)] : x[t(1506)] <= n[t(935)]) && (e = this[t(1310)](x, e), Y(e, { code: K[t(2627)], type: "bigint", minimum: n[t(935)], inclusive: n.inclusive, message: n.message }), s[t(2726)]()) : n.kind === t(477) ? (n[t(1752)] ? x.data > n.value : x[t(1506)] >= n[t(935)]) && (e = this[t(1310)](x, e), Y(e, { code: K[t(457)], type: t(1373), maximum: n.value, inclusive: n[t(1752)], message: n.message }), s.dirty()) : n.kind === "multipleOf" ? x.data % n[t(935)] !== BigInt(0) && (e = this[t(1310)](x, e), Y(e, { code: K[t(694)], multipleOf: n[t(935)], message: n[t(2461)] }), s[t(2726)]()) : Te[t(1635)](n); + return { status: s.value, value: x[t(1506)] }; + } + [a(524)](x) { + const t = a, r = this[t(1310)](x); + return Y(r, { code: K[t(2165)], expected: ae[t(1373)], received: r[t(1358)] }), he; + } + gte(x, t) { + const r = a; + return this[r(449)]("min", x, !0, re[r(511)](t)); + } + gt(x, t) { + const r = a; + return this[r(449)](r(316), x, !1, re[r(511)](t)); + } + [a(2842)](x, t) { + const r = a; + return this[r(449)]("max", x, !0, re[r(511)](t)); + } + lt(x, t) { + const r = a; + return this[r(449)]("max", x, !1, re[r(511)](t)); + } + setLimit(x, t, r, e) { + const s = a; + return new tx({ ...this[s(2200)], checks: [...this[s(2200)][s(2978)], { kind: x, value: t, inclusive: r, message: re.toString(e) }] }); + } + [a(1616)](x) { + const t = a; + return new tx({ ...this._def, checks: [...this[t(2200)][t(2978)], x] }); + } + [a(778)](x) { + const t = a; + return this[t(1616)]({ kind: t(316), value: BigInt(0), inclusive: !1, message: re[t(511)](x) }); } negative(x) { const t = a; - return this[t(1095)]({ kind: t(753), value: 0, inclusive: !1, message: ne[t(2732)](x) }); + return this[t(1616)]({ kind: t(477), value: BigInt(0), inclusive: !1, message: re[t(511)](x) }); } - [a(487)](x) { + [a(1203)](x) { const t = a; - return this[t(1095)]({ kind: t(753), value: 0, inclusive: !0, message: ne[t(2732)](x) }); + return this._addCheck({ kind: t(477), value: BigInt(0), inclusive: !0, message: re[t(511)](x) }); } - nonnegative(x) { + [a(2546)](x) { const t = a; - return this[t(1095)]({ kind: "min", value: 0, inclusive: !0, message: ne[t(2732)](x) }); + return this._addCheck({ kind: t(316), value: BigInt(0), inclusive: !0, message: re[t(511)](x) }); } - multipleOf(x, t) { + [a(2342)](x, t) { const r = a; - return this[r(1095)]({ kind: r(2798), value: x, message: ne.toString(t) }); + return this[r(1616)]({ kind: r(2342), value: x, message: re.toString(t) }); } - finite(x) { - const t = a; - return this._addCheck({ kind: t(1383), message: ne[t(2732)](x) }); - } - [a(654)](x) { - const t = a; - return this[t(1095)]({ kind: t(521), inclusive: !0, value: Number[t(1685)], message: ne[t(2732)](x) })._addCheck({ kind: t(753), inclusive: !0, value: Number[t(2551)], message: ne[t(2732)](x) }); - } - get [a(2690)]() { + get [a(964)]() { const x = a; let t = null; - for (const r of this[x(1575)].checks) - r[x(1859)] === "min" && (t === null || r.value > t) && (t = r[x(2446)]); + for (const r of this._def[x(2978)]) + r[x(1130)] === x(316) && (t === null || r.value > t) && (t = r[x(935)]); return t; } - get [a(749)]() { + get [a(2084)]() { const x = a; let t = null; - for (const r of this[x(1575)][x(1773)]) - r[x(1859)] === x(753) && (t === null || r.value < t) && (t = r.value); - return t; - } - get isInt() { - const x = a; - return !!this[x(1575)][x(1773)][x(3146)]((t) => t[x(1859)] === "int" || t[x(1859)] === x(2798) && Ne[x(2534)](t.value)); - } - get [a(643)]() { - const x = a; - let t = null, r = null; - for (const e of this[x(1575)][x(1773)]) { - if (e[x(1859)] === x(1383) || e.kind === x(2755) || e[x(1859)] === "multipleOf") return !0; - e[x(1859)] === x(521) ? (r === null || e[x(2446)] > r) && (r = e[x(2446)]) : e[x(1859)] === x(753) && (t === null || e[x(2446)] < t) && (t = e[x(2446)]); - } - return Number[x(643)](r) && Number[x(643)](t); - } -} -B0.create = (o) => { - const x = a; - return new B0({ checks: [], typeName: pe.ZodNumber, coerce: (o == null ? void 0 : o[x(1077)]) || !1, ...ve(o) }); -}; -class ax extends Ce { - constructor() { - const x = a; - super(...arguments), this.min = this.gte, this[x(753)] = this[x(542)]; - } - [a(1585)](x) { - const t = a; - if (this[t(1575)][t(1077)]) try { - x[t(2663)] = BigInt(x[t(2663)]); - } catch { - return this._getInvalidInput(x); - } - if (this[t(2981)](x) !== ae[t(3242)]) return this[t(2304)](x); - let e; - const s = new e0(); - for (const n of this._def[t(1773)]) - n[t(1859)] === t(521) ? (n.inclusive ? x[t(2663)] < n[t(2446)] : x[t(2663)] <= n[t(2446)]) && (e = this[t(3148)](x, e), ee(e, { code: Z[t(2724)], type: t(3242), minimum: n.value, inclusive: n.inclusive, message: n[t(1044)] }), s[t(2329)]()) : n[t(1859)] === t(753) ? (n[t(2068)] ? x[t(2663)] > n.value : x[t(2663)] >= n[t(2446)]) && (e = this[t(3148)](x, e), ee(e, { code: Z[t(1305)], type: t(3242), maximum: n[t(2446)], inclusive: n[t(2068)], message: n[t(1044)] }), s[t(2329)]()) : n[t(1859)] === "multipleOf" ? x.data % n.value !== BigInt(0) && (e = this[t(3148)](x, e), ee(e, { code: Z[t(2267)], multipleOf: n.value, message: n[t(1044)] }), s[t(2329)]()) : Ne[t(1034)](n); - return { status: s[t(2446)], value: x[t(2663)] }; - } - [a(2304)](x) { - const t = a, r = this[t(3148)](x); - return ee(r, { code: Z[t(2421)], expected: ae.bigint, received: r[t(3156)] }), he; - } - [a(2846)](x, t) { - const r = a; - return this[r(1249)](r(521), x, !0, ne.toString(t)); - } - gt(x, t) { - const r = a; - return this[r(1249)](r(521), x, !1, ne[r(2732)](t)); - } - lte(x, t) { - const r = a; - return this[r(1249)](r(753), x, !0, ne[r(2732)](t)); - } - lt(x, t) { - const r = a; - return this[r(1249)](r(753), x, !1, ne[r(2732)](t)); - } - [a(1249)](x, t, r, e) { - const s = a; - return new ax({ ...this[s(1575)], checks: [...this[s(1575)][s(1773)], { kind: x, value: t, inclusive: r, message: ne[s(2732)](e) }] }); - } - [a(1095)](x) { - const t = a; - return new ax({ ...this._def, checks: [...this[t(1575)].checks, x] }); - } - [a(2797)](x) { - const t = a; - return this[t(1095)]({ kind: "min", value: BigInt(0), inclusive: !1, message: ne[t(2732)](x) }); - } - [a(2134)](x) { - const t = a; - return this._addCheck({ kind: t(753), value: BigInt(0), inclusive: !1, message: ne.toString(x) }); - } - nonpositive(x) { - const t = a; - return this[t(1095)]({ kind: t(753), value: BigInt(0), inclusive: !0, message: ne[t(2732)](x) }); - } - nonnegative(x) { - const t = a; - return this[t(1095)]({ kind: t(521), value: BigInt(0), inclusive: !0, message: ne[t(2732)](x) }); - } - [a(2798)](x, t) { - const r = a; - return this[r(1095)]({ kind: r(2798), value: x, message: ne[r(2732)](t) }); - } - get [a(2690)]() { - const x = a; - let t = null; - for (const r of this[x(1575)][x(1773)]) - r[x(1859)] === x(521) && (t === null || r[x(2446)] > t) && (t = r[x(2446)]); - return t; - } - get maxValue() { - const x = a; - let t = null; - for (const r of this._def.checks) - r[x(1859)] === "max" && (t === null || r.value < t) && (t = r[x(2446)]); + for (const r of this[x(2200)].checks) + r[x(1130)] === x(477) && (t === null || r[x(935)] < t) && (t = r[x(935)]); return t; } } -ax[a(1602)] = (o) => { +tx.create = (o) => { const x = a; - return new ax({ checks: [], typeName: pe[x(2268)], coerce: (o == null ? void 0 : o[x(1077)]) ?? !1, ...ve(o) }); + return new tx({ checks: [], typeName: pe[x(2476)], coerce: (o == null ? void 0 : o[x(2571)]) ?? !1, ...we(o) }); }; -class zt extends Ce { - [a(1585)](x) { - const t = a; - if (this[t(1575)][t(1077)] && (x[t(2663)] = !!x[t(2663)]), this[t(2981)](x) !== ae.boolean) { - const e = this._getOrReturnCtx(x); - return ee(e, { code: Z[t(2421)], expected: ae[t(3106)], received: e.parsedType }), he; - } - return a0(x[t(2663)]); - } -} -zt[a(1602)] = (o) => { - const x = a; - return new zt({ typeName: pe[x(2084)], coerce: (o == null ? void 0 : o.coerce) || !1, ...ve(o) }); -}; -class vx extends Ce { +class zt extends Fe { _parse(x) { const t = a; - if (this[t(1575)].coerce && (x[t(2663)] = new Date(x[t(2663)])), this[t(2981)](x) !== ae[t(1591)]) { - const n = this[t(3148)](x); - return ee(n, { code: Z.invalid_type, expected: ae[t(1591)], received: n[t(3156)] }), he; + if (this[t(2200)].coerce && (x[t(1506)] = !!x[t(1506)]), this[t(904)](x) !== ae[t(2903)]) { + const e = this._getOrReturnCtx(x); + return Y(e, { code: K[t(2165)], expected: ae[t(2903)], received: e[t(1358)] }), he; } - if (Number[t(990)](x[t(2663)].getTime())) { - const n = this[t(3148)](x); - return ee(n, { code: Z.invalid_date }), he; + return a0(x[t(1506)]); + } +} +zt.create = (o) => { + const x = a; + return new zt({ typeName: pe[x(1647)], coerce: (o == null ? void 0 : o.coerce) || !1, ...we(o) }); +}; +class yx extends Fe { + _parse(x) { + const t = a; + if (this[t(2200)][t(2571)] && (x[t(1506)] = new Date(x.data)), this[t(904)](x) !== ae[t(2923)]) { + const n = this._getOrReturnCtx(x); + return Y(n, { code: K.invalid_type, expected: ae[t(2923)], received: n[t(1358)] }), he; + } + if (Number[t(1632)](x[t(1506)][t(2807)]())) { + const n = this._getOrReturnCtx(x); + return Y(n, { code: K[t(1819)] }), he; } const e = new e0(); let s; - for (const n of this[t(1575)][t(1773)]) - n[t(1859)] === t(521) ? x[t(2663)].getTime() < n[t(2446)] && (s = this[t(3148)](x, s), ee(s, { code: Z[t(2724)], message: n[t(1044)], inclusive: !0, exact: !1, minimum: n[t(2446)], type: t(1591) }), e[t(2329)]()) : n[t(1859)] === t(753) ? x[t(2663)][t(2722)]() > n[t(2446)] && (s = this[t(3148)](x, s), ee(s, { code: Z[t(1305)], message: n[t(1044)], inclusive: !0, exact: !1, maximum: n[t(2446)], type: t(1591) }), e[t(2329)]()) : Ne[t(1034)](n); - return { status: e[t(2446)], value: new Date(x[t(2663)][t(2722)]()) }; + for (const n of this[t(2200)][t(2978)]) + n.kind === t(316) ? x[t(1506)].getTime() < n.value && (s = this[t(1310)](x, s), Y(s, { code: K[t(2627)], message: n[t(2461)], inclusive: !0, exact: !1, minimum: n.value, type: t(2923) }), e.dirty()) : n[t(1130)] === "max" ? x.data[t(2807)]() > n[t(935)] && (s = this[t(1310)](x, s), Y(s, { code: K[t(457)], message: n[t(2461)], inclusive: !0, exact: !1, maximum: n[t(935)], type: t(2923) }), e[t(2726)]()) : Te[t(1635)](n); + return { status: e[t(935)], value: new Date(x[t(1506)][t(2807)]()) }; } - [a(1095)](x) { + [a(1616)](x) { const t = a; - return new vx({ ...this._def, checks: [...this[t(1575)].checks, x] }); + return new yx({ ...this[t(2200)], checks: [...this[t(2200)].checks, x] }); } min(x, t) { const r = a; - return this[r(1095)]({ kind: r(521), value: x.getTime(), message: ne[r(2732)](t) }); + return this._addCheck({ kind: r(316), value: x.getTime(), message: re.toString(t) }); } - [a(753)](x, t) { + [a(477)](x, t) { const r = a; - return this[r(1095)]({ kind: r(753), value: x[r(2722)](), message: ne[r(2732)](t) }); + return this[r(1616)]({ kind: "max", value: x[r(2807)](), message: re[r(511)](t) }); } - get [a(3018)]() { + get [a(2785)]() { const x = a; let t = null; - for (const r of this[x(1575)][x(1773)]) - r[x(1859)] === "min" && (t === null || r[x(2446)] > t) && (t = r.value); + for (const r of this[x(2200)][x(2978)]) + r[x(1130)] === x(316) && (t === null || r.value > t) && (t = r[x(935)]); return t != null ? new Date(t) : null; } - get [a(489)]() { + get [a(2026)]() { const x = a; let t = null; - for (const r of this[x(1575)][x(1773)]) - r[x(1859)] === "max" && (t === null || r[x(2446)] < t) && (t = r[x(2446)]); + for (const r of this[x(2200)][x(2978)]) + r[x(1130)] === x(477) && (t === null || r[x(935)] < t) && (t = r[x(935)]); return t != null ? new Date(t) : null; } } -vx[a(1602)] = (o) => { +yx.create = (o) => { const x = a; - return new vx({ checks: [], coerce: (o == null ? void 0 : o[x(1077)]) || !1, typeName: pe.ZodDate, ...ve(o) }); + return new yx({ checks: [], coerce: (o == null ? void 0 : o[x(2571)]) || !1, typeName: pe.ZodDate, ...we(o) }); }; -class qa extends Ce { - [a(1585)](x) { +class qa extends Fe { + [a(2297)](x) { const t = a; - if (this[t(2981)](x) !== ae[t(1698)]) { - const e = this._getOrReturnCtx(x); - return ee(e, { code: Z.invalid_type, expected: ae[t(1698)], received: e[t(3156)] }), he; - } - return a0(x[t(2663)]); - } -} -qa[a(1602)] = (o) => { - const x = a; - return new qa({ typeName: pe[x(2021)], ...ve(o) }); -}; -class Ht extends Ce { - [a(1585)](x) { - const t = a; - if (this[t(2981)](x) !== ae[t(993)]) { - const e = this._getOrReturnCtx(x); - return ee(e, { code: Z[t(2421)], expected: ae.undefined, received: e.parsedType }), he; - } - return a0(x[t(2663)]); - } -} -Ht[a(1602)] = (o) => { - const x = a; - return new Ht({ typeName: pe[x(2720)], ...ve(o) }); -}; -class Vt extends Ce { - [a(1585)](x) { - const t = a; - if (this[t(2981)](x) !== ae.null) { - const e = this[t(3148)](x); - return ee(e, { code: Z.invalid_type, expected: ae[t(1959)], received: e[t(3156)] }), he; - } - return a0(x[t(2663)]); - } -} -Vt[a(1602)] = (o) => { - const x = a; - return new Vt({ typeName: pe[x(577)], ...ve(o) }); -}; -class rx extends Ce { - constructor() { - const x = a; - super(...arguments), this[x(747)] = !0; - } - [a(1585)](x) { - return a0(x[a(2663)]); - } -} -rx[a(1602)] = (o) => { - const x = a; - return new rx({ typeName: pe[x(1985)], ...ve(o) }); -}; -class Bt extends Ce { - constructor() { - const x = a; - super(...arguments), this[x(703)] = !0; - } - [a(1585)](x) { - return a0(x[a(2663)]); - } -} -Bt[a(1602)] = (o) => { - const x = a; - return new Bt({ typeName: pe[x(1730)], ...ve(o) }); -}; -class C0 extends Ce { - _parse(x) { - const t = a, r = this[t(3148)](x); - return ee(r, { code: Z[t(2421)], expected: ae.never, received: r[t(3156)] }), he; - } -} -C0[a(1602)] = (o) => new C0({ typeName: pe.ZodNever, ...ve(o) }); -class Wt extends Ce { - [a(1585)](x) { - const t = a; - if (this[t(2981)](x) !== ae[t(993)]) { - const e = this._getOrReturnCtx(x); - return ee(e, { code: Z[t(2421)], expected: ae[t(1123)], received: e.parsedType }), he; + if (this[t(904)](x) !== ae.symbol) { + const e = this[t(1310)](x); + return Y(e, { code: K[t(2165)], expected: ae[t(1732)], received: e[t(1358)] }), he; } return a0(x.data); } } -Wt[a(1602)] = (o) => { +qa[a(558)] = (o) => { const x = a; - return new Wt({ typeName: pe[x(2842)], ...ve(o) }); + return new qa({ typeName: pe[x(1627)], ...we(o) }); }; -class h0 extends Ce { - _parse(x) { - const t = a, { ctx: r, status: e } = this[t(861)](x), s = this._def; - if (r[t(3156)] !== ae[t(529)]) return ee(r, { code: Z[t(2421)], expected: ae[t(529)], received: r[t(3156)] }), he; - if (s.exactLength !== null) { - const i = r[t(2663)][t(2710)] > s.exactLength[t(2446)], c = r[t(2663)][t(2710)] < s[t(1623)][t(2446)]; - (i || c) && (ee(r, { code: i ? Z[t(1305)] : Z[t(2724)], minimum: c ? s[t(1623)][t(2446)] : void 0, maximum: i ? s[t(1623)][t(2446)] : void 0, type: "array", inclusive: !0, exact: !0, message: s[t(1623)][t(1044)] }), e[t(2329)]()); +class Ht extends Fe { + [a(2297)](x) { + const t = a; + if (this[t(904)](x) !== ae[t(2781)]) { + const e = this[t(1310)](x); + return Y(e, { code: K.invalid_type, expected: ae[t(2781)], received: e[t(1358)] }), he; } - if (s[t(1312)] !== null && r[t(2663)][t(2710)] < s[t(1312)].value && (ee(r, { code: Z[t(2724)], minimum: s[t(1312)].value, type: "array", inclusive: !0, exact: !1, message: s[t(1312)][t(1044)] }), e.dirty()), s[t(649)] !== null && r[t(2663)][t(2710)] > s[t(649)][t(2446)] && (ee(r, { code: Z.too_big, maximum: s[t(649)][t(2446)], type: t(529), inclusive: !0, exact: !1, message: s[t(649)][t(1044)] }), e.dirty()), r.common[t(2416)]) return Promise[t(1096)]([...r.data][t(1930)]((i, c) => { - const u = t; - return s[u(2076)][u(2909)](new p0(r, i, r[u(2474)], c)); - }))[t(2517)]((i) => e0[t(1141)](e, i)); - const n = [...r[t(2663)]][t(1930)]((i, c) => { - const u = t; - return s[u(2076)][u(2308)](new p0(r, i, r[u(2474)], c)); - }); - return e0[t(1141)](e, n); - } - get [a(2671)]() { - const x = a; - return this[x(1575)][x(2076)]; - } - [a(521)](x, t) { - const r = a; - return new h0({ ...this[r(1575)], minLength: { value: x, message: ne[r(2732)](t) } }); - } - max(x, t) { - const r = a; - return new h0({ ...this[r(1575)], maxLength: { value: x, message: ne.toString(t) } }); - } - [a(2710)](x, t) { - const r = a; - return new h0({ ...this[r(1575)], exactLength: { value: x, message: ne[r(2732)](t) } }); - } - [a(1214)](x) { - return this[a(521)](1, x); + return a0(x[t(1506)]); } } -h0.create = (o, x) => { - const t = a; - return new h0({ type: o, minLength: null, maxLength: null, exactLength: null, typeName: pe[t(2196)], ...ve(x) }); -}; -function z0(o) { +Ht.create = (o) => { const x = a; - if (o instanceof Ke) { - const t = {}; - for (const r in o[x(1547)]) { - const e = o[x(1547)][r]; - t[r] = S0[x(1602)](z0(e)); + return new Ht({ typeName: pe[x(1292)], ...we(o) }); +}; +class Vt extends Fe { + [a(2297)](x) { + const t = a; + if (this[t(904)](x) !== ae[t(2607)]) { + const e = this[t(1310)](x); + return Y(e, { code: K[t(2165)], expected: ae[t(2607)], received: e.parsedType }), he; } - return new Ke({ ...o._def, shape: () => t }); - } else - return o instanceof h0 ? new h0({ ...o._def, type: z0(o[x(2671)]) }) : o instanceof S0 ? S0[x(1602)](z0(o[x(2524)]())) : o instanceof D0 ? D0[x(1602)](z0(o.unwrap())) : o instanceof A0 ? A0[x(1602)](o[x(2286)][x(1930)]((t) => z0(t))) : o; + return a0(x[t(1506)]); + } } -class Ke extends Ce { +Vt[a(558)] = (o) => { + const x = a; + return new Vt({ typeName: pe[x(1084)], ...we(o) }); +}; +class ax extends Fe { constructor() { const x = a; - super(...arguments), this[x(2490)] = null, this[x(1599)] = this.passthrough, this[x(2689)] = this[x(919)]; + super(...arguments), this[x(2503)] = !0; } - [a(481)]() { + [a(2297)](x) { + return a0(x.data); + } +} +ax[a(558)] = (o) => new ax({ typeName: pe.ZodAny, ...we(o) }); +class Bt extends Fe { + constructor() { const x = a; - if (this[x(2490)] !== null) return this[x(2490)]; - const t = this[x(1575)][x(1547)](), r = Ne[x(2493)](t); - return this[x(2490)] = { shape: t, keys: r }, this[x(2490)]; + super(...arguments), this[x(721)] = !0; } + [a(2297)](x) { + return a0(x[a(1506)]); + } +} +Bt[a(558)] = (o) => { + const x = a; + return new Bt({ typeName: pe[x(972)], ...we(o) }); +}; +class C0 extends Fe { + [a(2297)](x) { + const t = a, r = this[t(1310)](x); + return Y(r, { code: K.invalid_type, expected: ae[t(1657)], received: r.parsedType }), he; + } +} +C0[a(558)] = (o) => { + const x = a; + return new C0({ typeName: pe[x(2134)], ...we(o) }); +}; +class Wt extends Fe { _parse(x) { const t = a; - if (this[t(2981)](x) !== ae[t(1304)]) { - const f = this._getOrReturnCtx(x); - return ee(f, { code: Z.invalid_type, expected: ae[t(1304)], received: f.parsedType }), he; + if (this[t(904)](x) !== ae.undefined) { + const e = this[t(1310)](x); + return Y(e, { code: K[t(2165)], expected: ae[t(1842)], received: e[t(1358)] }), he; } - const { status: e, ctx: s } = this._processInputParams(x), { shape: n, keys: i } = this._getCached(), c = []; - if (!(this._def[t(1010)] instanceof C0 && this._def[t(2477)] === t(2384))) for (const f in s.data) - !i[t(2978)](f) && c.push(f); + return a0(x.data); + } +} +Wt[a(558)] = (o) => { + const x = a; + return new Wt({ typeName: pe[x(2171)], ...we(o) }); +}; +class h0 extends Fe { + [a(2297)](x) { + const t = a, { ctx: r, status: e } = this[t(2437)](x), s = this[t(2200)]; + if (r[t(1358)] !== ae[t(1912)]) return Y(r, { code: K.invalid_type, expected: ae.array, received: r[t(1358)] }), he; + if (s[t(1560)] !== null) { + const i = r[t(1506)].length > s[t(1560)][t(935)], c = r[t(1506)].length < s[t(1560)][t(935)]; + (i || c) && (Y(r, { code: i ? K[t(457)] : K.too_small, minimum: c ? s[t(1560)].value : void 0, maximum: i ? s.exactLength[t(935)] : void 0, type: t(1912), inclusive: !0, exact: !0, message: s.exactLength[t(2461)] }), e[t(2726)]()); + } + if (s.minLength !== null && r.data[t(1148)] < s[t(1979)][t(935)] && (Y(r, { code: K.too_small, minimum: s[t(1979)][t(935)], type: t(1912), inclusive: !0, exact: !1, message: s[t(1979)][t(2461)] }), e[t(2726)]()), s.maxLength !== null && r.data[t(1148)] > s[t(388)][t(935)] && (Y(r, { code: K[t(457)], maximum: s[t(388)].value, type: t(1912), inclusive: !0, exact: !1, message: s.maxLength[t(2461)] }), e[t(2726)]()), r[t(2919)][t(2538)]) return Promise.all([...r[t(1506)]][t(2739)]((i, c) => { + const u = t; + return s.type[u(1923)](new p0(r, i, r[u(648)], c)); + }))[t(634)]((i) => e0[t(2628)](e, i)); + const n = [...r.data].map((i, c) => { + const u = t; + return s[u(2291)]._parseSync(new p0(r, i, r[u(648)], c)); + }); + return e0[t(2628)](e, n); + } + get [a(2414)]() { + const x = a; + return this[x(2200)][x(2291)]; + } + [a(316)](x, t) { + const r = a; + return new h0({ ...this[r(2200)], minLength: { value: x, message: re[r(511)](t) } }); + } + [a(477)](x, t) { + const r = a; + return new h0({ ...this[r(2200)], maxLength: { value: x, message: re[r(511)](t) } }); + } + [a(1148)](x, t) { + const r = a; + return new h0({ ...this[r(2200)], exactLength: { value: x, message: re.toString(t) } }); + } + [a(2814)](x) { + return this[a(316)](1, x); + } +} +h0[a(558)] = (o, x) => { + const t = a; + return new h0({ type: o, minLength: null, maxLength: null, exactLength: null, typeName: pe[t(535)], ...we(x) }); +}; +function U0(o) { + const x = a; + if (o instanceof Ze) { + const t = {}; + for (const r in o[x(1190)]) { + const e = o.shape[r]; + t[r] = S0[x(558)](U0(e)); + } + return new Ze({ ...o[x(2200)], shape: () => t }); + } else + return o instanceof h0 ? new h0({ ...o._def, type: U0(o[x(2414)]) }) : o instanceof S0 ? S0.create(U0(o[x(2e3)]())) : o instanceof D0 ? D0[x(558)](U0(o[x(2e3)]())) : o instanceof A0 ? A0[x(558)](o[x(1603)].map((t) => U0(t))) : o; +} +class Ze extends Fe { + constructor() { + const x = a; + super(...arguments), this[x(794)] = null, this[x(2517)] = this[x(933)], this[x(586)] = this[x(1735)]; + } + _getCached() { + const x = a; + if (this[x(794)] !== null) return this._cached; + const t = this[x(2200)][x(1190)](), r = Te.objectKeys(t); + return this[x(794)] = { shape: t, keys: r }, this[x(794)]; + } + [a(2297)](x) { + const t = a; + if (this[t(904)](x) !== ae[t(2220)]) { + const d = this._getOrReturnCtx(x); + return Y(d, { code: K[t(2165)], expected: ae[t(2220)], received: d[t(1358)] }), he; + } + const { status: e, ctx: s } = this[t(2437)](x), { shape: n, keys: i } = this[t(1182)](), c = []; + if (!(this[t(2200)][t(840)] instanceof C0 && this[t(2200)][t(683)] === t(1966))) for (const d in s[t(1506)]) + !i[t(555)](d) && c[t(3019)](d); const u = []; - for (const f of i) { - const l = n[f], d = s[t(2663)][f]; - u[t(3062)]({ key: { status: t(1122), value: f }, value: l[t(1585)](new p0(s, d, s[t(2474)], f)), alwaysSet: f in s[t(2663)] }); + for (const d of i) { + const l = n[d], f = s[t(1506)][d]; + u.push({ key: { status: t(467), value: d }, value: l[t(2297)](new p0(s, f, s.path, d)), alwaysSet: d in s.data }); } - if (this[t(1575)][t(1010)] instanceof C0) { - const f = this[t(1575)][t(2477)]; - if (f === t(1307)) for (const l of c) - u[t(3062)]({ key: { status: t(1122), value: l }, value: { status: t(1122), value: s[t(2663)][l] } }); - else if (f === "strict") c.length > 0 && (ee(s, { code: Z[t(1825)], keys: c }), e[t(2329)]()); - else if (f !== t(2384)) throw new Error(t(1145)); + if (this[t(2200)][t(840)] instanceof C0) { + const d = this[t(2200)][t(683)]; + if (d === t(933)) for (const l of c) + u[t(3019)]({ key: { status: t(467), value: l }, value: { status: t(467), value: s[t(1506)][l] } }); + else if (d === t(2716)) c[t(1148)] > 0 && (Y(s, { code: K.unrecognized_keys, keys: c }), e[t(2726)]()); + else if (d !== t(1966)) throw new Error(t(748)); } else { - const f = this._def[t(1010)]; + const d = this[t(2200)][t(840)]; for (const l of c) { - const d = s[t(2663)][l]; - u[t(3062)]({ key: { status: "valid", value: l }, value: f[t(1585)](new p0(s, d, s[t(2474)], l)), alwaysSet: l in s.data }); + const f = s[t(1506)][l]; + u.push({ key: { status: t(467), value: l }, value: d[t(2297)](new p0(s, f, s[t(648)], l)), alwaysSet: l in s[t(1506)] }); } } - return s.common[t(2416)] ? Promise[t(2457)]()[t(2517)](async () => { - const f = t, l = []; - for (const d of u) { - const g = await d[f(480)], h = await d[f(2446)]; - l.push({ key: g, value: h, alwaysSet: d[f(2643)] }); + return s.common[t(2538)] ? Promise[t(855)]().then(async () => { + const d = t, l = []; + for (const f of u) { + const g = await f.key, h = await f[d(935)]; + l[d(3019)]({ key: g, value: h, alwaysSet: f[d(1151)] }); } return l; - })[t(2517)]((f) => e0[t(3048)](e, f)) : e0[t(3048)](e, u); + })[t(634)]((d) => e0.mergeObjectSync(e, d)) : e0.mergeObjectSync(e, u); } - get [a(1547)]() { - return this._def.shape(); + get shape() { + const x = a; + return this._def[x(1190)](); } - [a(1116)](x) { + [a(2716)](x) { const t = a; - return ne.errToObj, new Ke({ ...this[t(1575)], unknownKeys: t(1116), ...x !== void 0 ? { errorMap: (r, e) => { + return re[t(2404)], new Ze({ ...this[t(2200)], unknownKeys: t(2716), ...x !== void 0 ? { errorMap: (r, e) => { var i, c; - const s = t, n = ((c = (i = this[s(1575)])[s(717)]) == null ? void 0 : c.call(i, r, e)[s(1044)]) ?? e[s(2272)]; - return r.code === "unrecognized_keys" ? { message: ne.errToObj(x)[s(1044)] ?? n } : { message: n }; + const s = t, n = ((c = (i = this[s(2200)])[s(3e3)]) == null ? void 0 : c.call(i, r, e)[s(2461)]) ?? e[s(790)]; + return r[s(2345)] === s(2592) ? { message: re[s(2404)](x).message ?? n } : { message: n }; } } : {} }); } - [a(2384)]() { + strip() { const x = a; - return new Ke({ ...this[x(1575)], unknownKeys: x(2384) }); + return new Ze({ ...this._def, unknownKeys: x(1966) }); } - [a(1307)]() { + [a(933)]() { const x = a; - return new Ke({ ...this[x(1575)], unknownKeys: x(1307) }); + return new Ze({ ...this[x(2200)], unknownKeys: x(933) }); } - [a(919)](x) { + extend(x) { const t = a; - return new Ke({ ...this[t(1575)], shape: () => ({ ...this[t(1575)].shape(), ...x }) }); + return new Ze({ ...this._def, shape: () => ({ ...this[t(2200)].shape(), ...x }) }); } - [a(1779)](x) { + [a(1214)](x) { const t = a; - return new Ke({ unknownKeys: x[t(1575)][t(2477)], catchall: x[t(1575)][t(1010)], shape: () => ({ ...this._def[t(1547)](), ...x[t(1575)].shape() }), typeName: pe[t(2585)] }); + return new Ze({ unknownKeys: x._def.unknownKeys, catchall: x[t(2200)][t(840)], shape: () => ({ ...this[t(2200)][t(1190)](), ...x[t(2200)][t(1190)]() }), typeName: pe.ZodObject }); } - [a(2569)](x, t) { - return this[a(2689)]({ [x]: t }); + [a(2487)](x, t) { + return this[a(586)]({ [x]: t }); } - [a(1010)](x) { + catchall(x) { const t = a; - return new Ke({ ...this[t(1575)], catchall: x }); + return new Ze({ ...this[t(2200)], catchall: x }); } - pick(x) { + [a(1824)](x) { const t = a, r = {}; - for (const e of Ne.objectKeys(x)) - x[e] && this[t(1547)][e] && (r[e] = this[t(1547)][e]); - return new Ke({ ...this[t(1575)], shape: () => r }); + for (const e of Te.objectKeys(x)) + x[e] && this[t(1190)][e] && (r[e] = this.shape[e]); + return new Ze({ ...this[t(2200)], shape: () => r }); } - [a(1610)](x) { + [a(1164)](x) { const t = a, r = {}; - for (const e of Ne[t(2493)](this[t(1547)])) - !x[e] && (r[e] = this.shape[e]); - return new Ke({ ...this._def, shape: () => r }); + for (const e of Te[t(732)](this.shape)) + !x[e] && (r[e] = this[t(1190)][e]); + return new Ze({ ...this[t(2200)], shape: () => r }); } - deepPartial() { - return z0(this); + [a(2526)]() { + return U0(this); } - [a(537)](x) { + [a(2193)](x) { const t = a, r = {}; - for (const e of Ne[t(2493)](this[t(1547)])) { - const s = this[t(1547)][e]; - x && !x[e] ? r[e] = s : r[e] = s[t(2478)](); + for (const e of Te[t(732)](this[t(1190)])) { + const s = this[t(1190)][e]; + x && !x[e] ? r[e] = s : r[e] = s[t(2184)](); } - return new Ke({ ...this[t(1575)], shape: () => r }); + return new Ze({ ...this[t(2200)], shape: () => r }); } - [a(2438)](x) { + [a(747)](x) { const t = a, r = {}; - for (const e of Ne[t(2493)](this[t(1547)])) - if (x && !x[e]) r[e] = this[t(1547)][e]; + for (const e of Te[t(732)](this.shape)) + if (x && !x[e]) r[e] = this[t(1190)][e]; else { let n = this.shape[e]; for (; n instanceof S0; ) - n = n._def[t(2813)]; + n = n[t(2200)][t(550)]; r[e] = n; } - return new Ke({ ...this[t(1575)], shape: () => r }); + return new Ze({ ...this[t(2200)], shape: () => r }); } - keyof() { + [a(2539)]() { const x = a; - return zs(Ne[x(2493)](this[x(1547)])); + return Ls(Te[x(732)](this[x(1190)])); } } -Ke[a(1602)] = (o, x) => { +Ze[a(558)] = (o, x) => { const t = a; - return new Ke({ shape: () => o, unknownKeys: "strip", catchall: C0[t(1602)](), typeName: pe[t(2585)], ...ve(x) }); -}, Ke.strictCreate = (o, x) => { + return new Ze({ shape: () => o, unknownKeys: t(1966), catchall: C0[t(558)](), typeName: pe[t(2113)], ...we(x) }); +}, Ze.strictCreate = (o, x) => { const t = a; - return new Ke({ shape: () => o, unknownKeys: "strict", catchall: C0[t(1602)](), typeName: pe.ZodObject, ...ve(x) }); -}, Ke[a(1709)] = (o, x) => { + return new Ze({ shape: () => o, unknownKeys: t(2716), catchall: C0.create(), typeName: pe[t(2113)], ...we(x) }); +}, Ze[a(2015)] = (o, x) => { const t = a; - return new Ke({ shape: o, unknownKeys: t(2384), catchall: C0[t(1602)](), typeName: pe[t(2585)], ...ve(x) }); + return new Ze({ shape: o, unknownKeys: "strip", catchall: C0[t(558)](), typeName: pe.ZodObject, ...we(x) }); }; -class wx extends Ce { - [a(1585)](x) { - const t = a, { ctx: r } = this[t(861)](x), e = this[t(1575)][t(2876)]; +class vx extends Fe { + [a(2297)](x) { + const t = a, { ctx: r } = this[t(2437)](x), e = this[t(2200)][t(1341)]; function s(n) { const i = t; for (const u of n) - if (u[i(676)][i(1227)] === "valid") return u[i(676)]; + if (u[i(2468)][i(1071)] === i(467)) return u[i(2468)]; for (const u of n) - if (u[i(676)][i(1227)] === i(2329)) return r[i(1281)][i(908)][i(3062)](...u[i(2136)][i(1281)][i(908)]), u[i(676)]; - const c = n[i(1930)]((u) => new P0(u[i(2136)][i(1281)].issues)); - return ee(r, { code: Z.invalid_union, unionErrors: c }), he; + if (u[i(2468)].status === i(2726)) return r[i(2919)][i(995)].push(...u.ctx[i(2919)][i(995)]), u.result; + const c = n[i(2739)]((u) => new P0(u[i(287)][i(2919)][i(995)])); + return Y(r, { code: K[i(1945)], unionErrors: c }), he; } - if (r[t(1281)][t(2416)]) return Promise.all(e[t(1930)](async (n) => { + if (r.common.async) return Promise[t(2497)](e.map(async (n) => { const i = t, c = { ...r, common: { ...r.common, issues: [] }, parent: null }; - return { result: await n[i(2909)]({ data: r[i(2663)], path: r[i(2474)], parent: c }), ctx: c }; - }))[t(2517)](s); + return { result: await n[i(1923)]({ data: r[i(1506)], path: r.path, parent: c }), ctx: c }; + })).then(s); { let n; const i = []; for (const u of e) { - const f = { ...r, common: { ...r.common, issues: [] }, parent: null }, l = u[t(2308)]({ data: r[t(2663)], path: r.path, parent: f }); - if (l[t(1227)] === t(1122)) return l; - l[t(1227)] === "dirty" && !n && (n = { result: l, ctx: f }), f[t(1281)][t(908)][t(2710)] && i[t(3062)](f[t(1281)][t(908)]); + const d = { ...r, common: { ...r[t(2919)], issues: [] }, parent: null }, l = u[t(1386)]({ data: r[t(1506)], path: r[t(648)], parent: d }); + if (l[t(1071)] === t(467)) return l; + l[t(1071)] === t(2726) && !n && (n = { result: l, ctx: d }), d[t(2919)][t(995)][t(1148)] && i[t(3019)](d[t(2919)].issues); } - if (n) return r[t(1281)][t(908)][t(3062)](...n[t(2136)][t(1281)][t(908)]), n[t(676)]; - const c = i[t(1930)]((u) => new P0(u)); - return ee(r, { code: Z.invalid_union, unionErrors: c }), he; + if (n) return r[t(2919)][t(995)][t(3019)](...n[t(287)][t(2919)][t(995)]), n[t(2468)]; + const c = i[t(2739)]((u) => new P0(u)); + return Y(r, { code: K[t(1945)], unionErrors: c }), he; } } - get [a(2876)]() { + get [a(1341)]() { const x = a; - return this[x(1575)][x(2876)]; + return this[x(2200)][x(1341)]; } } -wx[a(1602)] = (o, x) => { +vx.create = (o, x) => { const t = a; - return new wx({ options: o, typeName: pe[t(1695)], ...ve(x) }); + return new vx({ options: o, typeName: pe[t(1574)], ...we(x) }); }; const y0 = (o) => { const x = a; - return o instanceof Kt ? y0(o[x(1425)]) : o instanceof N0 ? y0(o[x(2813)]()) : o instanceof Px ? [o[x(2446)]] : o instanceof O0 ? o[x(2876)] : o instanceof Gt ? Ne[x(1740)](o.enum) : o instanceof Ex ? y0(o[x(1575)][x(2813)]) : o instanceof Ht ? [void 0] : o instanceof Vt ? [null] : o instanceof S0 ? [void 0, ...y0(o[x(2524)]())] : o instanceof D0 ? [null, ...y0(o[x(2524)]())] : o instanceof Hs || o instanceof Cx ? y0(o[x(2524)]()) : o instanceof Rx ? y0(o[x(1575)].innerType) : []; + return o instanceof Zt ? y0(o.schema) : o instanceof T0 ? y0(o[x(550)]()) : o instanceof kx ? [o[x(935)]] : o instanceof O0 ? o[x(1341)] : o instanceof Gt ? Te[x(1800)](o[x(2897)]) : o instanceof Ex ? y0(o[x(2200)][x(550)]) : o instanceof Ht ? [void 0] : o instanceof Vt ? [null] : o instanceof S0 ? [void 0, ...y0(o[x(2e3)]())] : o instanceof D0 ? [null, ...y0(o[x(2e3)]())] : o instanceof Ms || o instanceof Cx ? y0(o[x(2e3)]()) : o instanceof Rx ? y0(o._def[x(550)]) : []; }; -class na extends Ce { - [a(1585)](x) { - const t = a, { ctx: r } = this[t(861)](x); - if (r.parsedType !== ae[t(1304)]) return ee(r, { code: Z[t(2421)], expected: ae[t(1304)], received: r[t(3156)] }), he; - const e = this[t(2830)], s = r[t(2663)][e], n = this[t(2501)].get(s); - return n ? r[t(1281)].async ? n[t(2909)]({ data: r[t(2663)], path: r[t(2474)], parent: r }) : n[t(2308)]({ data: r[t(2663)], path: r[t(2474)], parent: r }) : (ee(r, { code: Z[t(3221)], options: Array[t(2047)](this[t(2501)][t(2123)]()), path: [e] }), he); +class na extends Fe { + [a(2297)](x) { + const t = a, { ctx: r } = this._processInputParams(x); + if (r[t(1358)] !== ae[t(2220)]) return Y(r, { code: K.invalid_type, expected: ae.object, received: r.parsedType }), he; + const e = this[t(301)], s = r[t(1506)][e], n = this[t(1965)][t(1507)](s); + return n ? r[t(2919)][t(2538)] ? n[t(1923)]({ data: r[t(1506)], path: r[t(648)], parent: r }) : n[t(1386)]({ data: r.data, path: r.path, parent: r }) : (Y(r, { code: K[t(2222)], options: Array[t(1546)](this[t(1965)][t(1877)]()), path: [e] }), he); } get discriminator() { const x = a; - return this[x(1575)][x(2830)]; + return this._def[x(301)]; } - get [a(2876)]() { + get [a(1341)]() { + return this[a(2200)].options; + } + get [a(1965)]() { const x = a; - return this[x(1575)][x(2876)]; + return this[x(2200)][x(1965)]; } - get [a(2501)]() { - const x = a; - return this._def[x(2501)]; - } - static [a(1602)](x, t, r) { + static [a(558)](x, t, r) { const e = a, s = /* @__PURE__ */ new Map(); for (const n of t) { - const i = y0(n[e(1547)][x]); - if (!i[e(2710)]) throw new Error(e(584) + x + e(2306)); + const i = y0(n[e(1190)][x]); + if (!i[e(1148)]) throw new Error(e(340) + x + e(333)); for (const c of i) { - if (s[e(2348)](c)) throw new Error(e(2331) + String(x) + e(2221) + String(c)); - s[e(780)](c, n); + if (s[e(1281)](c)) throw new Error(e(349) + String(x) + " has duplicate value " + String(c)); + s[e(823)](c, n); } } - return new na({ typeName: pe[e(1046)], discriminator: x, options: t, optionsMap: s, ...ve(r) }); + return new na({ typeName: pe[e(2352)], discriminator: x, options: t, optionsMap: s, ...we(r) }); } } -function Zt(o, x) { +function Kt(o, x) { const t = a, r = E0(o), e = E0(x); if (o === x) return { valid: !0, data: o }; - if (r === ae[t(1304)] && e === ae[t(1304)]) { - const s = Ne.objectKeys(x), n = Ne[t(2493)](o)[t(2581)]((c) => s[t(2436)](c) !== -1), i = { ...o, ...x }; + if (r === ae[t(2220)] && e === ae[t(2220)]) { + const s = Te[t(732)](x), n = Te[t(732)](o)[t(362)]((c) => s[t(2273)](c) !== -1), i = { ...o, ...x }; for (const c of n) { - const u = Zt(o[c], x[c]); - if (!u.valid) return { valid: !1 }; - i[c] = u[t(2663)]; + const u = Kt(o[c], x[c]); + if (!u[t(467)]) return { valid: !1 }; + i[c] = u.data; } return { valid: !0, data: i }; - } else if (r === ae[t(529)] && e === ae[t(529)]) { - if (o.length !== x[t(2710)]) return { valid: !1 }; + } else if (r === ae.array && e === ae[t(1912)]) { + if (o[t(1148)] !== x[t(1148)]) return { valid: !1 }; const s = []; - for (let n = 0; n < o[t(2710)]; n++) { - const i = o[n], c = x[n], u = Zt(i, c); - if (!u[t(1122)]) return { valid: !1 }; - s[t(3062)](u.data); + for (let n = 0; n < o[t(1148)]; n++) { + const i = o[n], c = x[n], u = Kt(i, c); + if (!u[t(467)]) return { valid: !1 }; + s.push(u[t(1506)]); } return { valid: !0, data: s }; - } else return r === ae[t(1591)] && e === ae[t(1591)] && +o == +x ? { valid: !0, data: o } : { valid: !1 }; + } else return r === ae[t(2923)] && e === ae[t(2923)] && +o == +x ? { valid: !0, data: o } : { valid: !1 }; } -class Sx extends Ce { - [a(1585)](x) { - const t = a, { status: r, ctx: e } = this[t(861)](x), s = (n, i) => { +class wx extends Fe { + [a(2297)](x) { + const t = a, { status: r, ctx: e } = this[t(2437)](x), s = (n, i) => { const c = t; - if (Fa(n) || Fa(i)) return he; - const u = Zt(n[c(2446)], i[c(2446)]); - return u.valid ? ((Ta(n) || Ta(i)) && r[c(2329)](), { status: r.value, value: u[c(2663)] }) : (ee(e, { code: Z[c(1998)] }), he); + if (_a(n) || _a(i)) return he; + const u = Kt(n[c(935)], i.value); + return u.valid ? ((Na(n) || Na(i)) && r[c(2726)](), { status: r[c(935)], value: u[c(1506)] }) : (Y(e, { code: K[c(2444)] }), he); }; - return e[t(1281)][t(2416)] ? Promise[t(1096)]([this[t(1575)][t(2731)][t(2909)]({ data: e[t(2663)], path: e[t(2474)], parent: e }), this._def[t(800)]._parseAsync({ data: e.data, path: e[t(2474)], parent: e })])[t(2517)](([n, i]) => s(n, i)) : s(this[t(1575)][t(2731)]._parseSync({ data: e[t(2663)], path: e.path, parent: e }), this[t(1575)][t(800)][t(2308)]({ data: e[t(2663)], path: e.path, parent: e })); + return e[t(2919)][t(2538)] ? Promise.all([this[t(2200)][t(268)][t(1923)]({ data: e[t(1506)], path: e.path, parent: e }), this._def.right[t(1923)]({ data: e[t(1506)], path: e[t(648)], parent: e })])[t(634)](([n, i]) => s(n, i)) : s(this._def[t(268)][t(1386)]({ data: e.data, path: e[t(648)], parent: e }), this._def.right[t(1386)]({ data: e[t(1506)], path: e.path, parent: e })); } } -Sx[a(1602)] = (o, x, t) => { +wx[a(558)] = (o, x, t) => { const r = a; - return new Sx({ left: o, right: x, typeName: pe[r(2449)], ...ve(t) }); + return new wx({ left: o, right: x, typeName: pe[r(1251)], ...we(t) }); }; -class A0 extends Ce { - [a(1585)](x) { - const t = a, { status: r, ctx: e } = this[t(861)](x); - if (e[t(3156)] !== ae[t(529)]) return ee(e, { code: Z[t(2421)], expected: ae[t(529)], received: e[t(3156)] }), he; - if (e[t(2663)].length < this._def.items[t(2710)]) return ee(e, { code: Z.too_small, minimum: this._def[t(2286)].length, inclusive: !0, exact: !1, type: "array" }), he; - !this[t(1575)][t(2662)] && e[t(2663)].length > this[t(1575)][t(2286)].length && (ee(e, { code: Z.too_big, maximum: this[t(1575)][t(2286)].length, inclusive: !0, exact: !1, type: t(529) }), r[t(2329)]()); - const n = [...e[t(2663)]][t(1930)]((i, c) => { - const u = t, f = this[u(1575)][u(2286)][c] || this[u(1575)][u(2662)]; - return f ? f._parse(new p0(e, i, e.path, c)) : null; - })[t(2581)]((i) => !!i); - return e[t(1281)][t(2416)] ? Promise[t(1096)](n)[t(2517)]((i) => e0[t(1141)](r, i)) : e0[t(1141)](r, n); +class A0 extends Fe { + [a(2297)](x) { + const t = a, { status: r, ctx: e } = this[t(2437)](x); + if (e[t(1358)] !== ae[t(1912)]) return Y(e, { code: K[t(2165)], expected: ae[t(1912)], received: e[t(1358)] }), he; + if (e.data[t(1148)] < this._def[t(1603)].length) return Y(e, { code: K.too_small, minimum: this[t(2200)][t(1603)][t(1148)], inclusive: !0, exact: !1, type: t(1912) }), he; + !this[t(2200)][t(941)] && e[t(1506)][t(1148)] > this._def[t(1603)].length && (Y(e, { code: K[t(457)], maximum: this._def[t(1603)][t(1148)], inclusive: !0, exact: !1, type: "array" }), r[t(2726)]()); + const n = [...e.data].map((i, c) => { + const u = t, d = this[u(2200)].items[c] || this[u(2200)][u(941)]; + return d ? d._parse(new p0(e, i, e[u(648)], c)) : null; + })[t(362)]((i) => !!i); + return e[t(2919)].async ? Promise[t(2497)](n)[t(634)]((i) => e0[t(2628)](r, i)) : e0.mergeArray(r, n); } - get [a(2286)]() { + get [a(1603)]() { const x = a; - return this[x(1575)][x(2286)]; + return this[x(2200)][x(1603)]; } rest(x) { const t = a; - return new A0({ ...this[t(1575)], rest: x }); + return new A0({ ...this[t(2200)], rest: x }); } } A0.create = (o, x) => { const t = a; - if (!Array[t(3255)](o)) throw new Error(t(2945)); - return new A0({ items: o, typeName: pe[t(3147)], rest: null, ...ve(x) }); + if (!Array[t(500)](o)) throw new Error(t(846)); + return new A0({ items: o, typeName: pe[t(2938)], rest: null, ...we(x) }); }; -class kx extends Ce { +class Sx extends Fe { get keySchema() { - return this[a(1575)].keyType; - } - get [a(3067)]() { const x = a; - return this._def[x(2027)]; + return this[x(2200)][x(1378)]; } - [a(1585)](x) { + get [a(2170)]() { + const x = a; + return this[x(2200)][x(913)]; + } + [a(2297)](x) { const t = a, { status: r, ctx: e } = this._processInputParams(x); - if (e.parsedType !== ae.object) return ee(e, { code: Z[t(2421)], expected: ae.object, received: e.parsedType }), he; - const s = [], n = this[t(1575)][t(2609)], i = this[t(1575)][t(2027)]; - for (const c in e[t(2663)]) - s.push({ key: n[t(1585)](new p0(e, c, e[t(2474)], c)), value: i[t(1585)](new p0(e, e[t(2663)][c], e.path, c)), alwaysSet: c in e[t(2663)] }); - return e.common[t(2416)] ? e0[t(3003)](r, s) : e0.mergeObjectSync(r, s); + if (e[t(1358)] !== ae[t(2220)]) return Y(e, { code: K[t(2165)], expected: ae.object, received: e[t(1358)] }), he; + const s = [], n = this[t(2200)][t(1378)], i = this[t(2200)][t(913)]; + for (const c in e[t(1506)]) + s.push({ key: n[t(2297)](new p0(e, c, e[t(648)], c)), value: i[t(2297)](new p0(e, e[t(1506)][c], e[t(648)], c)), alwaysSet: c in e[t(1506)] }); + return e[t(2919)][t(2538)] ? e0.mergeObjectAsync(r, s) : e0[t(574)](r, s); } - get [a(2671)]() { + get [a(2414)]() { const x = a; - return this[x(1575)][x(2027)]; + return this[x(2200)][x(913)]; } - static [a(1602)](x, t, r) { + static create(x, t, r) { const e = a; - return t instanceof Ce ? new kx({ keyType: x, valueType: t, typeName: pe[e(1131)], ...ve(r) }) : new kx({ keyType: w0[e(1602)](), valueType: x, typeName: pe[e(1131)], ...ve(t) }); + return t instanceof Fe ? new Sx({ keyType: x, valueType: t, typeName: pe[e(942)], ...we(r) }) : new Sx({ keyType: w0.create(), valueType: x, typeName: pe[e(942)], ...we(t) }); } } -class Aa extends Ce { - get [a(1851)]() { +class Aa extends Fe { + get [a(549)]() { const x = a; - return this[x(1575)][x(2609)]; + return this[x(2200)][x(1378)]; } - get [a(3067)]() { + get valueSchema() { const x = a; - return this[x(1575)][x(2027)]; + return this[x(2200)][x(913)]; } _parse(x) { - const t = a, { status: r, ctx: e } = this[t(861)](x); - if (e[t(3156)] !== ae.map) return ee(e, { code: Z[t(2421)], expected: ae[t(1930)], received: e[t(3156)] }), he; - const s = this[t(1575)][t(2609)], n = this[t(1575)][t(2027)], i = [...e[t(2663)][t(2634)]()][t(1930)](([c, u], f) => { + const t = a, { status: r, ctx: e } = this[t(2437)](x); + if (e[t(1358)] !== ae[t(2739)]) return Y(e, { code: K[t(2165)], expected: ae[t(2739)], received: e.parsedType }), he; + const s = this[t(2200)].keyType, n = this[t(2200)].valueType, i = [...e[t(1506)][t(1434)]()][t(2739)](([c, u], d) => { const l = t; - return { key: s._parse(new p0(e, c, e[l(2474)], [f, l(480)])), value: n[l(1585)](new p0(e, u, e[l(2474)], [f, "value"])) }; + return { key: s[l(2297)](new p0(e, c, e[l(648)], [d, l(2651)])), value: n._parse(new p0(e, u, e[l(648)], [d, l(935)])) }; }); - if (e[t(1281)].async) { + if (e[t(2919)].async) { const c = /* @__PURE__ */ new Map(); - return Promise[t(2457)]()[t(2517)](async () => { + return Promise[t(855)]()[t(634)](async () => { const u = t; - for (const f of i) { - const l = await f.key, d = await f[u(2446)]; - if (l[u(1227)] === u(896) || d[u(1227)] === u(896)) return he; - (l.status === u(2329) || d[u(1227)] === u(2329)) && r[u(2329)](), c[u(780)](l.value, d.value); + for (const d of i) { + const l = await d[u(2651)], f = await d.value; + if (l[u(1071)] === "aborted" || f[u(1071)] === "aborted") return he; + (l[u(1071)] === u(2726) || f.status === "dirty") && r[u(2726)](), c[u(823)](l[u(935)], f[u(935)]); } - return { status: r[u(2446)], value: c }; + return { status: r[u(935)], value: c }; }); } else { const c = /* @__PURE__ */ new Map(); for (const u of i) { - const f = u[t(480)], l = u[t(2446)]; - if (f[t(1227)] === t(896) || l.status === "aborted") return he; - (f[t(1227)] === "dirty" || l[t(1227)] === t(2329)) && r[t(2329)](), c[t(780)](f[t(2446)], l[t(2446)]); + const d = u[t(2651)], l = u[t(935)]; + if (d[t(1071)] === t(1363) || l[t(1071)] === t(1363)) return he; + (d.status === t(2726) || l[t(1071)] === t(2726)) && r[t(2726)](), c[t(823)](d.value, l[t(935)]); } - return { status: r[t(2446)], value: c }; + return { status: r[t(935)], value: c }; } } } Aa.create = (o, x, t) => { const r = a; - return new Aa({ valueType: x, keyType: o, typeName: pe[r(3163)], ...ve(t) }); + return new Aa({ valueType: x, keyType: o, typeName: pe[r(2786)], ...we(t) }); }; -class sx extends Ce { - [a(1585)](x) { - const t = a, { status: r, ctx: e } = this[t(861)](x); - if (e[t(3156)] !== ae[t(780)]) return ee(e, { code: Z.invalid_type, expected: ae[t(780)], received: e[t(3156)] }), he; - const s = this[t(1575)]; - s[t(3259)] !== null && e[t(2663)].size < s[t(3259)][t(2446)] && (ee(e, { code: Z[t(2724)], minimum: s[t(3259)][t(2446)], type: t(780), inclusive: !0, exact: !1, message: s[t(3259)][t(1044)] }), r[t(2329)]()), s[t(1272)] !== null && e[t(2663)].size > s[t(1272)][t(2446)] && (ee(e, { code: Z[t(1305)], maximum: s.maxSize[t(2446)], type: t(780), inclusive: !0, exact: !1, message: s[t(1272)].message }), r[t(2329)]()); - const n = this._def.valueType; +class rx extends Fe { + [a(2297)](x) { + const t = a, { status: r, ctx: e } = this[t(2437)](x); + if (e.parsedType !== ae.set) return Y(e, { code: K[t(2165)], expected: ae.set, received: e[t(1358)] }), he; + const s = this[t(2200)]; + s[t(1305)] !== null && e[t(1506)][t(2108)] < s.minSize[t(935)] && (Y(e, { code: K[t(2627)], minimum: s.minSize[t(935)], type: t(823), inclusive: !0, exact: !1, message: s[t(1305)][t(2461)] }), r[t(2726)]()), s[t(2380)] !== null && e[t(1506)].size > s[t(2380)][t(935)] && (Y(e, { code: K[t(457)], maximum: s[t(2380)][t(935)], type: t(823), inclusive: !0, exact: !1, message: s[t(2380)][t(2461)] }), r[t(2726)]()); + const n = this[t(2200)][t(913)]; function i(u) { - const f = t, l = /* @__PURE__ */ new Set(); - for (const d of u) { - if (d.status === f(896)) return he; - d[f(1227)] === f(2329) && r[f(2329)](), l.add(d[f(2446)]); + const d = t, l = /* @__PURE__ */ new Set(); + for (const f of u) { + if (f[d(1071)] === d(1363)) return he; + f.status === d(2726) && r[d(2726)](), l[d(986)](f.value); } - return { status: r[f(2446)], value: l }; + return { status: r[d(935)], value: l }; } - const c = [...e.data[t(3237)]()][t(1930)]((u, f) => n._parse(new p0(e, u, e[t(2474)], f))); - return e[t(1281)].async ? Promise[t(1096)](c)[t(2517)]((u) => i(u)) : i(c); + const c = [...e.data.values()][t(2739)]((u, d) => n[t(2297)](new p0(e, u, e[t(648)], d))); + return e[t(2919)][t(2538)] ? Promise[t(2497)](c)[t(634)]((u) => i(u)) : i(c); } min(x, t) { const r = a; - return new sx({ ...this._def, minSize: { value: x, message: ne[r(2732)](t) } }); + return new rx({ ...this._def, minSize: { value: x, message: re[r(511)](t) } }); } - [a(753)](x, t) { + [a(477)](x, t) { const r = a; - return new sx({ ...this._def, maxSize: { value: x, message: ne[r(2732)](t) } }); + return new rx({ ...this[r(2200)], maxSize: { value: x, message: re.toString(t) } }); } - [a(846)](x, t) { + [a(2108)](x, t) { const r = a; - return this[r(521)](x, t)[r(753)](x, t); + return this[r(316)](x, t)[r(477)](x, t); } - [a(1214)](x) { - return this[a(521)](1, x); + nonempty(x) { + return this.min(1, x); } } -sx[a(1602)] = (o, x) => { - const t = a; - return new sx({ valueType: o, minSize: null, maxSize: null, typeName: pe[t(3281)], ...ve(x) }); -}; -class Kt extends Ce { - get [a(1425)]() { +rx[a(558)] = (o, x) => new rx({ valueType: o, minSize: null, maxSize: null, typeName: pe.ZodSet, ...we(x) }); +class Zt extends Fe { + get [a(2238)]() { const x = a; - return this[x(1575)][x(1177)](); + return this._def[x(2306)](); } - [a(1585)](x) { + [a(2297)](x) { const t = a, { ctx: r } = this._processInputParams(x); - return this[t(1575)][t(1177)]()[t(1585)]({ data: r.data, path: r[t(2474)], parent: r }); + return this[t(2200)][t(2306)]()[t(2297)]({ data: r[t(1506)], path: r[t(648)], parent: r }); } } -Kt[a(1602)] = (o, x) => { +Zt[a(558)] = (o, x) => { const t = a; - return new Kt({ getter: o, typeName: pe[t(2596)], ...ve(x) }); + return new Zt({ getter: o, typeName: pe[t(396)], ...we(x) }); }; -class Px extends Ce { - [a(1585)](x) { +class kx extends Fe { + [a(2297)](x) { const t = a; - if (x[t(2663)] !== this._def[t(2446)]) { - const r = this._getOrReturnCtx(x); - return ee(r, { received: r.data, code: Z.invalid_literal, expected: this[t(1575)][t(2446)] }), he; + if (x[t(1506)] !== this._def[t(935)]) { + const r = this[t(1310)](x); + return Y(r, { received: r[t(1506)], code: K.invalid_literal, expected: this[t(2200)][t(935)] }), he; } - return { status: t(1122), value: x[t(2663)] }; + return { status: "valid", value: x.data }; } - get [a(2446)]() { + get [a(935)]() { const x = a; - return this[x(1575)][x(2446)]; + return this._def[x(935)]; } } -Px[a(1602)] = (o, x) => { +kx[a(558)] = (o, x) => { const t = a; - return new Px({ value: o, typeName: pe[t(2034)], ...ve(x) }); + return new kx({ value: o, typeName: pe[t(1379)], ...we(x) }); }; -function zs(o, x) { +function Ls(o, x) { const t = a; - return new O0({ values: o, typeName: pe[t(804)], ...ve(x) }); + return new O0({ values: o, typeName: pe[t(286)], ...we(x) }); } -class O0 extends Ce { - [a(1585)](x) { +class O0 extends Fe { + [a(2297)](x) { const t = a; - if (typeof x[t(2663)] !== t(1361)) { - const r = this[t(3148)](x), e = this[t(1575)].values; - return ee(r, { expected: Ne.joinValues(e), received: r[t(3156)], code: Z[t(2421)] }), he; + if (typeof x[t(1506)] != "string") { + const r = this[t(1310)](x), e = this[t(2200)].values; + return Y(r, { expected: Te[t(1878)](e), received: r[t(1358)], code: K[t(2165)] }), he; } - if (!this._cache && (this[t(811)] = new Set(this[t(1575)][t(3237)])), !this._cache[t(2348)](x.data)) { - const r = this[t(3148)](x), e = this[t(1575)].values; - return ee(r, { received: r[t(2663)], code: Z[t(1065)], options: e }), he; + if (!this[t(1971)] && (this[t(1971)] = new Set(this[t(2200)].values)), !this[t(1971)].has(x.data)) { + const r = this[t(1310)](x), e = this[t(2200)][t(922)]; + return Y(r, { received: r[t(1506)], code: K[t(1905)], options: e }), he; } - return a0(x[t(2663)]); + return a0(x[t(1506)]); } - get [a(2876)]() { + get [a(1341)]() { const x = a; - return this[x(1575)][x(3237)]; + return this[x(2200)][x(922)]; } - get [a(2218)]() { + get [a(2897)]() { const x = a, t = {}; - for (const r of this[x(1575)][x(3237)]) + for (const r of this[x(2200)].values) t[r] = r; return t; } - get [a(602)]() { + get [a(2826)]() { const x = a, t = {}; - for (const r of this[x(1575)].values) + for (const r of this[x(2200)][x(922)]) t[r] = r; return t; } - get Enum() { + get [a(262)]() { const x = a, t = {}; - for (const r of this[x(1575)][x(3237)]) + for (const r of this[x(2200)][x(922)]) t[r] = r; return t; } - [a(1718)](x, t = this[a(1575)]) { - return O0.create(x, { ...this._def, ...t }); - } - exclude(x, t = this._def) { + extract(x, t = this[a(2200)]) { const r = a; - return O0.create(this[r(2876)][r(2581)]((e) => !x[r(2978)](e)), { ...this[r(1575)], ...t }); + return O0[r(558)](x, { ...this[r(2200)], ...t }); + } + [a(2575)](x, t = this[a(2200)]) { + const r = a; + return O0[r(558)](this.options.filter((e) => !x[r(555)](e)), { ...this[r(2200)], ...t }); } } -O0[a(1602)] = zs; -class Gt extends Ce { +O0.create = Ls; +class Gt extends Fe { _parse(x) { - const t = a, r = Ne[t(1256)](this[t(1575)][t(3237)]), e = this[t(3148)](x); - if (e[t(3156)] !== ae[t(1361)] && e[t(3156)] !== ae[t(2665)]) { - const s = Ne[t(1740)](r); - return ee(e, { expected: Ne.joinValues(s), received: e[t(3156)], code: Z[t(2421)] }), he; + const t = a, r = Te.getValidEnumValues(this[t(2200)][t(922)]), e = this[t(1310)](x); + if (e[t(1358)] !== ae[t(2028)] && e[t(1358)] !== ae[t(867)]) { + const s = Te.objectValues(r); + return Y(e, { expected: Te[t(1878)](s), received: e.parsedType, code: K.invalid_type }), he; } - if (!this._cache && (this[t(811)] = new Set(Ne.getValidEnumValues(this[t(1575)].values))), !this[t(811)][t(2348)](x.data)) { - const s = Ne[t(1740)](r); - return ee(e, { received: e[t(2663)], code: Z[t(1065)], options: s }), he; + if (!this[t(1971)] && (this._cache = new Set(Te[t(483)](this[t(2200)][t(922)]))), !this[t(1971)][t(1281)](x[t(1506)])) { + const s = Te[t(1800)](r); + return Y(e, { received: e[t(1506)], code: K[t(1905)], options: s }), he; } - return a0(x[t(2663)]); + return a0(x[t(1506)]); } - get [a(2218)]() { + get [a(2897)]() { const x = a; - return this[x(1575)][x(3237)]; + return this[x(2200)][x(922)]; } } -Gt.create = (o, x) => { +function Px() { + const o = ["substring", "Desire bounds is null", "[j])) { ", "Run Photoshop Action", "requestInitialStateForNode", '" resolves to more than one schema', "fcName", "sdppp/streamRequest", "tools/list", "enum", "登录成功", "userDefinedNsSeparator", "写入日志文件失败:", "Unable to reboot ComfyUI", "Not current document", "boolean", ") && ", "toUnicode", "pop", "flags", "#FFCC00", "结果获取已中止", "out", "i18next/PATH_KEY", "按住 Shift 键以新文档方式导入", "#CC6633", "comfyAPI", "Gemini 2.5 Flash 图像", "nsSeparator", "onerror", "translate", "common", "adf", "refine", "No limit", "date", "ZodOptional", "Outpaint (positive crop)", "ZodDate", "getRegisteredActions", "handleIncomingNotification", "ydd", "createInstance", "Sending image...", "jsonStringifyReplacer", "$schema", "Execute", "Node not found", "#33CCFF", "loading namespace ", "ZodTuple", "skipInterpolation", "获取工作流列表失败。", "Enter your RunningHub API Key", "cleanupConnection", " than ", "round", "#CC0033", '"; } ', "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", ".patternProperties", "async schema in sync schema", "api/view?type=", "validateSchema", "allOf", "iri", " = equal(", "任务取消失败: {{error}}", "按回车打开应用: {{appName}}", "\\' is invalid' ", "appendNamespaceToMissingKey", "延迟上传失败: {{error}}", " , data: ", " delete ", "schema $id ignored", " = null;", " , params: { additionalProperty: '", "No crop", "nestingRegexp", "ZodPipeline", "broadcastHandlers", "Copy", "brand", "[MCPMiddleware]", "pong", "Mask", "Elicitation response content does not match requested schema: ", "failing", "backendConnector", "已限定范围", "checks", "tools/call", "); if (", "getStats", ", deps: '", "schemaErrorMap", " } }", "status API failed - HTTP error! status: {{status}}", "lng", "openWorkflowJSON", "datetime", "请先选择应用", "处理进度 {{processed}}/{{total}}", "Clear selection", "after app.queuePrompt errors: ", "default is ignored in the schema root", " = false; if (e instanceof ValidationError) ", "~standard", "syncStoresToNewConnection", "当前无法应用模板。", "找不到文档: {{0}}", "正在上传...", "errorMap", '"; ', "performWorkflowReset: ", "rtl", "4CilKYu", " validate.errors = null; return true; ", "valueOf", "lastIndexOf", "Masked", "oninitialized", "交集或缩放目标为空", "nullable", "property ", "Synchronous parse encountered promise.", "hours", "Click to restore default boundary", "file://", "#3366FF", " levels up, current level is ", "push", "nid", "invalid-input", "localRefs", "messageHandlers", " not found for node ", " != 'number') { ", "base64url", ") break; } ", "_addSchema", "arrayToEnum", "detail", "mountedTransports", "maxTotalTimeout", " ) { ", "body", "Boundary preview", "util", "任务失败:{{status}}", "stringify", "创建时间", " else throw new ValidationError(vErrors); ", "requestIdSeq", " } else { errors = ", "Failed", "interpolator", "OpenAI - Image Edit", "loopRequired", "Current selection: Layer", "hasNotificationHandler", "sendResourceUpdated", "registerDirectRequestHandlerGeneric", "Enum", "Upload from disk", "absolute", "#0033CC", "请选择AI服务", " if (Array.isArray(", "left", "#FF6600", "Invalid resource identifier", "#0066FF", "val is not a non-empty string or a valid number. val=", "如何获取APIKey和API Secret", "nonExplicitSupportedLngs", " if (!", "streamRequestorHandlers", "clear", "留空表示不限", "contentEncoding", "_errorDataPathProperty", " = true; if (", "humanize", "#FF33CC", "Failed to fetch account status", "position", "ZodEnum", "ctx", " = errors;var ", "sdppp_widgetable_title", "'[' + ", "清除视频", "Auto fetching…", "].propertyName = ", "Error validating elicitation response: ", 'Invalid input: must include "', "hasLoadedNamespace: i18n.languages were undefined or empty", "pre", "getDefinition", "Heartbeat timeout for poster ", "aeb", "discriminator", "missing", "mcpMesh", "find", "keywords", "Sending all images...", "run API failed - HTTP error! status: {{status}}", "Set text to layer", "skipOnVariables", "resetStats", " else ", "initAsync", "; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete ", " to ", "自动同步: 关闭", "min", "ComfyUI加载失败,HTTP状态码:{{code}}", "Host's domain name can not be converted to ASCII via punycode: ", "Workflow stopped by user", "getPath", "Close", " , params: { failingKeyword: ", " }; return validate; ", "return", "Back", "Click to restore default mask", "logging/setLevel", "主图边界", "Importing image {{index}}/{{total}}...", "ayn", " {} ", ") break; ", "` could not be extracted from all schema options", "listenMessageCallback", "forkResourceStore", "Create document", "正在等待图片上传...", "选择应用...", "unshift", "A discriminator value for key `", "clearItems", "getSuffixes", "/properties", "Layer", "returnTypeError", "创建文档", "Completed", "缺少 TaskRouter 远端配置:{{missing}}。请检查远端配置后重试。", "Discriminator property ", "选择工作流", "负面提示词内容", "json-pointer", "forwardBroadcast", "lngs", "schemaHasRulesExcept", "Advanced selection", "segment", "正面提示词", "Layer {0} not found", "正在发送所有图片...", "; } var err = ", "filter", "Smart Object Layer", "progress", "_clientCapabilities", "retryTimeout", " && Object.prototype.hasOwnProperty.call(", "initializeConsumer", "从磁盘上传", "item", 'Invalid input: must end with "', "dataType", "Enter a pixel value greater than 0", "INTERCEPTOR_ERROR", "SDPPP赞助者专用API", "#CC3366", " !== ", "正在运行", "Input not instance of ", "msec", "getResource", '$ref: keywords ignored in schema at path "', "returnObjects", "run API 调用失败 - {{reason}}", "运行中...", "graphInstance", "Get mask from Selection", "maxLength", "Running for {{duration}} secs, {{message}}", " var i = ", "resolvedOptions", "getTransport", " } else if ( ", "precision", ".errors; else vErrors = vErrors.concat(", "ZodLazy", "Array must contain ", "#33CC99", "POST", '"number"', " else { ", "execution_interrupted", "Only the latest 10 items are available in this version", "设为当前选区", "nullish", "direction", "])) { ", "自动获取中…", "?\\:\\:", "uiWeightSum", "无法打开图像文件: {{error}}", "full", "initImmediate", "Negative Prompt", "请选择要获取的遮罩", " var missing", "saveMissingTo", 'no schema with key or ref "', "快捷键选图功能仅登陆后可用", "assertCanSetRequestHandler", " = false; for (var ", " != 'number') || ", "regexpUnescape", " var vErrors = null; ", "任务未完成,当前状态: {{status}}", "buildAdjacencyList", "无法从文件创建文档", "sdppp 运行 Photoshop Action", "setter", "forEach", "Core schema meta-schema", "getRegExp", "Workflow not found", "params", "additionalProperties", "createAsyncIterator", "loadGraphData", "sdpppX2", " , params: { allowedValue: schema", "画布范围", "unescapeSuffix", "Running...", "_cleanupTimeout", "curr", "fullPath", "Failed to create document from file", " , params: { keyword: '", "([+-]\\d{2}:?\\d{2})", "setLimit", "getAccountStatus API 调用失败 - {{reason}}", "load", "passingSchemas", ".replace(/~/g, '~0').replace(/\\//g, '~1')", "pickLocalFile", "reference", "&", "too_big", "Invalid literal value, expected ", "count", "#FFCC33", "Upload failed, please try again", "Deferred upload failed: {{error}}", "正在创建任务...", ") ? ", " var ", "apc", "valid", "Success", "exactly", "删除当前", "relative", "Select boundary", "getDefaultValuesFromSchema", "schema is invalid: ", "executeHandlerAsync", "#9900FF", "max", "模型物美价廉,海量社区应用", "__DEFAULT__", "Failed to send cancellation: ", "console", "strong", "getValidEnumValues", "source", "payload", "requestInfo", "_onnotification", "(会员专属)", "#/definitions/stringArray", "validateStreamRequestorRequest", "pes", "#33CCCC", "strictKeywords", "Input Setting", "getNeighbors", "nodeTransports", "http://json-schema.org/draft-07/schema#", "NOT_PATH", "uploadImage API failed - HTTP error! status: {{status}}", "isArray", "getDataByLanguage", "Stop auto run", "/", "Options", "notificationsIntercepted", "History", `" won't get resolved as namespace "`, "Selection boundary", "#00CC00", "nan", "toString", "addResources", "effect", " && !(", "Server does not support logging (required for ", "currency", `Log saved to file: {{path}} + + +`, "nodeId", "newdoc", "ownProperties", "async ", "prevValid", "Document {{0}} not found", "_getInvalidInput", "originalError", "arz", "./api/manager/reboot", "definition", "++) { vErrors[", "removeNamespaces", "mins", "invalid_string", "asyncIterator", "getCurrentNodeId", "ZodArray", " && !Array.isArray(", "\\$&", "%[EFef]", " , params: { format: ", "getNode", "图像质量 (%)", "equal", " if (!", " = true; ", "userinfo", "Boundary", "Module", "发送至选区", "keySchema", "innerType", "loadNamespaces", "unsetOutgoingNotificationInterceptor", "Stop all", "getPrototypeOf", "includes", "Layer not found {{0}}", "resources/subscribe", "create", "Failed to save prompt templates.", "failed parsing options string in nesting for key ", "+Shift 调整更多选项;Ctrl 单次获取。", " === ", "isCUID2", "保存所有", "connecting", "setNotificationHandler", "coerceToTypes", "getFixedT", "opts", "Node ", "less than", "Auto Sync: on", "Error handling incoming message:", "mergeObjectSync", "模板已保存。", "continueOnInterceptorError", "get_layer_info: 需要 layer_identify", "thisServer", "endsWith", "_resetTimeout", "图层 {{0}} 不是一个组", "无法写入{{part}}提示词:未找到对应控件。", "#00CCFF", "No custom templates yet.", "Action handler ", "augment", "_requestHandlerAbortControllers", "const", "请输入质量百分比", "years", "yud", "_loadingSchemas", "{0,4}", "暂无可预览图像", "#9933CC", "JWT", "isBase64url", "2.0", "missingSchema", "dependencies", "errSchemaPath", "abs", "应用模板失败。", "未找到图层 {0}", "#00CC99", " = errors === errs_", "Select layer", " , message: 'property name \\'", "shared", "sd-ppp-static/sdppp_images/", "documentElement", "notificationQueue", "Retry", "InternalError", "syncWorkflows", "subject", "Canvas", ".hasOwnProperty(", "schemaUnknownRules", "removeItem", " ) { ", " } } ", "自动同步: 开启", "skipCopy", "Manage reusable prompt templates", "outputType", "should NOT have additional properties", "暂无图片", "选择文件失败,请重试", "#33CC66", "Generate", "?\\]?$", "fallbackLng", "then", "status API failed - {{reason}}", 'key "', "网关超时 (504)", "_schemas", "Stop and cancel all", "isFinite(", "off", "yhd", " = await ", "processors", "mode", " when property ", "Gemini 2.5 Flash Image", "path", "async format in sync schema", "parseAsync", "[\\+\\-\\.]", "[^\\%\\[\\]\\:]", "unsetOutgoingRequestInterceptor", "getAccountStatus API 调用失败 - HTTP 错误,状态: {{status}}", "addFormat", "parseMissingKeyHandler", "Invalid attempt to destructure non-iterable instance", "languages", "fast", "onclose", "false", "secs", "fallbackRequestHandler", "ZodNativeEnum", "DEBUG", "插件可能正在拦截 PS 快捷键... ", "_refs", "sdppp/directRequest", "', depsCount: ", "Google Gemini Image Generator", "true", " in ", "Confirm", " , params: { type: '", "新建模板", "云端推荐:", "CurLayer", "等待 ComfyUI 连接完成…", "; ", "ZodNullable", "checkDataTypes", "已完成", "unknownKeys", " } } ", "Username: {{username}}", "Image quality (%)", ".validate; var ", "未选择工作流", "empty", "promptIds", "Sponsor Points", "sam", "nestingOptionsSeparator", "not_multiple_of", "正在使用本地文件", "getPathExpr", "languageOnly", "connected", "Full Canvas", ") > 1e-", "comfyAPI is not initialized, maybe comfyUI is too old", " || Object.keys(", "生成失败", "Model with affordable price, abundant community applications", " outer: for (;i--;) { for (j = i; j--;) { if (equal(", "Invalid date", "executing", "usePattern", "messages", ">", "Fetch current layer with current-layer boundary", "missingInterpolationHandler", "ifClause", "cleanup", "abort", "contextSeparator", " && Object.prototype.hasOwnProperty.call(", ".additionalItems", "Fit to selection", "messageQueue", "_unknown", "exists", "Fetch current layer with primary boundary", "无效边界: 左边必须小于右边,上边必须小于下边", "未能解析租户信息", "headers", "ComfyUI server reconnecting", "dir", "+Alt reversed mask", "RULES", "exclusiveMinimum", "objectKeys", "Primary boundary", "setState", "加载历史任务...", "isOpen", "组 {{0}} 中没有第一个相关图层", ".errors); errors = vErrors.length; } ", "Current Layer", "ASCII", ".dataPath === undefined) ", "resources/read", "Selection bounds only", "Node definition not found for current node ", ".dataPath = (dataPath || '') + ", "assert", "required", "Internal ZodObject error: invalid unknownKeys value.", "Gateway error (502)", "Invalid", "abh", "metaSchema", "模板已删除。", "checkState", "A-Z\\x5E-\\x7E]", "indexOf", " || ! Object.prototype.hasOwnProperty.call(", "pluralRulesCache", "transport", " = true; else if (typeof ", "Invalid boundary type: {{type}}", "findPath", "#/definitions/schemaArray", "#FF9900", "Quality {{percent}}%", "Action ", "selectColor", "reconnecting", "process", "Outputs", " = true , j; if (i > 1) { ", "Rectangle coordinates required for create action", "创建图层失败", "type", "partialBundledLanguages", "Processing {{processed}}/{{total}}", "获取表单数据失败", "/additionalItems", "additionalItems", "_parse", "loadOne", "移除槽位", "[\\.]", "Task execution failed", ".schemaPath === undefined) { ", "' && !(typeof ", "convert widget {0} failed:", "revoke", "getter", "charCodeAt", "remove", "preload", "uploadImage API 调用失败 - {{reason}}", "table", " || ", " validate.errors = vErrors; return false; ", "; if (", "reverse", "isValidLookup", "version", "清除参考线框架", "over", "/%2F", "Server does not support notifying of tool list changes (required for ", "addEventListener", "Notification interceptor failed for ", "createErrors", "status API 调用失败 - HTTP 错误,状态: {{status}}", "Waiting for ComfyUI to finish connecting…", ` , message: 'should pass "`, "getDefaultValueFromField", "translator", "verbose", "normalize", "audio", "isRequest", "适配至画布", " , message: 'should NOT have ", "queue", "[0]; ", "isTop", " (Members only)", "pipe", "Reset", "multipleOf", "当前图层边界", " else { ", "code", "mcp-mesh-router", "endTurn", " == 'number' || ", " != 'string') || ", "format", "ulid", "ZodDiscriminatedUnion", "offset", "allErrors", "setDefaultNamespace", "请点击右上角登录后使用。", "getAllReachableNodes", "Import as Smart Object", "outputs API failed - HTTP error! status: {{status}}", "Generation failed", "6cjkveT", 'Invalid input: must start with "', "assign", "signal", "_clientVersion", " , parentSchema: validate.schema", " = customRules[", "node_errors", ") { ", "Sending...", "Get selection", " */", "No store found for node ", "propertyNames", "delete", 'schema with key or id "', "validation failed", "#00CC66", "自动从PS重新获取", "maxSize", "MiddlewareError", "externalListenMessageCallback", "_pendingDebouncedNotifications", "emergency", "cancelled", "unescapeFragment", "Node definition not found for ", "tools", " = ''; ", "12944QiFVXU", "cleanCode", "kPanelBrightnessMediumGray", "Clear all", "#FF3300", "anyOf", "keyword", "; else vErrors = null; } ", "secure", "can't resolve reference ", ".length > ", "cacheKey", "nanoid", "color: inherit", "errToObj", "compileAsync", "createStreamState", "$schema must be a string", "_error", "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (", "UploadPassProvider is not fully compatible with TaskRouter upload mechanism. Please use the uploadResource prop instead.", " === '' ", "SDPPPX services are not available", "ajv", "element", "2025-03-26", "acy", "无法写入{{part}}提示词,请稍后重试。", "Failed to get Supabase session: {{error}}", "schema id ignored", "Create document for preview", "cimode", "请选择要获取的图像", "days", "#CC0099", "Supabase anon key", "disable", "AI使用的区域与最大尺寸控制", "description", "action", "click to restore", "未实现 (501)", "markDisconnected", "当前任务路由暂不支持上传控件", "#CC0000", "-{{value}}积分", ".pi-sign-out", "_processInputParams", "mountedEndpoints", "formatParams", "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ", "Task creation aborted", "createGlobalDispatcherForType", "获取结果失败: {{error}}", "invalid_intersection_types", " } ", "Message", "normalizeId", "Fetch current layer with canvas boundary", " , params: { missingProperty: '", "var pattern", "Please select the image to get", "prp", " = true; } else { ", "ZodSet", "暂无视频", "transports", "lowerCaseLng", "~validate", " division", "waitingReads", "message", "init", "isRoot", "如何获取APIKey", "MissingRefError", "stopAll", "Main Image", "result", " element(s)", "Select a history task", " } else { ", "_instructions", "Task execution failed: {{error}}", " == errors) { ", "SCHEMES", "ZodBigInt", "images", "properties ", "#/definitions/nonNegativeIntegerDefault0", "SDPPP may not be installed or version mismatch (404)", "notice", "Create document for sent images", ") break; } ", "decline", "Generating...", "responseSchema", "setKey", " is already defined", "node", "以当前图层边界获取画布", "点击使用当前选区", "more", "def", "escape", "$ref", "Fetch canvas with primary boundary", "all", " == 'string' || ", "AbortSignal is already aborted", "Server does not support notifying about resources (required for ", "ads", "Refresh balance", "_any", "less than or equal to", "obj", "loadLanguages", "510", "accessing an object - but returnObjects options is not enabled!", "setupGraphStoreSync", ", received '", " != 'number' || ", " is present' ", "unknown keyword: ", " = formats[", "提示词", "added", "nonstrict", " < ", "sendPromptListChanged", "options.loadSchema should be a function", "%25", "preprocess", "358520qqNAvQ", "protocol", "Open images from file", "deepPartial", "range", "getProperty", "jwt", "连接 ComfyUI 失败(HTTP {{code}})", "addResource", "设置图层的文本", "以画布边界获取画布", "/type", ".validate", "Missing upload resource", " === undefined) ", "async", "keyof", " ucs2length(", " , params: { comparison: ", "; if (!", "sdppp/streamResponse", "[A-Za-z]", ") { for (var ", "nonnegative", "minItems", "cidr", "Enter your Replicate API Key", "apd", "Template name", "Applying templates is unavailable right now.", "当前没有可用图层", "#3300CC", "String must contain ", "#9900CC", "relatedRequestId", "manuallyExtractDefaults", "resource", "SDPPP sponsor exclusive API", "flatten", "删除模板", "Fit to canvas", " ", " after ", "requestsHandled", "ActionSet {{0}} 未找到", "maxProperties", "; }", "应用ID:", "coerce", "Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.", "queuePrompt", "missed to resolve ", "exclude", "isIP", "services", "hasLoadedNamespace", "removeRequestHandler", "onTimeout", "Local file", " == 'object' && Array.isArray(", "color: ", "_notificationHandlers", "dataLevel", "heartbeatTimeoutTimer", "Negative prompt content", "iterator", "order", "revocable", "Failed to request initial state for ", "unrecognized_keys", "markConnected", "requestsIntercepted", "_requestMessageId", "keySeparator", " if (! ", "#FF0000", "RelativeTimeFormat", "floor", " + '", "cardinal", "graph", "正在发送...", "粘贴你的模型名称", "passContext", "null", " + ", "TaskRouter service URL", "Merge group failed", "Generating", "substr", "missingRef", "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ", `Get image & +Limit image boundary`, "任务执行失败", "activeState", "warn", "strictDefaults", "Upload failed: ", "ZodCatch", "Invalid function return type", "setRequestHandler", "$data", "mergeShapes", "saveWorkflow", "too_small", "mergeArray", "ignore", "执行成功", "ConnectionClosed", "negative", "加载中...", "Failed to create file resource", "任务 ID", "Get image from Current Layer", "#FF0033", "Failed to load workflows.", "#0099CC", "HTTP URIs must have a host.", "should have required property \\'", " && self._opts.unknownFormats.indexOf(", "registerHandler", "usedLng", "padEnd", "当前任务数:", "sdpppHandshake", "dataProperties", " must be number or boolean", "en-US", "key", "onprogress", "postProcess", "await ", " , params: { passingSchemas: ", "curlayer_selection", " = false; else { ", "duration", " = +", "image/png", `"' `, "当前选项:图层 {{layerName}}", ", (dataPath || '')", "基础 URL", ") vErrors.length = ", "ping", " if (rootData === undefined) rootData = data; ", "Prompts", "#3333FF", " } ", "历史记录", " -> ", "title", "else", "Invalid name: {{0}}", "finite", " for (var ", "未找到文档 {0}", "]] === undefined ", "获取 API Key", "File not found: {{path}}", "wait", "float", "mergeObjectAsync", "BigInt must be ", "removed", "'then'", "index", "call", "从 当前图层 获取遮罩", "keyPrefix", "lastPongReceived", "默认模板", "Output to:", "No edge defined from ", "regExpMap", "[^\\%\\/\\:\\@]", "图层 {{layerName}}", "请填写提示词内容。", "从 画布 获取遮罩", " , message: 'boolean schema is false' ", "Fetch canvas with canvas boundary", "handle", "notifications/resources/updated", '" ignored in schema at path "', "Shift 点击或右键可切换自动发送", "保存提示词模板失败。", "waiters", "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]", "initialState", "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]", "prompt_id", "Template name already exists.", "hijacked", "Request handler failed: ", "strict", "defineProperty", "interpolate", ") { ", ") { var err = ", "spa", " ) ", "prompts", "#0099FF", "Please select the position to send image", "dirty", "__connection_established", '[\\"]', "extendRefs", "Request timeout (408)", "#CC3399", "' : '", `Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`, "storage", " (division", "#FF6633", "scheme", " == +", "map", "url", "varOccurences", "nodeProxies", " = false; j = itemIndices[item]; break; } itemIndices[item] = i; } ", "schema should be object or boolean", "[\\:]", "Task ID", "overflow", "combo", "refinement", " } ", " = false; ", "获取图层信息", "api", "_formats", "Not a ZodError: ", "getTextInfo", " = new RegExp(", "_serverInfo", "Supabase URL", "生成中", "Current layer bounds", "以画布边界获取当前图层", "输入设置", "bind", "上传中,如果图片过大,可能会卡顿...", ".schema = ", ") { ", `获取图像 & +裁剪选区遮罩`, "extra", "每批图像数", "absolutePath", "video", "IPV6ADDRESS", " character(s)", "readingCalls", "Converting circular structure to JSON", " , params: {} ", " if (false) { ", "greater than ", "getHandler", "undefined", " !== undefined)", "#CC00FF", "dataPath", "minDate", "ZodMap", "run API failed - {{reason}}", "store", "按选区裁剪", "Email address's domain name can not be converted to ASCII via punycode: ", "Request timed out", "Outgoing notification interceptor failed: ", " { keyword: '", ";if (", "Cannot reboot because ComfyManager is missing", "gte", " - no connection available", "hasPath", "生成中...", " characters' ", "reloadResources", "getData", "188321OyDsdx", "validateKeyword", "ref/prompt", "__proto__", "getTime", "isNullable", "init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting", "stack", "colors", " (async", "Not implemented (501)", "nonempty", "initializeResponseQueue", "智能对象图层", "if (!", "'else'", "response", "save", "IPV4ADDRESS", "fromCodePoint", ".length == 1) { ", "postProcessPassResolved", "callValidate", "Values", " = errors; var ", "promise", "Import from disk", ")) { ", "_timeoutInfo", " === false) ", "AI 生成任务", "setupAbortHandler", "已添加遮罩", "setProperty", "app", "Get mask from Canvas", " = true; ", "regex", "+\\.", "lte", "if ( ", "nodes", "trim", "addKeyword", "_path", "mailto", "setPrototypeOf", "validation", '" already exists', "Gateway timeout (504)", "任务详情", "setupStreamResponseHandler", "自定义AI工作流引擎", " == 'number' ? ( (", "保存并立即执行", "isConnected", "Auto sync is off", "2024-10-07", ", rootData) ", "Server error (500)", "resolveRunImages", "clientInfo", "fromCharCode", "skips", "当前图层范围", "useDefault", "compile", "definitions", " !== undefined) { ", "append", " errors = ", "hasResourceBundle", "types", "fragment", " = false , ", "dataVar", "Action {{0}} 未找到", "Uploader not set", "编辑模板", "Forbidden (403)", "removeDotSegments", "year", "shu", " not implemented for node ", "[\\uE000-\\uF8FF]"]; + return Px = function() { + return o; + }, Px(); +} +Gt[a(558)] = (o, x) => { const t = a; - return new Gt({ values: o, typeName: pe[t(2966)], ...ve(x) }); + return new Gt({ values: o, typeName: pe[t(664)], ...we(x) }); }; -class Ix extends Ce { - [a(2524)]() { - const x = a; - return this[x(1575)][x(2076)]; +class Ix extends Fe { + [a(2e3)]() { + return this[a(2200)].type; } - [a(1585)](x) { - const t = a, { ctx: r } = this[t(861)](x); - if (r.parsedType !== ae[t(810)] && r[t(1281)][t(2416)] === !1) return ee(r, { code: Z[t(2421)], expected: ae[t(810)], received: r.parsedType }), he; - const e = r[t(3156)] === ae.promise ? r[t(2663)] : Promise[t(2457)](r[t(2663)]); - return a0(e[t(2517)]((s) => { + [a(2297)](x) { + const t = a, { ctx: r } = this[t(2437)](x); + if (r[t(1358)] !== ae[t(2828)] && r[t(2919)][t(2538)] === !1) return Y(r, { code: K[t(2165)], expected: ae[t(2828)], received: r[t(1358)] }), he; + const e = r[t(1358)] === ae.promise ? r.data : Promise[t(855)](r.data); + return a0(e.then((s) => { const n = t; - return this[n(1575)].type[n(2237)](s, { path: r[n(2474)], errorMap: r[n(1281)][n(2896)] }); + return this[n(2200)][n(2291)].parseAsync(s, { path: r[n(648)], errorMap: r[n(2919)][n(2082)] }); })); } } -Ix[a(1602)] = (o, x) => { +Ix[a(558)] = (o, x) => { const t = a; - return new Ix({ type: o, typeName: pe[t(835)], ...ve(x) }); + return new Ix({ type: o, typeName: pe[t(1504)], ...we(x) }); }; -class N0 extends Ce { - [a(2813)]() { +class T0 extends Fe { + [a(550)]() { const x = a; - return this[x(1575)][x(1425)]; + return this._def[x(2238)]; } - [a(3212)]() { + [a(1431)]() { const x = a; - return this._def[x(1425)][x(1575)].typeName === pe[x(1621)] ? this[x(1575)][x(1425)].sourceType() : this[x(1575)][x(1425)]; + return this[x(2200)].schema._def[x(1099)] === pe[x(1728)] ? this[x(2200)][x(2238)][x(1431)]() : this[x(2200)][x(2238)]; } _parse(x) { - const t = a, { status: r, ctx: e } = this[t(861)](x), s = this[t(1575)].effect || null, n = { addIssue: (i) => { + const t = a, { status: r, ctx: e } = this[t(2437)](x), s = this[t(2200)][t(513)] || null, n = { addIssue: (i) => { const c = t; - ee(e, i), i[c(2372)] ? r.abort() : r[c(2329)](); + Y(e, i), i.fatal ? r[c(715)]() : r.dirty(); }, get path() { - return e[t(2474)]; + return e.path; } }; - if (n[t(1910)] = n[t(1910)].bind(n), s[t(2076)] === "preprocess") { - const i = s[t(2450)](e[t(2663)], n); - if (e[t(1281)][t(2416)]) return Promise[t(2457)](i).then(async (c) => { + if (n[t(960)] = n.addIssue.bind(n), s[t(2291)] === "preprocess") { + const i = s[t(1593)](e[t(1506)], n); + if (e[t(2919)][t(2538)]) return Promise[t(855)](i).then(async (c) => { const u = t; - if (r.value === u(896)) return he; - const f = await this[u(1575)][u(1425)][u(2909)]({ data: c, path: e[u(2474)], parent: e }); - return f[u(1227)] === u(896) ? he : f.status === u(2329) ? X0(f[u(2446)]) : r[u(2446)] === u(2329) ? X0(f.value) : f; + if (r[u(935)] === "aborted") return he; + const d = await this[u(2200)][u(2238)]._parseAsync({ data: c, path: e[u(648)], parent: e }); + return d[u(1071)] === "aborted" ? he : d[u(1071)] === u(2726) ? Q0(d[u(935)]) : r[u(935)] === u(2726) ? Q0(d.value) : d; }); { - if (r[t(2446)] === "aborted") return he; - const c = this[t(1575)].schema[t(2308)]({ data: i, path: e[t(2474)], parent: e }); - return c.status === t(896) ? he : c[t(1227)] === "dirty" ? X0(c[t(2446)]) : r[t(2446)] === "dirty" ? X0(c.value) : c; + if (r[t(935)] === t(1363)) return he; + const c = this._def[t(2238)][t(1386)]({ data: i, path: e.path, parent: e }); + return c[t(1071)] === t(1363) ? he : c.status === t(2726) || r[t(935)] === t(2726) ? Q0(c[t(935)]) : c; } } - if (s[t(2076)] === t(2100)) { + if (s.type === t(2749)) { const i = (c) => { - const u = t, f = s.refinement(c, n); - if (e[u(1281)][u(2416)]) return Promise[u(2457)](f); - if (f instanceof Promise) throw new Error(u(2571)); + const u = t, d = s[u(2749)](c, n); + if (e[u(2919)][u(2538)]) return Promise[u(855)](d); + if (d instanceof Promise) throw new Error(u(1969)); return c; }; - if (e.common.async === !1) { - const c = this._def[t(1425)][t(2308)]({ data: e[t(2663)], path: e[t(2474)], parent: e }); - return c.status === "aborted" ? he : (c[t(1227)] === "dirty" && r[t(2329)](), i(c.value), { status: r[t(2446)], value: c[t(2446)] }); - } else return this[t(1575)].schema[t(2909)]({ data: e[t(2663)], path: e[t(2474)], parent: e })[t(2517)]((c) => { + if (e[t(2919)][t(2538)] === !1) { + const c = this[t(2200)][t(2238)]._parseSync({ data: e[t(1506)], path: e.path, parent: e }); + return c.status === t(1363) ? he : (c[t(1071)] === t(2726) && r[t(2726)](), i(c[t(935)]), { status: r[t(935)], value: c.value }); + } else return this[t(2200)][t(2238)]._parseAsync({ data: e[t(1506)], path: e.path, parent: e })[t(634)]((c) => { const u = t; - return c.status === u(896) ? he : (c[u(1227)] === "dirty" && r[u(2329)](), i(c.value)[u(2517)](() => { - const f = u; - return { status: r[f(2446)], value: c[f(2446)] }; - })); + return c[u(1071)] === u(1363) ? he : (c[u(1071)] === u(2726) && r[u(2726)](), i(c[u(935)])[u(634)](() => ({ status: r[u(935)], value: c.value }))); }); } - if (s[t(2076)] === t(2450)) - if (e[t(1281)][t(2416)] === !1) { - const i = this[t(1575)][t(1425)]._parseSync({ data: e[t(2663)], path: e[t(2474)], parent: e }); - if (!V0(i)) return he; - const c = s[t(2450)](i[t(2446)], n); - if (c instanceof Promise) throw new Error(t(1674)); - return { status: r[t(2446)], value: c }; - } else return this[t(1575)][t(1425)][t(2909)]({ data: e[t(2663)], path: e.path, parent: e })[t(2517)]((i) => { + if (s[t(2291)] === "transform") + if (e[t(2919)][t(2538)] === !1) { + const i = this[t(2200)][t(2238)][t(1386)]({ data: e[t(1506)], path: e[t(648)], parent: e }); + if (!H0(i)) return he; + const c = s[t(1593)](i[t(935)], n); + if (c instanceof Promise) throw new Error(t(2572)); + return { status: r[t(935)], value: c }; + } else return this[t(2200)].schema[t(1923)]({ data: e[t(1506)], path: e[t(648)], parent: e })[t(634)]((i) => { const c = t; - return V0(i) ? Promise[c(2457)](s[c(2450)](i[c(2446)], n))[c(2517)]((u) => ({ status: r[c(2446)], value: u })) : he; + return H0(i) ? Promise[c(855)](s.transform(i[c(935)], n))[c(634)]((u) => ({ status: r[c(935)], value: u })) : he; }); - Ne[t(1034)](s); + Te[t(1635)](s); } } -N0[a(1602)] = (o, x, t) => { +T0[a(558)] = (o, x, t) => new T0({ schema: o, typeName: pe.ZodEffects, effect: x, ...we(t) }), T0.createWithPreprocess = (o, x, t) => { const r = a; - return new N0({ schema: o, typeName: pe[r(1621)], effect: x, ...ve(t) }); -}, N0[a(1716)] = (o, x, t) => { - const r = a; - return new N0({ schema: x, effect: { type: r(1318), transform: o }, typeName: pe[r(1621)], ...ve(t) }); + return new T0({ schema: x, effect: { type: r(2522), transform: o }, typeName: pe[r(1728)], ...we(t) }); }; -class S0 extends Ce { - [a(1585)](x) { +class S0 extends Fe { + [a(2297)](x) { const t = a; - return this[t(2981)](x) === ae[t(993)] ? a0(void 0) : this[t(1575)].innerType[t(1585)](x); + return this._getType(x) === ae.undefined ? a0(void 0) : this[t(2200)][t(550)][t(2297)](x); } - [a(2524)]() { + [a(2e3)]() { const x = a; - return this[x(1575)][x(2813)]; + return this[x(2200)][x(550)]; } } -S0[a(1602)] = (o, x) => { +S0[a(558)] = (o, x) => { const t = a; - return new S0({ innerType: o, typeName: pe[t(1954)], ...ve(x) }); + return new S0({ innerType: o, typeName: pe[t(2924)], ...we(x) }); }; -class D0 extends Ce { - [a(1585)](x) { +class D0 extends Fe { + [a(2297)](x) { const t = a; - return this[t(2981)](x) === ae[t(1959)] ? a0(null) : this[t(1575)][t(2813)][t(1585)](x); + return this[t(904)](x) === ae.null ? a0(null) : this[t(2200)].innerType[t(2297)](x); } - [a(2524)]() { + unwrap() { const x = a; - return this[x(1575)][x(2813)]; + return this[x(2200)][x(550)]; } } -D0[a(1602)] = (o, x) => { +D0[a(558)] = (o, x) => { const t = a; - return new D0({ innerType: o, typeName: pe[t(847)], ...ve(x) }); + return new D0({ innerType: o, typeName: pe[t(680)], ...we(x) }); }; -class Ex extends Ce { - [a(1585)](x) { - const t = a, { ctx: r } = this._processInputParams(x); - let e = r.data; - return r.parsedType === ae[t(993)] && (e = this[t(1575)][t(2074)]()), this[t(1575)][t(2813)][t(1585)]({ data: e, path: r.path, parent: r }); +class Ex extends Fe { + [a(2297)](x) { + const t = a, { ctx: r } = this[t(2437)](x); + let e = r[t(1506)]; + return r[t(1358)] === ae[t(2781)] && (e = this[t(2200)][t(1890)]()), this[t(2200)].innerType[t(2297)]({ data: e, path: r.path, parent: r }); } - [a(2341)]() { - return this[a(1575)].innerType; + [a(1828)]() { + const x = a; + return this[x(2200)][x(550)]; } } -Ex[a(1602)] = (o, x) => { +Ex[a(558)] = (o, x) => { const t = a; - return new Ex({ innerType: o, typeName: pe[t(3051)], defaultValue: typeof x[t(2485)] === t(1936) ? x[t(2485)] : () => x[t(2485)], ...ve(x) }); + return new Ex({ innerType: o, typeName: pe.ZodDefault, defaultValue: typeof x[t(2096)] === t(1149) ? x[t(2096)] : () => x[t(2096)], ...we(x) }); }; -class Rx extends Ce { - [a(1585)](x) { - const t = a, { ctx: r } = this[t(861)](x), e = { ...r, common: { ...r.common, issues: [] } }, s = this._def[t(2813)][t(1585)]({ data: e[t(2663)], path: e[t(2474)], parent: { ...e } }); - return gx(s) ? s.then((n) => { +class Rx extends Fe { + [a(2297)](x) { + const t = a, { ctx: r } = this._processInputParams(x), e = { ...r, common: { ...r.common, issues: [] } }, s = this._def[t(550)][t(2297)]({ data: e[t(1506)], path: e[t(648)], parent: { ...e } }); + return gx(s) ? s[t(634)]((n) => { const i = t; - return { status: i(1122), value: n[i(1227)] === i(1122) ? n[i(2446)] : this[i(1575)][i(2220)]({ get error() { + return { status: "valid", value: n[i(1071)] === "valid" ? n[i(935)] : this[i(2200)][i(2166)]({ get error() { const c = i; - return new P0(e[c(1281)][c(908)]); - }, input: e[i(2663)] }) }; - }) : { status: t(1122), value: s[t(1227)] === "valid" ? s.value : this[t(1575)][t(2220)]({ get error() { + return new P0(e[c(2919)][c(995)]); + }, input: e[i(1506)] }) }; + }) : { status: t(467), value: s.status === t(467) ? s.value : this[t(2200)][t(2166)]({ get error() { const n = t; - return new P0(e.common[n(908)]); - }, input: e[t(2663)] }) }; + return new P0(e[n(2919)][n(995)]); + }, input: e[t(1506)] }) }; } - removeCatch() { - const x = a; - return this[x(1575)][x(2813)]; + [a(1897)]() { + return this._def.innerType; } } -Rx[a(1602)] = (o, x) => { +Rx.create = (o, x) => { const t = a; - return new Rx({ innerType: o, typeName: pe[t(2521)], catchValue: typeof x.catch === t(1936) ? x.catch : () => x[t(742)], ...ve(x) }); + return new Rx({ innerType: o, typeName: pe.ZodCatch, catchValue: typeof x[t(1045)] == "function" ? x[t(1045)] : () => x[t(1045)], ...we(x) }); }; -class Oa extends Ce { - [a(1585)](x) { +class Oa extends Fe { + _parse(x) { const t = a; - if (this._getType(x) !== ae[t(1220)]) { - const e = this[t(3148)](x); - return ee(e, { code: Z[t(2421)], expected: ae[t(1220)], received: e[t(3156)] }), he; + if (this[t(904)](x) !== ae[t(510)]) { + const e = this[t(1310)](x); + return Y(e, { code: K.invalid_type, expected: ae.nan, received: e[t(1358)] }), he; } - return { status: t(1122), value: x[t(2663)] }; + return { status: t(467), value: x[t(1506)] }; } } Oa.create = (o) => { const x = a; - return new Oa({ typeName: pe[x(3130)], ...ve(o) }); + return new Oa({ typeName: pe[x(1804)], ...we(o) }); }; -class Hs extends Ce { - [a(1585)](x) { - const t = a, { ctx: r } = this[t(861)](x), e = r[t(2663)]; - return this[t(1575)][t(2076)][t(1585)]({ data: e, path: r[t(2474)], parent: r }); - } - [a(2524)]() { - const x = a; - return this[x(1575)][x(2076)]; - } -} -class oa extends Ce { - [a(1585)](x) { - const t = a, { status: r, ctx: e } = this[t(861)](x); - if (e[t(1281)][t(2416)]) - return (async () => { - const n = t, i = await this[n(1575)].in[n(2909)]({ data: e.data, path: e[n(2474)], parent: e }); - return i[n(1227)] === "aborted" ? he : i[n(1227)] === n(2329) ? (r[n(2329)](), X0(i[n(2446)])) : this[n(1575)][n(2328)][n(2909)]({ data: i[n(2446)], path: e[n(2474)], parent: e }); - })(); - { - const s = this[t(1575)].in[t(2308)]({ data: e.data, path: e[t(2474)], parent: e }); - return s[t(1227)] === t(896) ? he : s[t(1227)] === "dirty" ? (r.dirty(), { status: t(2329), value: s[t(2446)] }) : this[t(1575)][t(2328)]._parseSync({ data: s[t(2446)], path: e[t(2474)], parent: e }); - } - } - static create(x, t) { - return new oa({ in: x, out: t, typeName: pe.ZodPipeline }); - } -} -class Cx extends Ce { - [a(1585)](x) { - const t = a, r = this[t(1575)][t(2813)][t(1585)](x), e = (s) => { - const n = t; - return V0(s) && (s[n(2446)] = Object[n(1100)](s[n(2446)])), s; - }; - return gx(r) ? r[t(2517)]((s) => e(s)) : e(r); +class Ms extends Fe { + [a(2297)](x) { + const t = a, { ctx: r } = this[t(2437)](x), e = r[t(1506)]; + return this[t(2200)][t(2291)][t(2297)]({ data: e, path: r[t(648)], parent: r }); } unwrap() { - return this[a(1575)].innerType; + const x = a; + return this._def[x(2291)]; } } -Cx[a(1602)] = (o, x) => { +class oa extends Fe { + [a(2297)](x) { + const t = a, { status: r, ctx: e } = this._processInputParams(x); + if (e[t(2919)].async) + return (async () => { + const n = t, i = await this[n(2200)].in[n(1923)]({ data: e.data, path: e.path, parent: e }); + return i.status === n(1363) ? he : i[n(1071)] === n(2726) ? (r.dirty(), Q0(i[n(935)])) : this[n(2200)][n(2910)][n(1923)]({ data: i[n(935)], path: e[n(648)], parent: e }); + })(); + { + const s = this[t(2200)].in._parseSync({ data: e[t(1506)], path: e[t(648)], parent: e }); + return s[t(1071)] === t(1363) ? he : s.status === t(2726) ? (r[t(2726)](), { status: "dirty", value: s[t(935)] }) : this._def[t(2910)][t(1386)]({ data: s[t(935)], path: e[t(648)], parent: e }); + } + } + static [a(558)](x, t) { + const r = a; + return new oa({ in: x, out: t, typeName: pe[r(2967)] }); + } +} +class Cx extends Fe { + [a(2297)](x) { + const t = a, r = this._def[t(550)][t(2297)](x), e = (s) => { + const n = t; + return H0(s) && (s[n(935)] = Object[n(1466)](s[n(935)])), s; + }; + return gx(r) ? r[t(634)]((s) => e(s)) : e(r); + } + [a(2e3)]() { + const x = a; + return this[x(2200)][x(550)]; + } +} +Cx.create = (o, x) => { const t = a; - return new Cx({ innerType: o, typeName: pe[t(1003)], ...ve(x) }); + return new Cx({ innerType: o, typeName: pe[t(1328)], ...we(x) }); }; function Da(o, x) { - const t = a, r = typeof o === t(1936) ? o(x) : typeof o == "string" ? { message: o } : o; - return typeof r === t(1361) ? { message: r } : r; + const t = a, r = typeof o === t(1149) ? o(x) : typeof o === t(2028) ? { message: o } : o; + return typeof r === t(2028) ? { message: r } : r; } -function po(o, x = {}, t) { +function uo(o, x = {}, t) { const r = a; - return o ? rx.create()[r(957)]((e, s) => { + return o ? ax.create()[r(1637)]((e, s) => { const n = r, i = o(e); - if (i instanceof Promise) return i[n(2517)]((c) => { + if (i instanceof Promise) return i[n(634)]((c) => { const u = n; if (!c) { - const f = Da(x, e), l = f.fatal ?? t ?? !0; - s.addIssue({ code: u(1618), ...f, fatal: l }); + const d = Da(x, e), l = d.fatal ?? t ?? !0; + s[u(960)]({ code: u(2126), ...d, fatal: l }); } }); if (!i) { - const c = Da(x, e), u = c[n(2372)] ?? t ?? !0; - s[n(1910)]({ code: "custom", ...c, fatal: u }); + const c = Da(x, e), u = c[n(1094)] ?? t ?? !0; + s[n(960)]({ code: n(2126), ...c, fatal: u }); } - }) : rx.create(); + }) : ax[r(558)](); } var pe; (function(o) { const x = a; - o[x(1451)] = x(1451), o[x(696)] = "ZodNumber", o.ZodNaN = x(3130), o[x(2268)] = "ZodBigInt", o[x(2084)] = x(2084), o[x(2010)] = x(2010), o[x(2021)] = x(2021), o[x(2720)] = x(2720), o[x(577)] = x(577), o[x(1985)] = x(1985), o.ZodUnknown = x(1730), o[x(1657)] = x(1657), o[x(2842)] = "ZodVoid", o[x(2196)] = "ZodArray", o[x(2585)] = "ZodObject", o[x(1695)] = x(1695), o[x(1046)] = x(1046), o[x(2449)] = x(2449), o[x(3147)] = x(3147), o.ZodRecord = x(1131), o[x(3163)] = "ZodMap", o.ZodSet = "ZodSet", o[x(1854)] = x(1854), o[x(2596)] = x(2596), o.ZodLiteral = "ZodLiteral", o[x(804)] = "ZodEnum", o[x(1621)] = x(1621), o.ZodNativeEnum = x(2966), o[x(1954)] = x(1954), o[x(847)] = x(847), o[x(3051)] = x(3051), o[x(2521)] = x(2521), o.ZodPromise = x(835), o[x(1020)] = x(1020), o[x(1495)] = x(1495), o.ZodReadonly = x(1003); + o[x(1620)] = x(1620), o[x(1465)] = "ZodNumber", o[x(1804)] = "ZodNaN", o[x(2476)] = x(2476), o[x(1647)] = x(1647), o[x(2926)] = x(2926), o[x(1627)] = x(1627), o[x(1292)] = x(1292), o[x(1084)] = x(1084), o.ZodAny = x(1014), o[x(972)] = x(972), o[x(2134)] = x(2134), o[x(2171)] = x(2171), o[x(535)] = x(535), o[x(2113)] = x(2113), o[x(1574)] = x(1574), o[x(2352)] = x(2352), o[x(1251)] = x(1251), o[x(2938)] = x(2938), o[x(942)] = "ZodRecord", o[x(2786)] = "ZodMap", o[x(2454)] = x(2454), o[x(906)] = x(906), o[x(396)] = x(396), o[x(1379)] = x(1379), o[x(286)] = x(286), o.ZodEffects = x(1728), o[x(664)] = x(664), o[x(2924)] = x(2924), o[x(680)] = x(680), o[x(1388)] = x(1388), o[x(2621)] = x(2621), o[x(1504)] = x(1504), o[x(1010)] = x(1010), o[x(2967)] = x(2967), o.ZodReadonly = x(1328); })(pe || (pe = {})); -const zx = (o, x = { message: a(815) + o.name }) => po((t) => t instanceof o, x), b = w0.create, W = B0[a(1602)], Q = zt.create, ye = rx[a(1602)], k0 = Bt[a(1602)]; -C0[a(1602)]; -const J0 = Wt[a(1602)], we = h0[a(1602)], S = Ke.create, Ve = wx.create, Vs = na[a(1602)]; -Sx[a(1602)], A0[a(1602)]; -const qe = kx[a(1602)], xe = Px[a(1602)], Pe = O0[a(1602)]; +const zx = (o, x = { message: a(379) + o[a(1166)] }) => uo((t) => t instanceof o, x), b = w0.create, W = V0[a(558)], Q = zt[a(558)], ve = ax[a(558)], k0 = Bt.create; +C0[a(558)]; +const G0 = Wt.create, Se = h0[a(558)], S = Ze[a(558)], Ve = vx[a(558)], $s = na[a(558)]; +wx[a(558)], A0[a(558)]; +const qe = Sx[a(558)], xe = kx.create, Ie = O0[a(558)]; Ix.create; -const B = S0[a(1602)]; -D0[a(1602)]; -var rs, ss; -class mo { +const B = S0[a(558)]; +D0.create; +var rs; +class lo { constructor(x, t) { - me(this, ss); + me(this, "graphInstance"); me(this, rs); const r = a; - this[r(2976)] = x, this[r(1891)] = t; + this[r(386)] = x, this[r(518)] = t; } - get [(ss = a(2976), rs = a(1891), a(872))]() { - const x = a, t = this[x(2976)][x(1414)](this[x(1891)]); - if (!t) throw new Error(x(3175) + this.nodeId); + get [(rs = a(518), a(2788))]() { + const x = a, t = this[x(386)][x(1427)](this[x(518)]); + if (!t) throw new Error(x(2373) + this[x(518)]); return t; } - get [a(2848)]() { - const x = a, t = this[x(2976)][x(1857)]().getNode(this.nodeId); - if (!t) throw new Error(x(2645) + this.nodeId); + get [a(810)]() { + const x = a, t = this.graphInstance[x(298)]()[x(540)](this[x(518)]); + if (!t) throw new Error(x(2387) + this.nodeId); return new Proxy({}, { get: (e, s) => { const n = x; if (typeof s != "string") return; - const i = t[n(2848)][s], c = s[n(760)](n(2818)); - if (!i && !c) throw new Error("Action " + s + n(2251) + this.nodeId); - return async (u, f) => { - const l = n, d = this.getConnectionInfo(); - if (!d) throw new Error(l(2356) + this[l(1891)]); - const { transport: g, path: h } = d, m = this[l(2976)][l(1199)](); - if (!(i != null && i[l(2932)])) { - const k = ye(); - let P; - if (h[l(2710)] === 2) P = await g[l(494)]({ method: l(1750), params: { action: s, data: u, sourceNodeId: m } }, k); + const i = t[n(810)][s], c = s[n(1654)](n(1047)); + if (!i && !c) throw new Error(n(2283) + s + n(3024) + this[n(518)]); + return async (u, d) => { + const l = n, f = this[l(1424)](); + if (!f) throw new Error(l(915) + this.nodeId); + const { transport: g, path: h } = f, m = this[l(386)][l(534)](); + if (!(i != null && i.stream)) { + const k = ve(); + let I; + if (h[l(1148)] === 2) I = await g.request({ method: "sdppp/directRequest", params: { action: s, data: u, sourceNodeId: m } }, k); else try { - P = await g.request({ method: l(1750), params: { action: l(715), data: { targetNodeId: this[l(1891)], targetAction: s, targetData: u, forwardPath: h[l(1387)](1) }, sourceNodeId: m } }, k); + I = await g.request({ method: l(668), params: { action: l(1565), data: { targetNodeId: this[l(518)], targetAction: s, targetData: u, forwardPath: h[l(1908)](1) }, sourceNodeId: m } }, k); } catch (T) { - throw console[l(490)](l(2307) + s + ":", T), console.error({ targetNodeId: this[l(1891)], targetAction: s, targetData: u, forwardPath: h.slice(1) }), T; + throw console[l(1491)](l(1847) + s + ":", T), console[l(1491)]({ targetNodeId: this.nodeId, targetAction: s, targetData: u, forwardPath: h[l(1908)](1) }), T; } - return P; + return I; } let v; - return h[l(2710)] === 2 ? v = g.streamRequest({ action: s, data: u, sourceNodeId: m }, i.responseSchema, f) : v = g[l(1807)]({ action: l(715), data: { targetNodeId: this[l(1891)], targetAction: s, targetData: u, forwardPath: h[l(1387)](1) }, sourceNodeId: m }, i[l(992)], f), v; + return h[l(1148)] === 2 ? v = g[l(1368)]({ action: s, data: u, sourceNodeId: m }, i[l(2486)], d) : v = g[l(1368)]({ action: "__proxy_forward", data: { targetNodeId: this[l(518)], targetAction: s, targetData: u, forwardPath: h.slice(1) }, sourceNodeId: m }, i.responseSchema, d), v; }; } }); } - [a(1273)]() { - return this[a(2976)].getTransportToNode(this.nodeId); + [a(1424)]() { + return this[a(386)].getTransportToNode(this.nodeId); } } -var ns, os, is; -class Bs { +var ss, ns; +class Us { constructor(x) { - me(this, is); - me(this, os); + me(this, "graphInstance"); me(this, ns); + me(this, ss); const t = a; - this[t(2976)] = x, this[t(3220)] = x[t(3220)], this[t(484)] = x[t(484)]; + this.graphInstance = x, this[t(2155)] = x[t(2155)], this[t(2020)] = x[t(2020)]; } - [(is = a(2976), os = a(3220), ns = a(484), a(486))]({ store: x, storeName: t, onStateUpdate: r, requestInitialState: e }) { + [(ns = a(2155), ss = a(2020), a(368))]({ store: x, storeName: t, onStateUpdate: r, requestInitialState: e }) { const s = a; - this[s(484)][s(1424)]("store:update:" + t, (n) => { + this[s(2020)][s(2643)](s(1956) + t, (n) => { const i = s; try { - n.sourceNodeId !== this[i(2976)].getCurrentNodeId() && r(n[i(2853)]); + n.sourceNodeId !== this[i(386)][i(534)]() && r(n[i(760)]); } catch (c) { - console[i(490)](i(1306) + t + ":", c); + console[i(1491)]("[GraphStoreSynchronizer] Error processing store update for " + t + ":", c); } }); } - [a(813)]({ store: x, storeName: t, sendStateUpdate: r, onInitialStateRequested: e }) { - const s = a, n = this[s(2976)][s(1199)](), i = async (f, l = !1) => { - const d = s; - if (this[d(697)]()) try { - await this.broadcastManager.broadcast(d(2779) + t, { storeName: t, sourceNodeId: n, stateUpdate: f, isInitialState: l }); + [a(1454)]({ store: x, storeName: t, sendStateUpdate: r, onInitialStateRequested: e }) { + const s = a, n = this[s(386)][s(534)](), i = async (d, l = !1) => { + const f = s; + if (this[f(2073)]()) try { + await this.broadcastManager[f(1835)](f(1956) + t, { storeName: t, sourceNodeId: n, stateUpdate: d, isInitialState: l }); } catch (h) { - console[d(490)](d(1302) + t + ":", h); + console[f(1491)](f(1122) + t + ":", h); } - }, c = x[s(1952)]((f) => { - i(f, !1); + }, c = x[s(1833)]((d) => { + i(d, !1); }); e(() => { - i(x[s(1079)](), !0); + i(x[s(1672)](), !0); }); - const u = s(1413) + t; - return this.actionManager[s(1474)](u, async () => { - const f = x.getState(); - return await i(f, !0), { success: !0 }; - }), this.broadcastManager[s(1424)](s(608), async (f) => { + const u = "__internal_requestInitialState_" + t; + return this[s(2155)][s(1036)](u, async () => { + const d = s, l = x[d(1672)](); + return await i(l, !0), { success: !0 }; + }), this[s(2020)].registerHandler(s(2727), async (d) => { const l = s; try { - (f[l(823)] === n || f[l(3235)] === n) && await i(x.getState(), !0); + (d[l(2107)] === n || d[l(2043)] === n) && await i(x[l(1672)](), !0); } catch { } }), () => { var l; - const f = s; - c(), (l = this.actionManager[f(603)]) == null || l.delete(u); + const d = s; + c(), (l = this[d(2155)][d(1889)]) == null || l[d(2375)](u); }; } isTransportReady() { var t; const x = a; try { - const r = this[x(2976)][x(1255)], e = r && r.getConnectionCount() > 0, s = ((t = this.broadcastManager[x(2080)]) == null ? void 0 : t[x(846)]) > 0; + const r = this[x(386)][x(1150)], e = r && r.getConnectionCount() > 0, s = ((t = this.broadcastManager[x(2438)]) == null ? void 0 : t.size) > 0; return e || s; } catch { - return !!this.broadcastManager; + return !!this[x(2020)]; } } - async [a(1823)](x, t) { - const r = a, e = this.graphInstance[r(1199)](); - if (this[r(697)]()) try { - await this[r(484)][r(1829)](r(2779) + t, { storeName: t, sourceNodeId: e, stateUpdate: x[r(1079)](), isInitialState: !0 }); + async [a(1163)](x, t) { + const r = a, e = this[r(386)].getCurrentNodeId(); + if (this[r(2073)]()) try { + await this.broadcastManager[r(1835)]("store:update:" + t, { storeName: t, sourceNodeId: e, stateUpdate: x.getState(), isInitialState: !0 }); } catch { } } } -function bo({ graphInstance: o, store: x, name: t }) { - const r = a, e = new Bs(o), s = (i) => { - const c = K, u = x[c(1079)](), f = { ...u, ...i }; - x[c(738)](f); +function fo({ graphInstance: o, store: x, name: t }) { + const r = a, e = new Us(o), s = (i) => { + const c = Z, u = x[c(1672)](), d = { ...u, ...i }; + x.setState(d); }, n = async () => { - const i = K, c = i(1413) + t; + const i = Z, c = "__internal_requestInitialState_" + t; try { - const u = o.getNode(t); - u && u[i(2848)] && u[i(2848)][c] && await u[i(2848)][c](); + const u = o[i(540)](t); + u && u[i(810)] && u[i(810)][c] && await u[i(810)][c](); } catch (u) { - console.warn(i(1039) + t + ":", u); + console.warn("Failed to request initial state for " + t + ":", u); } }; - e[r(486)]({ store: x, storeName: t, onStateUpdate: s, requestInitialState: n }); + e[r(368)]({ store: x, storeName: t, onStateUpdate: s, requestInitialState: n }); } -function go({ graphInstance: o, store: x, name: t }) { - const r = a, e = new Bs(o), s = async (i) => { - }, n = (i) => { +function ho({ graphInstance: o, store: x, name: t }) { + const r = new Us(o), e = async (n) => { + }, s = (n) => { }; - return e[r(813)]({ store: x, storeName: t, sendStateUpdate: s, onInitialStateRequested: n }); + return r.initializeProducer({ store: x, storeName: t, sendStateUpdate: e, onInitialStateRequested: s }); } -var cs, us, fs; -class yo { +var os, is, cs; +class po { constructor(x) { - me(this, "broadcastHandlers", /* @__PURE__ */ new Map()); - me(this, fs, /* @__PURE__ */ new Map()); - me(this, us, /* @__PURE__ */ new Set()); - me(this, cs); - const t = a; - this[t(866)] = x; + me(this, cs, /* @__PURE__ */ new Map()); + me(this, is, /* @__PURE__ */ new Map()); + me(this, "mountedTransports", /* @__PURE__ */ new Set()); + me(this, os); + this.currentNodeId = x; } - [(fs = a(2269), us = a(2785), cs = a(866), a(2036))](x) { + [(cs = a(2968), is = a(2456), os = a(1915), a(2442))](x) { return (t) => { - const r = K; - if (t && t[r(2145)] === this.currentNodeId) return; - const e = this[r(2529)][r(674)](x); + const r = Z; + if (t && t[r(1955)] === this.currentNodeId) return; + const e = this[r(2968)][r(1507)](x); if (e) { const { __origin: s, forwarded: n, ...i } = t || {}; for (const c of e) try { c(i); } catch (u) { - console.error(r(3276) + x + ":", u); + console[r(1491)](r(928) + x + ":", u); } } - !t[r(1457)] && this.forwardBroadcast(x, t); + !t.forwarded && this[r(353)](x, t); }; } - async forwardBroadcast(x, t) { + async [a(353)](x, t) { const r = a; try { - const e = { ...t, forwarded: !0 }, s = [...Array[r(2047)](this[r(2269)][r(3237)]()), ...Array.from(this[r(2785)])], n = s[r(1930)]((i) => { + const e = { ...t, forwarded: !0 }, s = [...Array.from(this[r(2456)].values()), ...Array[r(1546)](this[r(3031)])], n = s[r(2739)]((i) => { const c = r; - return i[c(2487)]({ method: c(3183), params: { messageType: x, message: e } })[c(742)]((u) => { - console.error(c(1286) + x + ":", u); + return i.notification({ method: c(1183), params: { messageType: x, message: e } }).catch((u) => { + const d = c; + console[d(1491)](d(2099) + x + ":", u); }); }); - await Promise[r(1096)](n); + await Promise[r(2497)](n); } catch (e) { - console[r(490)](r(1721), e); + console[r(1491)](r(1284), e); } } - [a(1424)](x, t) { + [a(2643)](x, t) { const r = a; - !this.broadcastHandlers[r(2348)](x) && this[r(2529)][r(780)](x, /* @__PURE__ */ new Set()), this[r(2529)][r(674)](x).add(t); + !this[r(2968)][r(1281)](x) && this[r(2968)][r(823)](x, /* @__PURE__ */ new Set()), this[r(2968)][r(1507)](x)[r(986)](t); } setupTransportHandlers(x) { - this[a(888)](x); + this.setupGeneralBroadcastHandler(x); } - [a(888)](x) { - const t = a, r = S({ method: xe(t(3183)), params: S({ messageType: b(), message: ye() }) }); - x[t(1529)](r, async (e) => { - const s = t, n = e[s(1656)].messageType; - this.createGlobalDispatcherForType(n)(e[s(1656)][s(1044)]); + [a(1325)](x) { + const t = a, r = S({ method: xe(t(1183)), params: S({ messageType: b(), message: ve() }) }); + x.setNotificationHandler(r, async (e) => { + const s = t, n = e[s(434)].messageType; + this[s(2442)](n)(e[s(434)][s(2461)]); }); } - [a(2511)](x, t) { + [a(1418)](x, t) { const r = a; - this.transports.set(x, t), this[r(1023)](t); + this[r(2456)][r(823)](x, t), this[r(2158)](t); } - [a(3004)](x) { + [a(1295)](x) { const t = a; - this.transports[t(875)](x); + this[t(2456)][t(2375)](x); } - async [a(1829)](x, t) { - const r = a, e = [...Array[r(2047)](this[r(2269)][r(3237)]()), ...Array.from(this[r(2785)])], s = e[r(1930)]((n) => { + async [a(1835)](x, t) { + const r = a, e = [...Array[r(1546)](this[r(2456)].values()), ...Array[r(1546)](this[r(3031)])], s = e.map((n) => { const i = r; - return n.notification({ method: i(3183), params: { messageType: x, message: t } }); + return n[i(1455)]({ method: i(1183), params: { messageType: x, message: t } }); }); - await Promise[r(1096)](s); + await Promise[r(2497)](s); } mountTo(x) { const t = a; - this[t(2785)][t(1580)](x), this[t(1023)](x); + this.mountedTransports[t(986)](x), this[t(2158)](x); } - [a(822)]() { + getHandlerTypes() { const x = a; - return Array.from(this[x(2529)][x(2123)]()); + return Array.from(this[x(2968)][x(1877)]()); } - [a(2376)]() { + [a(277)]() { const x = a; - this[x(2529)][x(2376)](), this[x(2269)].clear(), this.mountedTransports.clear(); + this[x(2968)].clear(), this[x(2456)][x(277)](), this[x(3031)][x(277)](); } } -var ls, ds, hs, ps; -class vo { +var us, ds, ls; +class mo { constructor(x, t, r) { - me(this, ps, /* @__PURE__ */ new Map()); - me(this, hs); - me(this, ds); + me(this, "actionHandlers", /* @__PURE__ */ new Map()); me(this, ls); + me(this, ds); + me(this, us); const e = a; - this[e(1686)] = x, this[e(866)] = t, this[e(1538)] = r; + this.definition = x, this[e(1915)] = t, this[e(392)] = r; } - [(ps = a(603), hs = a(1686), ds = a(866), ls = a(1538), a(2922))](x, t) { - const r = a, e = this[r(1686)][r(1316)](this[r(866)]); - if (!e) throw new Error(r(2645) + this.currentNodeId); - const s = e[r(2848)][x]; - if (!s) throw new Error(r(2539) + String(x) + " not found for node " + this[r(866)]); - this[r(1294)](x, t, s), this.actionHandlers[r(780)](x, t); + [(ls = a(528), ds = a(1915), us = a(392), a(1748))](x, t) { + const r = a, e = this[r(528)].getNode(this[r(1915)]); + if (!e) throw new Error("Node definition not found for " + this[r(1915)]); + const s = e[r(810)][x]; + if (!s) throw new Error("Action " + String(x) + " not found for node " + this.currentNodeId); + this[r(1349)](x, t, s), this[r(1889)].set(x, t); } - [a(1294)](x, t, r) { - r.stream; + validateHandlerType(x, t, r) { + r[a(1554)]; } - [a(1474)](x, t) { - this[a(603)].set(x, t); + implementInternalAction(x, t) { + const r = a; + this[r(1889)][r(823)](x, t); } - [a(2983)](x) { + mountTo(x) { const t = a; - for (const [r, e] of this[t(603)]) { - const s = this[t(1686)][t(1316)](this[t(866)]), n = s == null ? void 0 : s.actions[r]; - if (r[t(760)](t(2818)) ? !1 : (n == null ? void 0 : n[t(2932)]) === !0) { + for (const [r, e] of this[t(1889)]) { + const s = this[t(528)].getNode(this.currentNodeId), n = s == null ? void 0 : s[t(810)][r]; + if (r[t(1654)](t(1047)) ? !1 : (n == null ? void 0 : n[t(1554)]) === !0) { const u = S({ action: xe(r) }); - x[t(3139)](u, async function* (f, l, d) { - const g = t, h = f[g(2663)] || f, m = e(h, l, d); - if (m && typeof m === g(1304) && Symbol[g(583)] in m) for await (const v of m) + x.registerStreamRequestorHandler(u, async function* (d, l, f) { + const g = t, h = d.data || d, m = e(h, l, f); + if (m && typeof m === g(2220) && Symbol[g(533)] in m) for await (const v of m) yield v === void 0 ? {} : v; else { const v = await m; @@ -2206,315 +2211,316 @@ class vo { }); } } - this[t(943)](x), this[t(665)](x); + this.registerProxyForwardHandler(x), this.registerDirectRequestHandlerGeneric(x); } - registerProxyForwardHandler(x) { - const t = a, r = S({ action: xe("__proxy_forward") }), e = this; - x[t(3139)](r, async function* (s, n, i) { - const c = t, u = s[c(2663)] || s, { targetNodeId: f, targetAction: l, targetData: d, forwardPath: g } = u; - if (!g || g[c(2710)] === 0) throw new Error(c(2939)); - const h = g[0], m = g[c(1387)](1); - if (m[c(2710)] === 0 && h === e[c(866)]) { - const v = e[c(603)][c(674)](l); - if (!v) throw new Error(c(2539) + l + c(2185) + e[c(866)]); - const k = v(d, n, i); - if (k && typeof k === c(1304) && Symbol[c(583)] in k) for await (const P of k) - yield P === void 0 ? {} : P; + [a(1737)](x) { + const t = a, r = S({ action: xe(t(1565)) }), e = this; + x[t(1146)](r, async function* (s, n, i) { + const c = t, u = s[c(1506)] || s, { targetNodeId: d, targetAction: l, targetData: f, forwardPath: g } = u; + if (!g || g[c(1148)] === 0) throw new Error(c(945)); + const h = g[0], m = g[c(1908)](1); + if (m[c(1148)] === 0 && h === e[c(1915)]) { + const v = e[c(1889)][c(1507)](l); + if (!v) throw new Error(c(2283) + l + c(1653) + e[c(1915)]); + const k = v(f, n, i); + if (k && typeof k === c(2220) && Symbol[c(533)] in k) for await (const I of k) + yield I === void 0 ? {} : I; else { - const P = await k; - yield P === void 0 ? {} : P; + const I = await k; + yield I === void 0 ? {} : I; } return; } - if (h === e.currentNodeId && m.length > 0) { - const v = m[0], k = e[c(1538)](v); + if (h === e[c(1915)] && m[c(1148)] > 0) { + const v = m[0], k = e[c(392)](v); if (k) { - const P = await k[c(1807)]({ action: c(715), data: { targetNodeId: f, targetAction: l, targetData: d, forwardPath: m } }, S({}), i); - for await (const T of P) + const I = await k[c(1368)]({ action: c(1565), data: { targetNodeId: d, targetAction: l, targetData: f, forwardPath: m } }, S({}), i); + for await (const T of I) yield T === void 0 ? {} : T; return; } - throw new Error(c(2261) + v + c(791)); + throw new Error(c(1054) + v + c(2797)); } - throw new Error(c(3160) + e[c(866)] + c(2452) + g); + throw new Error("Invalid proxy forwarding: current node " + e[c(1915)] + c(2118) + g); }); } - [a(2938)]() { - const x = a; - return Array[x(2047)](this[x(603)][x(2123)]()); + [a(2927)]() { + return Array.from(this[a(1889)].keys()); } - [a(2412)](x) { + [a(2100)](x) { const t = a; - return this[t(603)][t(2348)](x); + return this[t(1889)][t(1281)](x); } - getHandler(x) { - return this[a(603)].get(x); + [a(2780)](x) { + const t = a; + return this[t(1889)][t(1507)](x); } - [a(2376)]() { + [a(277)]() { const x = a; - this[x(603)][x(2376)](); + this[x(1889)][x(277)](); } - [a(2888)](x, t, r) { + [a(843)](x, t, r) { } - [a(665)](x) { - const t = a, r = S({ method: xe(t(1750)), params: S({ action: b(), data: ye()[t(2478)]() }) }), e = this; - x[t(1219)](r, async (s, n) => { - const i = t, { action: c, data: u } = s[i(1656)]; - if (c === "__proxy_forward") return await e.handleDirectProxyForward(u, n); - const f = e[i(603)][i(674)](c); - if (!f) throw new Error(i(2539) + c + " not found on node " + e[i(866)]); - const l = f(u, n), d = await l; - return d === void 0 ? {} : d; + [a(261)](x) { + const t = a, r = S({ method: xe(t(668)), params: S({ action: b(), data: ve()[t(2184)]() }) }), e = this; + x[t(2623)](r, async (s, n) => { + const i = t, { action: c, data: u } = s.params; + if (c === i(1565)) return await e[i(1640)](u, n); + const d = e[i(1889)][i(1507)](c); + if (!d) throw new Error(i(2283) + c + " not found on node " + e[i(1915)]); + const l = d(u, n), f = await l; + return f === void 0 ? {} : f; }); } - async [a(3141)](x, t) { + async [a(1640)](x, t) { const r = a, { targetNodeId: e, targetAction: s, targetData: n, forwardPath: i } = x; - if (!i || i[r(2710)] === 0) throw new Error(r(2939)); + if (!i || i[r(1148)] === 0) throw new Error(r(945)); const c = i[0], u = i.slice(1); - if (u[r(2710)] === 0 && c === this[r(866)]) { - const f = this[r(603)][r(674)](s); - if (!f) throw new Error(r(2539) + s + r(2185) + this[r(866)]); - const l = f(n, t), d = await l; - return d === void 0 ? {} : d; + if (u[r(1148)] === 0 && c === this[r(1915)]) { + const d = this[r(1889)].get(s); + if (!d) throw new Error(r(2283) + s + " not found on node " + this[r(1915)]); + const l = d(n, t), f = await l; + return f === void 0 ? {} : f; } - if (c === this[r(866)] && u[r(2710)] > 0) { - const f = u[0], l = this[r(1538)](f); - if (l) return await l[r(494)]({ method: r(1750), params: { action: r(715), data: { targetNodeId: e, targetAction: s, targetData: n, forwardPath: u } } }, ye()); - throw new Error(r(2261) + f + r(791)); + if (c === this[r(1915)] && u[r(1148)] > 0) { + const d = u[0], l = this.getTransport(d); + if (l) return await l[r(1093)]({ method: "sdppp/directRequest", params: { action: r(1565), data: { targetNodeId: e, targetAction: s, targetData: n, forwardPath: u } } }, ve()); + throw new Error("Cannot forward to node " + d + r(2797)); } - throw new Error(r(3160) + this[r(866)] + " not in path " + i); + throw new Error(r(1662) + this[r(1915)] + " not in path " + i); } } -var ms; -class wo { +var fs, hs; +class bo { constructor(x, t) { - me(this, "definition"); + me(this, hs); me(this, "currentNodeId"); - me(this, ms, /* @__PURE__ */ new Set()); + me(this, fs, /* @__PURE__ */ new Set()); const r = a; - this[r(1686)] = x, this[r(866)] = t; + this[r(528)] = x, this[r(1915)] = t; } - markConnected(x) { - this[a(968)].add(x); - } - [(ms = a(968), a(2743))](x) { - this[a(968)].delete(x); - } - [a(2324)](x) { + [(hs = a(528), fs = a(950), a(2593))](x) { const t = a; - return this[t(968)][t(2348)](x); + this[t(950)][t(986)](x); } - findPath(x, t) { + markDisconnected(x) { + const t = a; + this.connectedNodes[t(2375)](x); + } + [a(2858)](x) { + const t = a; + return this[t(950)][t(1281)](x); + } + [a(2279)](x, t) { const r = a; if (x === t) return [x]; const e = /* @__PURE__ */ new Set(), s = [{ nodeId: x, path: [x] }]; for (; s.length > 0; ) { - const { nodeId: n, path: i } = s.shift(); - if (e[r(2348)](n)) continue; - e[r(1580)](n); - const c = this[r(1686)][r(710)](n); + const { nodeId: n, path: i } = s[r(1766)](); + if (e[r(1281)](n)) continue; + e.add(n); + const c = this[r(528)].getNeighbors(n); for (const u of c) { if (u === t) return [...i, u]; - !e[r(2348)](u) && s[r(3062)]({ nodeId: u, path: [...i, u] }); + !e[r(1281)](u) && s[r(3019)]({ nodeId: u, path: [...i, u] }); } } } - [a(719)]() { + [a(1772)]() { + return Array.from(this[a(950)]); + } + [a(1236)]() { const x = a; - return Array[x(2047)](this[x(968)]); + return this[x(950)][x(2108)]; } - getConnectionCount() { - return this[a(968)].size; - } - [a(798)]() { - const x = a, t = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), e = [this[x(866)]]; - for (r.add(this[x(866)]); e[x(2710)] > 0; ) { - const s = e[x(1263)](), n = this[x(1686)].getNeighbors(s); + [a(2357)]() { + const x = a, t = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), e = [this[x(1915)]]; + for (r[x(986)](this[x(1915)]); e[x(1148)] > 0; ) { + const s = e[x(1766)](), n = this[x(528)].getNeighbors(s); for (const i of n) - !r[x(2348)](i) && (r[x(1580)](i), (this[x(968)][x(2348)](i) || this.canReachThroughConnectedNodes(i, r)) && (t[x(1580)](i), e[x(3062)](i))); + !r[x(1281)](i) && (r[x(986)](i), (this[x(950)].has(i) || this[x(2079)](i, r)) && (t.add(i), e[x(3019)](i))); } - return Array[x(2047)](t); + return Array[x(1546)](t); } - canReachThroughConnectedNodes(x, t) { - const r = a, e = this[r(1395)](this[r(866)], x); - if (!e || e[r(2710)] <= 1) return !1; + [a(2079)](x, t) { + const r = a, e = this[r(2279)](this.currentNodeId, x); + if (!e || e.length <= 1) return !1; for (let s = 1; s < e.length - 1; s++) - if (!this[r(968)][r(2348)](e[s])) return !1; + if (!this[r(950)].has(e[s])) return !1; return !0; } - [a(2376)]() { + [a(277)]() { const x = a; - this.connectedNodes[x(2376)](); + this[x(950)][x(277)](); } } -var bs, gs, ys, vs, ws, Ss, ks; -class So { +var ps, ms, bs, gs, ys, vs; +class go { constructor(x, t) { - me(this, ks); - me(this, Ss); - me(this, ws, /* @__PURE__ */ new Map()); - me(this, vs, /* @__PURE__ */ new Map()); - me(this, ys); - me(this, gs); - me(this, "connectionManager"); - me(this, bs, /* @__PURE__ */ new Map()); + me(this, "definition"); + me(this, vs); + me(this, ys, /* @__PURE__ */ new Map()); + me(this, gs, /* @__PURE__ */ new Map()); + me(this, bs); + me(this, "actionManager"); + me(this, ms); + me(this, ps, /* @__PURE__ */ new Map()); const r = a; - this[r(1686)] = x, this[r(866)] = t, this[r(2181)](), this.broadcastManager = new yo(t), this[r(3220)] = new vo(x, t, (e) => this[r(1268)](e)), this[r(1255)] = new wo(x, t), this[r(1187)](); + this[r(528)] = x, this[r(1915)] = t, this.initializeNodeStores(), this[r(2020)] = new po(t), this[r(2155)] = new mo(x, t, (e) => this[r(1405)](e)), this[r(1150)] = new bo(x, t), this[r(2509)](); } - initializeNodeStores() { + [(vs = a(1915), ys = a(1177), gs = a(2742), bs = a(2020), ms = a(1150), ps = a(496), a(1153))]() { const x = a; - for (const t of this[x(1686)][x(681)]()) { - const r = this[x(1686)].getNode(t); - if (r && r[x(872)]) { - const e = this[x(2716)](r.store), s = zn(() => e); - this[x(1019)][x(780)](t, s); + for (const t of this[x(528)][x(2231)]()) { + const r = this[x(528)].getNode(t); + if (r && r[x(2788)]) { + const e = this[x(473)](r[x(2788)]), s = Ln(() => e); + this.nodeStores[x(823)](t, s); } } } - [(ks = a(1686), Ss = a(866), ws = a(1019), vs = a(2936), ys = a(484), gs = a(3220), bs = a(1964), a(2716))](x) { + getDefaultValuesFromSchema(x) { const t = a; if (!x) return {}; try { - return x[t(2774)]({}); + return x[t(1598)]({}); } catch { - return this[t(867)](x); + return this[t(2558)](x); } } - [a(867)](x) { + [a(2558)](x) { const t = a; - if (!x || !x[t(2590)]) return {}; - if (x[t(2590)].type === t(2485)) { - const r = x[t(2590)][t(2074)]; - return typeof r === t(1936) ? r() : r; + if (!x || !x[t(2493)]) return {}; + if (x[t(2493)].type === t(2096)) { + const r = x[t(2493)][t(1890)]; + return typeof r == "function" ? r() : r; } - if (x[t(2590)][t(2076)] === "object") { + if (x.def[t(2291)] === "object") { const r = {}; let e; try { - e = x[t(2590)][t(1547)]; + e = x[t(2493)][t(1190)]; } catch { return {}; } - if (e) for (const [s, n] of Object[t(2634)](e)) { - const i = this[t(1836)](n); + if (e) for (const [s, n] of Object.entries(e)) { + const i = this[t(2328)](n); i !== void 0 && (r[s] = i); } return r; } return {}; } - [a(1836)](x) { + getDefaultValueFromField(x) { const t = a; if (x) try { return x.parse(void 0); } catch { - return this[t(867)](x); + return this[t(2558)](x); } } - async [a(1645)](x, t) { + async [a(1501)](x, t) { const r = a; - if (!this[r(1686)][r(1070)](this[r(866)], x)) throw new Error("No edge defined from " + this[r(866)] + r(2327) + x); - if (this[r(1964)][r(2348)](x)) throw new Error(r(2077) + x); + if (!this[r(528)].hasEdge(this[r(1915)], x)) throw new Error(r(2695) + this[r(1915)] + r(314) + x); + if (this[r(496)][r(1281)](x)) throw new Error("Already connected to node " + x); try { - this[r(1964)][r(780)](x, t), this.connectionManager[r(726)](x), this[r(1991)](x, t), await this.syncStoresToNewConnection(x), await this[r(1594)](x); + this[r(496)][r(823)](x, t), this.connectionManager[r(2593)](x), this.setupNodeBindings(x, t), await this[r(2996)](x), await this[r(2892)](x); } catch (e) { - throw this.cleanupConnection(x), e; + throw this[r(2942)](x), e; } } - [a(3209)](x) { - this[a(2811)](x); + [a(834)](x) { + this[a(2942)](x); } - async [a(618)](x) { + async [a(2996)](x) { const t = a; await new Promise((r) => setTimeout(r, 100)); - for (const [r, e] of this[t(1019)]) - if (r === this[t(866)]) try { - await this[t(484)][t(1829)](t(2779) + r, { storeName: r, sourceNodeId: this[t(866)], stateUpdate: e[t(1079)](), isInitialState: !0 }); + for (const [r, e] of this.nodeStores) + if (r === this[t(1915)]) try { + await this[t(2020)][t(1835)]("store:update:" + r, { storeName: r, sourceNodeId: this[t(1915)], stateUpdate: e[t(1672)](), isInitialState: !0 }); } catch { } try { - await this[t(484)][t(1829)](t(608), { fromNode: this[t(866)], toNode: x }); + await this[t(2020)][t(1835)](t(2727), { fromNode: this.currentNodeId, toNode: x }); } catch { } } - async [a(1594)](x) { + async [a(2892)](x) { const t = a; try { - const r = this[t(1255)].getAllReachableNodes(); + const r = this[t(1150)][t(2357)](); for (const e of r) try { - const s = "__internal_requestInitialState_" + e, n = this[t(1316)](e); - if (n && n.actions && n[t(2848)][s]) { - const i = n[t(2848)][s]({}); - await Promise[t(3019)]([i, new Promise((c) => setTimeout(c, 300))]); + const s = "__internal_requestInitialState_" + e, n = this[t(540)](e); + if (n && n[t(810)] && n[t(810)][s]) { + const i = n[t(810)][s]({}); + await Promise[t(992)]([i, new Promise((c) => setTimeout(c, 300))]); } } catch (s) { - console[t(1635)](t(1039) + e + ":", s); + console.log(t(2591) + e + ":", s); } } catch (r) { - console[t(1635)](t(1078) + x + ":", r); + console[t(2127)]("Failed to request initial states after connecting to " + x + ":", r); } } - [a(2811)](x) { - const t = a, r = this.nodeTransports.get(x); - this[t(1964)][t(875)](x), this[t(1255)].markDisconnected(x), this[t(484)].removeMiddleware(x), r && r[t(2397)](); + cleanupConnection(x) { + const t = a, r = this.nodeTransports[t(1507)](x); + this.nodeTransports.delete(x), this[t(1150)][t(2432)](x), this.broadcastManager[t(1295)](x), r && r[t(714)](); } - [a(1991)](x, t) { + setupNodeBindings(x, t) { const r = a; - if (!this[r(1019)][r(674)](this.currentNodeId)) throw new Error("Store not found for " + this[r(866)]); - this[r(3220)].mountTo(t), this[r(484)][r(2511)](x, t); + if (!this[r(1177)][r(1507)](this[r(1915)])) throw new Error("Store not found for " + this[r(1915)]); + this[r(2155)][r(1467)](t), this[r(2020)][r(1418)](x, t); } - [a(1187)]() { + [a(2509)]() { const x = a; - for (const [t, r] of this[x(1019)]) - t === this[x(866)] ? go({ graphInstance: this, store: r, name: t }) : bo({ graphInstance: this, store: r, name: t }); + for (const [t, r] of this[x(1177)]) + t === this[x(1915)] ? ho({ graphInstance: this, store: r, name: t }) : fo({ graphInstance: this, store: r, name: t }); } - [a(1316)](x) { + [a(540)](x) { const t = a; - if (!this[t(2936)][t(2348)](x)) { - const r = new mo(this, x); - this[t(2936)][t(780)](x, r); + if (!this[t(2742)][t(1281)](x)) { + const r = new lo(this, x); + this.nodeProxies.set(x, r); } - return this.nodeProxies[t(674)](x); + return this[t(2742)][t(1507)](x); } - [a(1268)](x) { - const t = a; - return this[t(1964)][t(674)](x); + [a(1405)](x) { + return this[a(496)].get(x); } - [a(960)](x) { - const t = a, r = this.nodeTransports[t(674)](x); - if (r) return { transport: r, path: [this[t(866)], x] }; - const e = this[t(1898)](this[t(866)], x); - if (e && e[t(2710)] > 1) { - const s = e[1], n = this[t(1964)][t(674)](s); + [a(1262)](x) { + const t = a, r = this[t(496)].get(x); + if (r) return { transport: r, path: [this[t(1915)], x] }; + const e = this[t(1502)](this[t(1915)], x); + if (e && e[t(1148)] > 1) { + const s = e[1], n = this[t(496)][t(1507)](s); if (n) return { transport: n, path: e }; } } - getNodeStore(x) { + [a(1427)](x) { const t = a; - return this[t(1019)][t(674)](x); + return this[t(1177)][t(1507)](x); } - get [a(872)]() { - const x = a, t = this[x(1019)][x(674)](this[x(866)]); - if (!t) throw new Error(x(3269) + this[x(866)]); + get [a(2788)]() { + const x = a, t = this[x(1177)][x(1507)](this[x(1915)]); + if (!t) throw new Error(x(1041) + this[x(1915)]); return t; } - get [a(2848)]() { - const x = a, t = this.definition.getNode(this.currentNodeId); - if (!t) throw new Error(x(895) + this[x(866)]); + get [a(810)]() { + const x = a, t = this[x(528)][x(540)](this.currentNodeId); + if (!t) throw new Error(x(744) + this[x(1915)]); return new Proxy({}, { get: (e, s) => { const n = x; - if (typeof s != "string") return; + if (typeof s !== n(2028)) return; const i = t.actions[s]; - if (!i) throw new Error(n(2539) + s + " not found for current node " + this[n(866)]); + if (!i) throw new Error(n(2283) + s + n(1982) + this[n(1915)]); return (c, u) => { - const f = n, l = this[f(3220)][f(2369)](s); - if (!l) throw new Error(f(1261) + s + f(1398) + this[f(866)]); - const d = { nodeId: this[f(866)] }; - if (i[f(2932)] === !0) { - const g = l(c, d, u); - return g && typeof g == "object" && Symbol[f(583)] in g ? (async function* () { + const d = n, l = this[d(2155)][d(2780)](s); + if (!l) throw new Error(d(585) + s + d(2886) + this[d(1915)]); + const f = { nodeId: this[d(1915)] }; + if (i[d(1554)] === !0) { + const g = l(c, f, u); + return g && typeof g === d(2220) && Symbol.asyncIterator in g ? (async function* () { for await (const h of g) yield h === void 0 ? {} : h; })() : (async function* () { @@ -2522,10 +2528,10 @@ class So { yield h === void 0 ? {} : h; })(); } else return (async () => { - const g = f, h = l(c, d, u); - if (h && typeof h === g(1304) && Symbol[g(583)] in h) { - const m = h[Symbol.asyncIterator](), v = await m[g(2507)](); - return v[g(2446)] === void 0 ? {} : v[g(2446)]; + const g = d, h = l(c, f, u); + if (h && typeof h === g(2220) && Symbol[g(533)] in h) { + const m = h[Symbol[g(533)]](), v = await m[g(1751)](); + return v.value === void 0 ? {} : v[g(935)]; } else { const m = await h; return m === void 0 ? {} : m; @@ -2534,503 +2540,505 @@ class So { }; } }); } - [a(1857)]() { - return this.definition; + [a(298)]() { + return this[a(528)]; } - [a(1199)]() { - return this[a(866)]; + [a(534)]() { + return this.currentNodeId; } - [a(2993)](x) { - return this.getTransportToNode(x); + [a(1694)](x) { + return this[a(1262)](x); } - [a(2922)](x, t) { + implementAction(x, t) { const r = a; - this[r(3220)][r(2922)](x, t); + this[r(2155)][r(1748)](x, t); } - destroy() { - const x = a, t = Array[x(2047)](this.nodeTransports[x(2123)]()); + [a(891)]() { + const x = a, t = Array.from(this[x(496)][x(1877)]()); for (const r of t) - this.cleanupConnection(r); - this[x(484)][x(2376)](), this.actionManager[x(2376)](), this[x(1255)][x(2376)](); + this[x(2942)](r); + this[x(2020)][x(277)](), this[x(2155)][x(277)](), this[x(1150)][x(277)](); } - findPathInternal(x, t) { - return this.connectionManager.findPath(x, t); + [a(1502)](x, t) { + return this[a(1150)].findPath(x, t); } - findPath(x, t) { - return this.findPathInternal(x, t); + [a(2279)](x, t) { + return this[a(1502)](x, t); } - async [a(1829)](x, t) { - const r = a, e = { ...t, __origin: this[r(866)] }; - return this[r(484)][r(1829)](x, e); + async broadcast(x, t) { + const r = a, e = { ...t, __origin: this[r(1915)] }; + return this[r(2020)][r(1835)](x, e); } - [a(2691)](x, t) { + [a(2103)](x, t) { const r = a; - this.broadcastManager[r(1424)](x, t); + this[r(2020)][r(2643)](x, t); } } -function ko(o) { - const x = new Un(o); +function yo(o) { + const x = new jn(o); return { joinAs(t) { - const r = K; - if (!x.getNode(t)) throw new Error("Node " + String(t) + r(941)); - return new So(x, t); + const r = Z; + if (!x.getNode(t)) throw new Error(r(570) + String(t) + " not found in graph definition"); + return new go(x, t); }, getDefinition() { return o; }, getNodeIds() { - return x.getNodeIds(); + return x[Z(2231)](); }, getNeighbors(t) { - return x.getNeighbors(t); + return x[Z(495)](t); }, hasEdge(t, r) { - return x[K(1070)](t, r); + return x[Z(1697)](t, r); }, hasPath(t, r) { - return x[K(927)](t, r); + return x[Z(2798)](t, r); }, findPath(t, r) { - return x[K(1395)](t, r); + return x.findPath(t, r); } }; } -const ja = { INTERCEPTOR_ERROR: a(2512) }; -var Ps, Is, Es, Rs; -class Ma extends (Rs = Error, Es = a(2076), Is = a(2423), Ps = a(2116), Rs) { +const ja = { INTERCEPTOR_ERROR: "interceptor_error" }; +var ws, Ss, ks; +class La extends (ks = Error, Ss = a(1802), ws = a(525), ks) { constructor(t, r, e, s) { const n = a; super(e); - me(this, Es); - me(this, Is); - me(this, Ps); - this.name = n(2708), this.type = t, this[n(2423)] = r, this.originalError = s; + me(this, "type"); + me(this, Ss); + me(this, ws); + this[n(1166)] = n(2381), this[n(2291)] = t, this.method = r, this[n(525)] = s; } } -var Cs, _s, Fs, Ts, Ns, qs, As, Os; -class Po { +var Ps, Is, Es, Rs, Cs, Fs, _s; +class vo { constructor(x, t = {}) { - me(this, "protocol"); + me(this, _s); me(this, "realTransport", null); - me(this, Os); - me(this, As, /* @__PURE__ */ new Map()); + me(this, Fs); + me(this, Cs, /* @__PURE__ */ new Map()); me(this, "notificationHandlers", /* @__PURE__ */ new Map()); - me(this, qs, /* @__PURE__ */ new Map()); - me(this, Ns, /* @__PURE__ */ new Map()); - me(this, Ts, []); - me(this, Fs, []); - me(this, _s, []); - me(this, Cs, { requestsHandled: 0, notificationsHandled: 0, requestsIntercepted: 0, notificationsIntercepted: 0, errors: 0 }); + me(this, "outgoingRequestInterceptors", /* @__PURE__ */ new Map()); + me(this, Rs, /* @__PURE__ */ new Map()); + me(this, Es, []); + me(this, "closeHandlers", []); + me(this, Is, []); + me(this, Ps, { requestsHandled: 0, notificationsHandled: 0, requestsIntercepted: 0, notificationsIntercepted: 0, errors: 0 }); const r = a; - this[r(1601)] = x, this[r(2876)] = { debug: !1, interceptorTimeout: 5e3, continueOnInterceptorError: !0, ...t }; + this[r(2524)] = x, this[r(1341)] = { debug: !1, interceptorTimeout: 5e3, continueOnInterceptorError: !0, ...t }; } - async [(Os = a(2876), As = a(1796), qs = a(945), Ns = a(2301), Ts = a(3262), Fs = a(2223), _s = a(2573), Cs = a(1677), a(1645))](x) { + async [(_s = a(2524), Fs = a(1341), Cs = a(797), Rs = a(2251), Es = a(3023), Is = a(1441), Ps = a(1522), a(1501))](x) { const t = a; - this.realTransport = x, x.onmessage = (r) => { - this[K(2904)](r); - }, x[t(2235)] = () => { + this[t(844)] = x, x[t(1903)] = (r) => { + this[t(1917)](r); + }, x[t(660)] = () => { const r = t; - this[r(2223)][r(2617)]((e) => e()); - }, x.onerror = (r) => { + this[r(1904)][r(430)]((e) => e()); + }, x[t(2917)] = (r) => { const e = t; - this[e(2573)][e(2617)]((s) => s(r)); - }, await this[t(1601)][t(1645)](this); + this[e(1441)][e(430)]((s) => s(r)); + }, await this[t(2524)][t(1501)](this); } - async [a(2904)](x) { + async handleIncomingMessage(x) { const t = a; - this.log(t(3158), t(1948), x); + this[t(2127)](t(819), "Incoming message:", x); try { - if (this[t(3028)](x) && await this.handleIncomingRequest(x) || this[t(3216)](x) && await this[t(1169)](x)) + if (this.isRequest(x) && await this[t(2024)](x) || this[t(1357)](x) && await this[t(2928)](x)) return; - this[t(3262)][t(2617)]((r) => r(x)); + this[t(3023)][t(430)]((r) => r(x)); } catch (r) { - this[t(1677)][t(2800)]++, this.log("error", t(2175), r), this[t(3262)][t(2617)]((e) => e(x)); + this[t(1522)][t(1139)]++, this[t(2127)](t(1491), t(573), r), this[t(3023)][t(430)]((e) => e(x)); } } - async [a(1124)](x) { - const t = a, r = this[t(1796)][t(674)](x[t(2423)]); + async [a(2024)](x) { + const t = a, r = this[t(797)].get(x[t(1802)]); if (!r) return !1; try { - this[t(1677)][t(3024)]++; + this.stats[t(2566)]++; const e = await r(x, {}); - return this[t(1382)] && "id" in x && await this.realTransport[t(1838)]({ jsonrpc: t(2804), id: x.id, result: e }), !0; + return this[t(844)] && "id" in x && await this[t(844)][t(1865)]({ jsonrpc: t(598), id: x.id, result: e }), !0; } catch (e) { - return this[t(1677)][t(2800)]++, this[t(1382)] && "id" in x && await this[t(1382)].send({ jsonrpc: t(2804), id: x.id, error: { code: -32603, message: t(3064) + JSON.stringify(x[t(1656)]) + " " + e[t(1044)] } }), !0; + return this[t(1522)][t(1139)]++, this[t(844)] && "id" in x && await this[t(844)].send({ jsonrpc: t(598), id: x.id, error: { code: -32603, message: t(2715) + JSON[t(3038)](x.params) + " " + e[t(2461)] } }), !0; } } - async [a(1169)](x) { - const t = a, r = this[t(2973)][t(674)](x.method); + async handleIncomingNotification(x) { + const t = a, r = this[t(1061)][t(1507)](x[t(1802)]); if (!r) return !1; try { - return this.stats[t(635)]++, await r(x), !0; + return this[t(1522)][t(1147)]++, await r(x), !0; } catch (e) { - return this[t(1677)][t(2800)]++, this.log("error", t(2701) + x[t(2423)] + ":", e), !0; + return this.stats[t(1139)]++, this.log(t(1491), "Notification handler failed for " + x[t(1802)] + ":", e), !0; } } async send(x) { const t = a; - this[t(1635)](t(3158), t(1478), x); + this[t(2127)](t(819), t(2027), x); try { - if (this[t(3028)](x)) { - const r = await this[t(1282)](x); - if (r[t(3031)]) { - if (r[t(676)] === null) return; - r[t(676)] && (x = { ...r[t(676)], jsonrpc: "2.0" }, this[t(1677)].requestsIntercepted++); - } else if (this[t(2876)][t(1081)]) this[t(1635)](t(1114), t(1785) + x[t(2423)] + ":", r[t(490)]); - else throw r[t(490)]; - } - if (this[t(3216)](x)) { - const r = await this[t(1827)](x); + if (this.isRequest(x)) { + const r = await this[t(1814)](x); if (r.success) { - if (r.result === null) return; - r[t(676)] && (x = { ...r[t(676)], jsonrpc: "2.0" }, this[t(1677)][t(1482)]++); - } else if (this[t(2876)].continueOnInterceptorError) this.log("warn", t(595) + x[t(2423)] + ":", r[t(490)]); + if (r[t(2468)] === null) return; + r[t(2468)] && (x = { ...r[t(2468)], jsonrpc: "2.0" }, this.stats[t(2594)]++); + } else if (this[t(1341)][t(576)]) this[t(2127)](t(2618), t(1215) + x[t(1802)] + ":", r[t(1491)]); else throw r.error; } - this.realTransport && await this[t(1382)][t(1838)](x); + if (this[t(1357)](x)) { + const r = await this[t(1080)](x); + if (r[t(2186)]) { + if (r[t(2468)] === null) return; + r[t(2468)] && (x = { ...r[t(2468)], jsonrpc: t(598) }, this[t(1522)][t(505)]++); + } else if (this.options[t(576)]) this[t(2127)](t(2618), t(2323) + x[t(1802)] + ":", r[t(1491)]); + else throw r.error; + } + this.realTransport && await this[t(844)][t(1865)](x); } catch (r) { - throw this[t(1677)][t(2800)]++, r; + throw this[t(1522)][t(1139)]++, r; } } - async start() { + async [a(1171)]() { const x = a; - this[x(1382)] && await this[x(1382)][x(1392)](); + this[x(844)] && await this[x(844)][x(1171)](); } - async [a(1489)]() { + async [a(880)]() { const x = a; - this[x(1382)] && await this[x(1382)][x(1489)](); + this[x(844)] && await this[x(844)][x(880)](); } - set onmessage(x) { + set [a(1903)](x) { + this.messageHandlers = [x]; + } + set [a(660)](x) { const t = a; - this[t(3262)] = [x]; + this[t(1904)] = [x]; } - set [a(2235)](x) { + set [a(2917)](x) { const t = a; - this[t(2223)] = [x]; + this[t(1441)] = [x]; } - set [a(934)](x) { - this.errorHandlers = [x]; - } - async [a(1282)](x) { - const t = a, r = this.outgoingRequestInterceptors.get(x.method); + async executeOutgoingRequestInterceptor(x) { + const t = a, r = this[t(2240)][t(1507)](x[t(1802)]); if (!r) return { success: !0, result: x }; try { - return { success: !0, result: await this[t(582)](r(x), this.options[t(2164)]) }; + return { success: !0, result: await this[t(1344)](r(x), this[t(1341)][t(770)]) }; } catch (e) { - return this[t(1677)].errors++, { success: !1, error: new Ma(ja[t(1257)], x[t(2423)], t(1748) + e[t(1044)], e) }; + return this.stats[t(1139)]++, { success: !1, error: new La(ja[t(374)], x[t(1802)], t(2059) + e[t(2461)], e) }; } } - async executeOutgoingNotificationInterceptor(x) { - const t = a, r = this.outgoingNotificationInterceptors[t(674)](x.method); + async [a(1080)](x) { + const t = a, r = this.outgoingNotificationInterceptors[t(1507)](x[t(1802)]); if (!r) return { success: !0, result: x }; try { - return { success: !0, result: await this[t(582)](r(x), this[t(2876)][t(2164)]) }; + return { success: !0, result: await this[t(1344)](r(x), this[t(1341)][t(770)]) }; } catch (e) { - return this[t(1677)][t(2800)]++, { success: !1, error: new Ma(ja[t(1257)], x[t(2423)], "Outgoing notification interceptor failed: " + e.message, e) }; + return this[t(1522)][t(1139)]++, { success: !1, error: new La(ja.INTERCEPTOR_ERROR, x[t(1802)], t(2792) + e[t(2461)], e) }; } } - async [a(494)](x, t) { + async [a(1093)](x, t) { const r = a; - return await this[r(1601)][r(494)](x, t, { timeout: 36e5 }); + return await this.protocol[r(1093)](x, t, { timeout: 36e5 }); } - async [a(2487)](x) { - return await this[a(1601)].notification(x); + async [a(1455)](x) { + const t = a; + return await this[t(2524)][t(1455)](x); } - [a(1219)](x, t) { - const r = a, e = x[r(1547)][r(2423)][r(2446)]; - this[r(1796)][r(780)](e, t); + [a(2623)](x, t) { + const r = a, e = x[r(1190)][r(1802)].value; + this.requestHandlers.set(e, t); } - [a(1529)](x, t) { - const r = a, e = x[r(1547)][r(2423)][r(2446)]; - this[r(2973)][r(780)](e, t); + [a(566)](x, t) { + const r = a, e = x[r(1190)].method[r(935)]; + this[r(1061)].set(e, t); } - [a(2603)](x, t) { - const r = a, e = x[r(1547)][r(2423)][r(2446)]; - this[r(945)][r(780)](e, t); + [a(767)](x, t) { + const r = a, e = x.shape[r(1802)][r(935)]; + this.outgoingRequestInterceptors[r(823)](e, t); } setOutgoingNotificationInterceptor(x, t) { - const r = a, e = x[r(1547)].method[r(2446)]; - this[r(2301)][r(780)](e, t); + const r = a, e = x[r(1190)][r(1802)][r(935)]; + this[r(2251)][r(823)](e, t); } - [a(2704)](x) { + unsetRequestHandler(x) { const t = a; - this[t(1796)][t(875)](x); + this.requestHandlers[t(2375)](x); } - [a(2121)](x) { + [a(1994)](x) { const t = a; - this.notificationHandlers[t(875)](x); + this[t(1061)][t(2375)](x); } - unsetOutgoingRequestInterceptor(x) { + [a(653)](x) { const t = a; - this[t(945)][t(875)](x); + this.outgoingRequestInterceptors[t(2375)](x); } - unsetOutgoingNotificationInterceptor(x) { + [a(552)](x) { const t = a; - this.outgoingNotificationInterceptors[t(875)](x); + this[t(2251)][t(2375)](x); } - [a(928)](x) { + [a(879)](x) { const t = a; - return this[t(1796)][t(2348)](x); + return this[t(797)][t(1281)](x); } - hasNotificationHandler(x) { + [a(259)](x) { const t = a; - return this[t(2973)][t(2348)](x); + return this[t(1061)][t(1281)](x); } - [a(1540)](x) { + [a(1715)](x) { const t = a; - return this.outgoingRequestInterceptors[t(2348)](x); + return this[t(2240)][t(1281)](x); } - hasOutgoingNotificationInterceptor(x) { + [a(1337)](x) { const t = a; - return this[t(2301)][t(2348)](x); + return this[t(2251)][t(1281)](x); } - [a(1903)]() { - return { ...this[a(1677)] }; + [a(2981)]() { + return { ...this[a(1522)] }; } - [a(2495)]() { - this.stats = { requestsHandled: 0, notificationsHandled: 0, requestsIntercepted: 0, notificationsIntercepted: 0, errors: 0 }; + [a(310)]() { + const x = a; + this[x(1522)] = { requestsHandled: 0, notificationsHandled: 0, requestsIntercepted: 0, notificationsIntercepted: 0, errors: 0 }; } - getProtocol() { - return this[a(1601)]; + [a(2123)]() { + return this[a(2524)]; } cleanup() { const x = a; - this[x(1796)][x(2376)](), this[x(2973)][x(2376)](), this.outgoingRequestInterceptors[x(2376)](), this[x(2301)][x(2376)](); + this[x(797)][x(277)](), this[x(1061)][x(277)](), this[x(2240)][x(277)](), this[x(2251)][x(277)](); } - [a(3028)](x) { + [a(2333)](x) { const t = a; - return x[t(505)] === "2.0" && t(2423) in x && "id" in x; + return x.jsonrpc === t(598) && t(1802) in x && "id" in x; } - isNotification(x) { + [a(1357)](x) { const t = a; - return x[t(505)] === t(2804) && t(2423) in x && !("id" in x); + return x.jsonrpc === t(598) && t(1802) in x && !("id" in x); } async withTimeout(x, t) { const r = a, e = new Promise((s, n) => { - const i = K; - setTimeout(() => n(new Error(i(2661))), t); + const i = Z; + setTimeout(() => n(new Error(i(1642))), t); }); - return await Promise[r(3019)]([x, e]); + return await Promise[r(992)]([x, e]); } - [a(1635)](x, t, ...r) { + log(x, t, ...r) { const e = a; - if (!this[e(2876)].debug && x === e(3158)) return; - const s = e(2043); + if (!this[e(1341)][e(819)] && x === e(819)) return; + const s = e(2971); switch (x) { - case "debug": - console[e(3158)](s, t, ...r); + case e(819): + console.debug(s, t, ...r); break; - case e(1241): - console[e(1241)](s, t, ...r); + case "info": + console[e(1043)](s, t, ...r); break; - case "warn": - console[e(1114)](s, t, ...r); + case e(2618): + console[e(2618)](s, t, ...r); break; - case e(490): - console[e(490)](s, t, ...r); + case "error": + console.error(s, t, ...r); break; } } } -S({ method: xe(a(3145)), params: S({ requestId: b(), data: ye(), error: b()[a(2644)](), finished: Q() }) }), S({ method: xe(a(1916)), params: S({ action: b(), data: ye() }) }), S({ method: xe(a(3257)), params: S({ requestId: b() }) }); -const Io = S({ method: xe("sdppp/streamResponse"), params: S({ requestId: b(), data: ye(), error: b()[a(2644)](), finished: Q() }) }), Eo = S({ method: xe(a(1916)), params: S({ action: b(), data: ye() }) }), Ro = S({ method: xe(a(3257)), params: S({ requestId: b() }) }); -var Ds, js; -class Co { +S({ method: xe(a(2543)), params: S({ requestId: b(), data: ve(), error: b().nullable(), finished: Q() }) }), S({ method: xe(a(2895)), params: S({ action: b(), data: ve() }) }), S({ method: xe(a(1575)), params: S({ requestId: b() }) }); +const wo = S({ method: xe(a(2543)), params: S({ requestId: b(), data: ve(), error: b()[a(3011)](), finished: Q() }) }), So = S({ method: xe(a(2895)), params: S({ action: b(), data: ve() }) }), ko = S({ method: xe(a(1575)), params: S({ requestId: b() }) }); +var Ns, Ts; +class Po { constructor() { - me(this, js, /* @__PURE__ */ new Map()); - me(this, Ds, /* @__PURE__ */ new Map()); + me(this, Ts, /* @__PURE__ */ new Map()); + me(this, Ns, /* @__PURE__ */ new Map()); } - [(js = a(3169), Ds = a(2530), a(3062))](x) { - const t = a, { requestId: r } = x[t(1656)], e = this[t(3169)].get(r) || [], s = this.waiters.get(r) || []; - s[t(2710)] > 0 ? s[t(1263)]()(x[t(1656)]) : (e[t(3062)](x.params), this[t(3169)][t(780)](r, e)); + push(x) { + const t = a, { requestId: r } = x[t(434)], e = this[t(2223)][t(1507)](r) || [], s = this.waiters.get(r) || []; + s[t(1148)] > 0 ? s[t(1766)]()(x.params) : (e.push(x.params), this[t(2223)][t(823)](r, e)); } - async [a(2900)](x) { - const t = a, r = this[t(3169)].get(x) || []; - return r[t(2710)] > 0 ? r[t(1263)]() : new Promise((e) => { - const s = t, n = this[s(2530)][s(674)](x) || []; - n.push(e), this[s(2530)][s(780)](x, n); + async [(Ts = a(2223), Ns = a(2708), a(2906))](x) { + const t = a, r = this[t(2223)][t(1507)](x) || []; + return r[t(1148)] > 0 ? r.shift() : new Promise((e) => { + const s = t, n = this[s(2708)][s(1507)](x) || []; + n[s(3019)](e), this[s(2708)][s(823)](x, n); }); } - cleanup(x) { + [a(714)](x) { const t = a; - this.queues[t(875)](x), this[t(2530)][t(875)](x); + this[t(2223)][t(2375)](x), this[t(2708)][t(2375)](x); } } -var Ms, Ls; -class _o extends Po { +var qs, As, Os; +class Io extends vo { constructor(t, r = {}) { const e = a; super(t, r); - me(this, Ls, /* @__PURE__ */ new Map()); - me(this, "requestIdSeq", 1); - me(this, Ms, /* @__PURE__ */ new Map()); - me(this, "notificationQueue", new Co()); - this[e(1119)](); + me(this, Os, /* @__PURE__ */ new Map()); + me(this, As, 1); + me(this, qs, /* @__PURE__ */ new Map()); + me(this, "notificationQueue", new Po()); + this[e(2063)](); } - [(Ls = a(1670), Ms = a(1757), a(1119))]() { + [(Os = a(276), As = a(3041), qs = a(1582), a(2063))]() { const t = a; - this[t(3172)](), this[t(605)](), this[t(3059)](); + this[t(2854)](), this[t(2834)](), this.setupStreamRequestHandler(); } - [a(3172)]() { + [a(2854)]() { const t = a; - this[t(1529)](Io, async (r) => { + this[t(566)](wo, async (r) => { const e = t; - this[e(1233)][e(3062)](r); + this[e(612)][e(3019)](r); }); } - [a(605)]() { - const t = a; - this[t(1219)](Ro, async (r, e) => { - const s = t, { requestId: n } = r[s(1656)], i = this.runningRequests[s(674)](n); - return i && (i[s(1158)](), this[s(1757)][s(875)](n)), { success: !0 }; + [a(2834)]() { + this.setRequestHandler(ko, async (t, r) => { + const e = Z, { requestId: s } = t[e(434)], n = this[e(1582)][e(1507)](s); + return n && (n.abort(), this[e(1582)][e(2375)](s)), { success: !0 }; }); } setupStreamRequestHandler() { const t = a; - this[t(1219)](Eo, async (r, e) => { - const s = t, n = s(1464) + this[s(2832)]++, i = this[s(1670)][s(674)](r.params[s(1893)]); - if (!i) throw new Error(s(1378) + r[s(1656)].action); + this[t(2623)](So, async (r, e) => { + const s = t, n = "req_" + this.requestIdSeq++, i = this.streamRequestorHandlers[s(1507)](r[s(434)][s(2429)]); + if (!i) throw new Error("No handler for streamRequestor: " + r[s(434)][s(2429)]); const c = new AbortController(); - return this[s(1757)][s(780)](n, c), this.executeHandlerAsync(n, i, r[s(1656)], e, c), { requestId: n }; + return this[s(1582)][s(823)](n, c), this[s(475)](n, i, r[s(434)], e, c), { requestId: n }; }); } - async [a(3173)](t, r, e, s, n) { + async executeHandlerAsync(t, r, e, s, n) { const i = a; try { - const c = r(e, s, n[i(2111)]); + const c = r(e, s, n.signal); for await (const u of c) { - if (n[i(2111)][i(896)]) break; - await this[i(2487)]({ method: "sdppp/streamResponse", params: { requestId: t, data: u, error: null, finished: !1 } }); + if (n.signal[i(1363)]) break; + await this[i(1455)]({ method: i(2543), params: { requestId: t, data: u, error: null, finished: !1 } }); } - !n.signal[i(896)] && await this.notification({ method: i(3145), params: { requestId: t, data: null, error: null, finished: !0 } }); + !n[i(2364)][i(1363)] && await this.notification({ method: i(2543), params: { requestId: t, data: null, error: null, finished: !0 } }); } catch (c) { - !n[i(2111)][i(896)] && await this[i(2487)]({ method: i(3145), params: { requestId: t, data: null, error: c.message, finished: !0 } }); + !n[i(2364)].aborted && await this[i(1455)]({ method: i(2543), params: { requestId: t, data: null, error: c[i(2461)], finished: !0 } }); } finally { - this[i(1757)][i(875)](t); + this[i(1582)][i(2375)](t); } } - [a(3139)](t, r) { + [a(1146)](t, r) { const e = a; - this.streamRequestorHandlers[e(780)](t.shape[e(1893)].value, r); + this[e(276)][e(823)](t[e(1190)][e(2429)].value, r); } - async streamRequest(t, r, e) { + async [a(1368)](t, r, e) { const s = a; - this[s(1435)](e); - const n = await this[s(1909)](t), i = this[s(1334)](n), c = this[s(3198)](); - return this[s(3007)](i, c, n, e); + this.validateStreamRequestorRequest(e); + const n = await this[s(1650)](t), i = this[s(2815)](n), c = this[s(2406)](); + return this[s(436)](i, c, n, e); } - [a(1435)](t) { + [a(490)](t) { const r = a; - if (t && t.aborted) throw new Error(r(2353)); + if (t && t.aborted) throw new Error(r(2499)); } - async sendStreamRequestorRequest(t) { + async [a(1650)](t) { const r = a; - return (await this.request({ method: r(1916), params: { action: t[r(1893)], data: t[r(2663)] } }, S({ requestId: b() }))).requestId; + return (await this[r(1093)]({ method: r(2895), params: { action: t[r(2429)], data: t[r(1506)] } }, S({ requestId: b() })))[r(1508)]; } - [a(1334)](t) { - return this[a(1233)]; + initializeResponseQueue(t) { + return this[a(612)]; } - createStreamState() { + [a(2406)]() { return { finished: !1, error: null }; } - [a(3007)](t, r, e, s) { - const n = this; - return { async *[Symbol.asyncIterator]() { - const i = K; + createAsyncIterator(t, r, e, s) { + const n = a, i = this; + return { async *[Symbol[n(533)]]() { + const c = n; try { - for (; !r[i(2310)] && !r[i(490)]; ) { - if (s && s[i(896)]) - throw await n.request({ method: i(3257), params: { requestId: e } }, S({ success: Q() })), new Error(i(572)); - const c = await t[i(2900)](e); - if (c[i(490)]) - throw r[i(490)] = c.error, new Error(c[i(490)]); - if (c[i(2310)]) { - r.finished = !0; + for (; !r[c(1032)] && !r[c(1491)]; ) { + if (s && s[c(1363)]) + throw await i[c(1093)]({ method: c(1575), params: { requestId: e } }, S({ success: Q() })), new Error(c(1815)); + const u = await t[c(2906)](e); + if (u[c(1491)]) + throw r[c(1491)] = u[c(1491)], new Error(u[c(1491)]); + if (u[c(1032)]) { + r[c(1032)] = !0; break; } - c[i(2663)] !== null && (yield c.data); + u[c(1506)] !== null && (yield u.data); } } finally { - t[i(2397)](e); + t[c(714)](e); } } }; } - [a(1037)]() { - return this.runningRequests.size; - } - async [a(3161)](t) { - const r = a, e = this[r(1757)].get(t); - return e ? (e[r(1158)](), this[r(1757)].delete(t), !0) : !1; - } - [a(3178)]() { + getRunningRequestsCount() { const t = a; - for (const [r, e] of this.runningRequests) - e[t(1158)](); - this[t(1757)].clear(); + return this[t(1582)][t(2108)]; } - [a(2397)]() { + async [a(781)](t) { + const r = a, e = this[r(1582)][r(1507)](t); + return e ? (e.abort(), this[r(1582)][r(2375)](t), !0) : !1; + } + abortAllRequests() { const t = a; - super[t(2397)](), this[t(3178)](), this[t(1670)][t(2376)](); + for (const [r, e] of this[t(1582)]) + e[t(715)](); + this[t(1582)][t(277)](); + } + [a(714)]() { + const t = a; + super[t(714)](), this.abortAllRequests(), this[t(276)].clear(); } } -S({ id: b(), method: b(), params: ye()[a(2478)](), traceId: b()[a(2478)]() }), S({ id: b(), result: ye()[a(2478)](), error: S({ code: W(), message: b(), data: ye().optional() })[a(2478)]() }), S({ method: b(), params: ye()[a(2478)]() }), S({ method: xe(a(1916)), params: S({ action: b(), data: ye() }) }), S({ method: xe(a(3145)), params: S({ requestId: b(), data: ye()[a(2478)](), error: b().nullable().optional(), finished: Q()[a(2485)](!1) }) }), S({ method: xe("sdppp/abort"), params: S({ requestId: b() }) }), S({ method: xe("sdppp/broadcast"), params: S({ messageType: b(), message: ye() }) }); -function Ws(o) { +S({ id: b(), method: b(), params: ve()[a(2184)](), traceId: b()[a(2184)]() }), S({ id: b(), result: ve()[a(2184)](), error: S({ code: W(), message: b(), data: ve()[a(2184)]() })[a(2184)]() }), S({ method: b(), params: ve().optional() }), S({ method: xe(a(2895)), params: S({ action: b(), data: ve() }) }), S({ method: xe("sdppp/streamResponse"), params: S({ requestId: b(), data: ve()[a(2184)](), error: b()[a(3011)]().optional(), finished: Q().default(!1) }) }), S({ method: xe(a(1575)), params: S({ requestId: b() }) }), S({ method: xe(a(1183)), params: S({ messageType: b(), message: ve() }) }); +function zs(o) { const x = a; - return o && o.__esModule && Object[x(2587)][x(1315)][x(1522)](o, x(2485)) ? o[x(2485)] : o; + return o && o[x(926)] && Object.prototype.hasOwnProperty.call(o, x(2096)) ? o[x(2096)] : o; } -const H0 = S({ leftDistance: W(), topDistance: W(), rightDistance: W(), bottomDistance: W(), width: W(), height: W() }), F0 = { name: b(), uiWeight: W() }, Fo = S({ ...F0, outputType: xe(a(3222)), options: S({ required: Q(), maxCount: W()[a(2478)](), maskMode: Q()[a(2478)]() }) }), To = S({ ...F0, outputType: xe(a(2050)), options: S({ required: Q() }) }), No = S({ ...F0, outputType: xe(a(1361)), options: S({ required: Q() }) }), qo = S({ ...F0, outputType: xe("boolean"), options: S({ required: Q() }) }), Ao = S({ ...F0, outputType: xe(a(2665)), options: S({ required: Q(), min: W().optional(), max: W().optional(), step: W().optional(), random: Q()[a(2478)](), slider: Q()[a(2478)]() }) }), Oo = S({ ...F0, outputType: xe(a(2968)), options: S({ required: Q(), values: we(b()), labels: we(b())[a(2478)]() }) }), Do = S({ ...F0, outputType: xe(a(2754)), options: S({ required: Q(), values: we(b()) }) }), jo = S({ ...F0, outputType: xe(a(2737)), options: S({ required: Q() }) }), Mo = Vs(a(1394), [Fo, To, No, qo, Ao, Oo, Do, jo]), Lo = S({ id: b(), title: b(), widgets: we(Mo), uiWeightSum: W() }), $o = S({ widgetableID: b(), widgetablePath: b(), nodes: qe(b(), Lo), nodeIndexes: we(b()), note: b()[a(2478)](), options: qe(b(), ye()) }), Uo = S({ widgetableStructure: $o[a(2485)]({ widgetableID: "", widgetablePath: "", nodes: {}, note: "", options: {}, nodeIndexes: [] }), widgetableValues: qe(b(), we(ye()))[a(2485)]({}), widgetableErrors: qe(b(), b())[a(2485)]({}), queueSize: W()[a(2485)](0), lastError: b()[a(2485)](""), progress: W()[a(2485)](0), executingNodeTitle: b()[a(2485)](""), executingNodeID: b().default(""), graphProgress: W()[a(2485)](0), comfyUserToken: b()[a(2485)](""), comfyOrgLoggedIn: Q()[a(2485)](!1), comfyOrgAPIKey: b().default(""), comfyWSState: Pe([a(1880), a(1097)])[a(2485)](a(1880)), lastRunTime: W().default(0) }), zo = S({ bannerData: ye().optional(), refreshable: Q()[a(2485)](!1), backwardable: Q()[a(2485)](!1), loginable: Q()[a(2485)](!1), runnable: Q().default(!1), workBoundaries: qe(W(), H0)[a(2485)]({}), workBoundaryMaxSizes: qe(W(), W())[a(2485)]({}), isLogin: Q().default(!1), isGuest: Q()[a(2485)](!1), token: b()[a(2485)](""), refreshToken: b().default(""), userInfo: qe(b(), ye())[a(2485)]({}), loginMessage: b()[a(2485)](""), balance: W()[a(2644)]().default(null) }), Ho = S({ uname: b().default(""), activeDocumentID: W()[a(2485)](0), layers: we(S({ id: W(), name: b(), identify: b() }))[a(2485)]([]), actions: we(b())[a(2485)]([]), theme: b()[a(2485)](a(1155)), sdpppX: qe(b(), ye())[a(2485)]({}), locale: Pe([a(707), "en-US"])[a(2485)](a(2260)), comfyWebviewConnectStatus: Pe([a(1523), a(1880), a(833)])[a(2485)]("disconnected"), comfyWebviewLoadError: b()[a(2485)](""), comfyWebviewLoading: Q()[a(2485)](!1), comfyWebviewVersion: b()[a(2485)](""), comfyHTTPCode: W()[a(2485)](200), comfyURL: b().default(""), sdkWebviewFocusing: Q()[a(2485)](!1), sdkWebviewConnectStatus: Pe([a(1523), a(1880), "disconnected"])[a(2485)](a(833)), requestingLogin: Q()[a(2485)](!1), balance: W()[a(2644)]()[a(2485)](null), taskLastRun: W()[a(2485)](0), canvasStateID: W()[a(2478)](), selectionStateID: b().optional(), selectionBoundary: H0.nullable()[a(2478)]() }), Vo = { setNodeTitle: { requestSchema: S({ node_id: b(), title: b() }), responseSchema: S({ success: Q() }) }, reboot: { requestSchema: S({}), responseSchema: S({ success: Q(), error: b().optional() }) }, setComfyOrgAPIKey: { requestSchema: S({ api_key: b() }), responseSchema: S({ success: Q() }) }, logout: { requestSchema: S({}), responseSchema: S({ success: Q() }) }, uploadComfyImageFromUXP: { requestSchema: S({ fileName: b(), overwrite: Q()[a(2478)](), mimeType: b()[a(2478)](), dataBase64: b() }), responseSchema: S({ name: b() }) }, sdpppHandshake: { requestSchema: S({ hostVersion: b()[a(2478)]() }), responseSchema: S({ comfyVersion: b(), hostVersion: b()[a(2478)]() }) } }, Bo = S({ workflows: we(b()), error: b()[a(2478)]() }), Wo = S({ success: Q(), nodeErrors: qe(b())[a(2478)](), prompt_ids: we(b())[a(2478)](), images: we(S({ url: b(), thumbnail: b() }))[a(2478)]() }), Zo = { setWidgetValue: { requestSchema: S({ values: we(S({ nodeID: b(), widgetIndex: W(), value: qe(b(), ye()).or(b()).or(W()).or(Q()).or(we(ye())) })) }), responseSchema: S({ success: Q() }) }, openWorkflow: { requestSchema: S({ workflow_path: b(), reset: Q()[a(2485)](!1) }), responseSchema: S({ success: Q() }) }, openWorkflowJSON: { requestSchema: S({ workflow_content: qe(ye()), workflow_path: b() }), responseSchema: S({ success: Q() }) }, listWorkflows: { requestSchema: S({ listMode: b()[a(2478)](), sdpppID: b()[a(2478)](), sdpppToken: b().optional() }), responseSchema: Bo }, saveWorkflow: { requestSchema: S({ workflow_path: b(), from_sid: b()[a(2478)]() }), responseSchema: S({ success: Q() }) }, run: { requestSchema: S({ size: W(), mode: Pe([a(2012), a(706)])[a(2485)](a(2012)).optional() }), responseSchema: Wo, stream: !0 }, stopAll: { requestSchema: S({}), responseSchema: S({ success: Q() }) } }, Ko = S({ passwordPayload: S({ username: b(), password: b() }).or(S({ email: b(), password: b() })).or(S({ phone: b(), password: b() })).or(S({ identifier: b(), password: b() })) }).or(S({ passcodePayload: S({ phone: b(), code: b() }).or(S({ email: b(), code: b() })) })), Go = S({ passwordPayload: S({ username: b(), password: b() }).or(S({ email: b(), password: b() })).or(S({ phone: b(), password: b() })).or(S({ identifier: b(), password: b() })) }).or(S({ passcodePayload: S({ phone: b(), code: b() }).or(S({ email: b(), code: b() })) })), Jo = { backward: { requestSchema: J0(), responseSchema: S({ success: Q() }) }, refresh: { requestSchema: J0(), responseSchema: S({ success: Q() }) }, run: { requestSchema: J0(), responseSchema: S({ success: Q() }) }, authLogin: { requestSchema: Ko, responseSchema: S({ token: b(), refreshToken: b()[a(2478)](), userInfo: ye()[a(2478)]() }) }, authRegister: { requestSchema: Go, responseSchema: S({ success: Q() }) }, authSendPassCode: { requestSchema: S({ phone: b()[a(2478)](), email: b()[a(2478)]() }), responseSchema: S({ success: Q() }) }, authGetUserProfile: { requestSchema: S({ token: b() }), responseSchema: S({ userInfo: ye() }) }, authLogout: { requestSchema: J0(), responseSchema: S({ success: Q() }) }, authLoginByQRCode: { requestSchema: S({ sessionId: b().optional() }), responseSchema: S({ sessionId: b(), qrcodeURL: b(), status: Pe([a(782), a(793), a(3031), a(488), a(2910), a(490)]), token: b()[a(2478)](), refreshToken: b().optional(), userInfo: ye()[a(2478)]() }) }, fetchBalance: { requestSchema: J0(), responseSchema: S({ balance: W().nullable() }) } }; -S({ resource: b().optional(), thumbnail: b().optional(), width: W()[a(2478)](), height: W()[a(2478)](), mimeType: b().optional(), source: b()[a(2478)](), error: b()[a(2478)]() }), S({ boundary: Pe([a(1929), "curlayer", a(2363)]), content: Pe([a(1929), a(3022), a(2363)]).or(b()), imageSize: W(), imageQuality: W(), cropBySelection: Pe(["no", "positive", "negative"]), layer_identify: b().nullable()[a(2478)]() }), S({ content: Pe([a(1929), a(3022), "selection"]), reverse: Q(), imageSize: W(), layer_identify: b()[a(2644)]()[a(2478)]() }), S({ selection: Pe([a(1846), a(1051), a(2829), a(767), a(2799), a(2391), "curlayer_selection", a(1846)]), url: b(), source: b(), cropBySelection: Pe(["no", a(2797), a(2134)]) }); -const Qo = { downloadImage: { requestSchema: S({ url: b() }), responseSchema: S({ thumbnail: b()[a(2478)](), resource: b()[a(2478)](), width: W()[a(2478)](), height: W()[a(2478)](), error: b()[a(2478)]() }) }, getThumbnail: { requestSchema: S({ resource: b(), maxSize: W()[a(2478)]() }), responseSchema: S({ thumbnail: b()[a(2478)](), width: W()[a(2478)](), height: W().optional(), error: b()[a(2478)]() }) } }, Xo = { pptaskRun: { requestSchema: S({ locator: b(), payload: qe(b(), ye()).optional(), platformConfig: qe(b(), ye()).optional(), context: qe(b(), ye()).optional(), schema: qe(b(), ye())[a(2478)]() }), responseSchema: Ve([S({ ok: xe(!0), taskId: b(), result: ye() }), S({ ok: xe(!1), taskId: b()[a(2478)](), error: S({ message: b(), code: Ve([b(), W()])[a(2478)](), payload: ye()[a(2478)]() }) })]) }, pptaskCancel: { requestSchema: S({ taskId: b() }), responseSchema: S({ cancelled: Q(), error: b()[a(2478)]() }) } }, Yo = { manageGuides: { requestSchema: S({ action: Pe([a(1602), a(2376)]), rect: H0[a(2478)]() }), responseSchema: S({ success: Q() }) }, getBoundary: { requestSchema: S({ type: Pe([a(3022), a(2363)]) }), responseSchema: H0 }, getImage: { requestSchema: S({ boundary: Ve([Pe([a(1929), a(3022), "selection"]), H0]), content: Ve([Pe([a(1929), "curlayer"]), b()]), imageSize: W(), imageQuality: W(), cropBySelection: Pe(["no", a(2797), a(2134)]), SkipNonNormalLayer: Q(), layer_identify: b()[a(2644)]().optional() }), responseSchema: S({ resource: b().optional(), thumbnail: b().optional(), width: W()[a(2478)](), height: W()[a(2478)](), mimeType: b()[a(2478)](), source: b()[a(2478)](), error: b().optional() }) }, getMask: { requestSchema: S({ boundary: Ve([Pe([a(1929), a(3022), a(2363)]), H0]), content: Pe([a(1929), a(3022), a(2363)]), reverse: Q(), imageSize: W(), layer_identify: b()[a(2644)]()[a(2478)]() }), responseSchema: S({ resource: b()[a(2478)](), thumbnail: b().optional(), width: W().optional(), height: W()[a(2478)](), mimeType: b()[a(2478)](), source: b()[a(2478)](), error: b()[a(2478)]() }) }, getCurrentLayerIdentify: { requestSchema: S({}), responseSchema: S({ layer_identify: b().nullable() }) }, importImage: { requestSchema: S({ resource: b(), boundaryUri: b()[a(2644)]().optional(), type: Pe([a(1929), a(3022), a(2295), "smartobject"]), sourceWidth: W()[a(2478)](), sourceHeight: W()[a(2478)](), maskUri: b()[a(2644)]()[a(2478)]() }), responseSchema: S({ success: Q(), layers: we(S({ identify: b() }))[a(2478)](), message: b()[a(2478)](), error: b()[a(2478)]() }) }, selectFromMaskUri: { requestSchema: S({ maskUri: b(), documentId: W().optional() }), responseSchema: S({ success: Q() }) }, selectFromBoundaryUri: { requestSchema: S({ boundaryUri: b(), documentId: W()[a(2478)]() }), responseSchema: S({ success: Q(), error: b()[a(2478)]() }) }, applyMaskToImage: { requestSchema: S({ imageResource: b(), maskResource: b(), invertMask: Q().optional() }), responseSchema: S({ resource: b(), thumbnail: b()[a(2478)](), width: W(), height: W(), mimeType: b() }) }, showBoundarySelectionDialog: { requestSchema: S({ additionalData: qe(ye())[a(2478)]() }), responseSchema: S({ boundary: Pe([a(1929), a(3022), a(2363)])[a(2478)](), cancelled: Q()[a(2478)]() }) }, selectImageSource: { requestSchema: S({ additionalData: qe(ye())[a(2478)]() }), responseSchema: S({ action: Pe([a(1377), a(533)])[a(2478)](), params: ye()[a(2478)](), cancelled: Q()[a(2478)]() }) }, selectContentSource: { requestSchema: S({ additionalData: qe(ye())[a(2478)]() }).optional(), responseSchema: S({ resource: b().optional(), fileName: b()[a(2478)](), mimeType: b()[a(2478)](), size: W()[a(2478)](), layerIdentify: b()[a(2478)](), cancelled: Q()[a(2478)]() }) } }, Hx = S({ taskId: b(), taskName: b(), status: Pe([a(2018), a(2312), "failed", a(1287)]), currentStep: W()[a(2478)](), totalSteps: W()[a(2478)](), stepDescription: b()[a(2478)](), progressPercentage: W()[a(521)](0).max(100)[a(2478)](), startTime: b(), endTime: b()[a(2478)](), error: b()[a(2478)](), errorCode: b()[a(2478)](), result: ye()[a(2478)](), metadata: qe(ye())[a(2478)]() }), Vx = S({ success: Q(), error: b()[a(2478)]() }), ei = { taskAdd: { requestSchema: Hx, responseSchema: Vx }, taskUpdate: { requestSchema: Hx[a(537)]()[a(2438)]({ taskId: !0 }), responseSchema: Vx }, taskRemove: { requestSchema: Hx[a(3117)]({ taskId: !0 }), responseSchema: Vx } }, xi = { log: { requestSchema: S({ level: Pe([a(1635), a(1241), "warn", a(490)]), messages: we(b()) }), responseSchema: S({}) }, openExternalLink: { requestSchema: S({ url: b() }), responseSchema: S({ error: b().optional() }) }, getStorage: { requestSchema: S({ key: b() }), responseSchema: S({ value: b(), error: b()[a(2478)]() }) }, setStorage: { requestSchema: S({ key: b(), value: b() }), responseSchema: S({ error: b().optional() }) }, removeStorage: { requestSchema: S({ key: b() }), responseSchema: S({ error: b()[a(2478)]() }) }, keyboardAction: { requestSchema: S({ keycode: b() }), responseSchema: S({}) }, setComfyWebviewURL: { requestSchema: S({ url: b() }), responseSchema: S({}) }, getImageBase64: { requestSchema: S({ token: b() }), responseSchema: S({ base64: b()[a(2478)](), mimeType: b()[a(2478)](), error: b()[a(2478)]() }) }, uploadComfyImage: { requestSchema: S({ uploadInput: S({ type: Ve([xe(a(1419)), xe(a(1818)), xe(a(2988))]), resource: ye(), fileName: b(), mimeType: b()[a(2478)](), resourceId: b().optional() }), overwrite: Q().optional()[a(2485)](!0) }), responseSchema: S({ name: b() }) }, pickLocalFile: { requestSchema: S({ acceptExtensions: we(b()).optional(), kind: Pe([a(705), a(1137)])[a(2478)]() })[a(2478)](), responseSchema: S({ cancelled: Q()[a(2478)](), resource: b()[a(2478)](), fileName: b()[a(2478)](), mimeType: b()[a(2478)](), size: W()[a(2478)](), error: b()[a(2478)]() }) }, proxiedFetch: { requestSchema: S({ url: b(), method: b()[a(2478)](), headers: qe(b())[a(2478)](), body: ye()[a(2478)](), bodyType: Pe([a(1207), a(2962), a(2078)])[a(2478)]() }), responseSchema: S({ success: Q(), status: W().optional(), statusText: b().optional(), headers: qe(b())[a(2478)](), data: ye()[a(2478)](), error: b().optional() }) }, openaiImageEdit: { requestSchema: S({ apiKey: b(), baseURL: b(), imageToken: b(), prompt: b(), model: b() }), responseSchema: S({ success: Q(), imageUrl: b()[a(2478)](), apiTime: W().optional(), error: b().optional() }) }, geminiImageGenerate: { requestSchema: S({ apiKey: b(), baseURL: b()[a(2478)](), imageInputs: we(b())[a(2478)](), imageInput: b().optional(), imageInputType: Pe([a(1818), "base64"]), prompt: b() }), responseSchema: S({ success: Q(), imageUrl: b()[a(2478)](), apiTime: W()[a(2478)](), error: b()[a(2478)]() }) } }, ti = Ve([b(), zx(Uint8Array), zx(ArrayBuffer), zx(DataView)]), ai = S({ buffer: ti, name: b()[a(2644)]()[a(2478)](), mime: b()[a(2644)]().optional(), width: W().nullable()[a(2478)](), height: W()[a(2644)]()[a(2478)](), thumbnail: b()[a(2644)]()[a(2478)](), meta: qe(k0())[a(2478)]() }), ri = { "fileResource.createFromExternal": { requestSchema: S({ url: b(), fileName: b()[a(2478)]() }), responseSchema: S({ resource: b()[a(2478)](), thumbnail: b()[a(2478)](), width: W()[a(2478)](), height: W()[a(2478)](), mime: b()[a(2478)](), mimeType: b()[a(2478)](), error: b()[a(2478)]() }) }, "fileResource.createFromLocal": { requestSchema: S({ types: we(S({ description: b()[a(2478)](), extensions: we(b()).optional() }))[a(2478)]() }), responseSchema: S({ resource: b()[a(2478)](), thumbnail: b()[a(2478)](), width: W()[a(2478)](), height: W()[a(2478)](), mime: b()[a(2478)](), error: b()[a(2478)]() }) }, "fileResource.createFromBuffer": { requestSchema: S({ files: we(ai).min(1) }), responseSchema: S({ resource: b()[a(2478)](), thumbnail: b()[a(2478)](), width: W().optional(), height: W()[a(2478)](), mime: b()[a(2478)](), error: b().optional() }) }, "fileResource.createByContent": { requestSchema: S({ contentUri: b(), boundaryUri: b()[a(2478)](), options: qe(k0())[a(2478)]() }), responseSchema: S({ resource: b().optional(), thumbnail: b()[a(2478)](), width: W()[a(2478)](), height: W().optional(), mime: b()[a(2478)](), error: b()[a(2478)]() }) }, "fileResource.createByMask": { requestSchema: S({ maskUri: b(), boundaryUri: b()[a(2478)](), options: qe(k0())[a(2478)]() }), responseSchema: S({ resource: b()[a(2478)](), thumbnail: b()[a(2478)](), width: W()[a(2478)](), height: W()[a(2478)](), mime: b()[a(2478)](), error: b()[a(2478)]() }) }, "fileResource.combineByCBM": { requestSchema: S({ contentUri: b(), boundaryUri: b(), maskUri: b()[a(2644)]()[a(2478)](), options: qe(k0()).optional(), thumbnail: Q()[a(2478)]() }), responseSchema: S({ resource: b()[a(2478)](), thumbnail: b()[a(2478)](), width: W()[a(2478)](), height: W()[a(2478)](), mime: b()[a(2478)](), error: b()[a(2478)]() }) }, "fileResource.delete": { requestSchema: S({ resources: we(b()) }), responseSchema: S({ error: b()[a(2478)]() }) }, "fileResource.thumbnail": { requestSchema: S({ resource: b(), maxSize: W()[a(2478)]() }), responseSchema: S({ thumbnail: b()[a(2478)](), width: W()[a(2478)](), height: W()[a(2478)](), error: b()[a(2478)]() }) }, "fileResource.saveAs": { requestSchema: S({ resources: we(b()) }), responseSchema: S({ error: b()[a(2478)]() }) }, "boundary.normalize": { requestSchema: S({ boundary: b() }), responseSchema: S({ boundary: b().optional(), error: b()[a(2478)]() }) }, "layer.resolve": { requestSchema: S({ uri: b(), type: Pe([a(3170), a(994)]) }), responseSchema: S({ uri: b()[a(2478)](), error: b()[a(2478)]() }) } }, si = ko({ nodes: { sdk: { store: zo, actions: { ...Jo } }, uxp: { store: Ho, actions: { ...Qo, ...ri, ...Xo, ...xi, ...ei, ...Yo } }, comfy: { store: Uo, actions: { ...Zo, ...Vo } } }, edges: [[a(2422), a(2062)], ["comfy", a(2062)]] }), Ie = si[a(1456)]("comfy"); -globalThis[a(1790)] = Ie; -var hx = { exports: {} }, Bx, La; -function ni() { - if (La) return Bx; - La = 1; +const z0 = S({ leftDistance: W(), topDistance: W(), rightDistance: W(), bottomDistance: W(), width: W(), height: W() }), _0 = { name: b(), uiWeight: W() }, Eo = S({ ..._0, outputType: xe(a(2477)), options: S({ required: Q(), maxCount: W()[a(2184)](), maskMode: Q().optional() }) }), Ro = S({ ..._0, outputType: xe("masks"), options: S({ required: Q() }) }), Co = S({ ..._0, outputType: xe(a(2028)), options: S({ required: Q() }) }), Fo = S({ ..._0, outputType: xe(a(2903)), options: S({ required: Q() }) }), _o = S({ ..._0, outputType: xe(a(867)), options: S({ required: Q(), min: W()[a(2184)](), max: W().optional(), step: W().optional(), random: Q()[a(2184)](), slider: Q()[a(2184)]() }) }), No = S({ ..._0, outputType: xe(a(2748)), options: S({ required: Q(), values: Se(b()), labels: Se(b()).optional() }) }), To = S({ ..._0, outputType: xe(a(357)), options: S({ required: Q(), values: Se(b()) }) }), qo = S({ ..._0, outputType: xe(a(2772)), options: S({ required: Q() }) }), Ao = $s(a(626), [Eo, Ro, Co, Fo, _o, No, To, qo]), Oo = S({ id: b(), title: b(), widgets: Se(Ao), uiWeightSum: W() }), Do = S({ widgetableID: b(), widgetablePath: b(), nodes: qe(b(), Oo), nodeIndexes: Se(b()), note: b()[a(2184)](), options: qe(b(), ve()) }), jo = S({ widgetableStructure: Do.default({ widgetableID: "", widgetablePath: "", nodes: {}, note: "", options: {}, nodeIndexes: [] }), widgetableValues: qe(b(), Se(ve())).default({}), widgetableErrors: qe(b(), b()).default({}), queueSize: W()[a(2096)](0), lastError: b()[a(2096)](""), progress: W()[a(2096)](0), executingNodeTitle: b()[a(2096)](""), executingNodeID: b()[a(2096)](""), graphProgress: W()[a(2096)](0), comfyUserToken: b()[a(2096)](""), comfyOrgLoggedIn: Q().default(!1), comfyOrgAPIKey: b()[a(2096)](""), comfyWSState: Ie([a(698), a(2285)]).default(a(698)), lastRunTime: W()[a(2096)](0) }), Lo = S({ bannerData: ve().optional(), refreshable: Q()[a(2096)](!1), backwardable: Q().default(!1), loginable: Q()[a(2096)](!1), runnable: Q().default(!1), workBoundaries: qe(W(), z0)[a(2096)]({}), workBoundaryMaxSizes: qe(W(), W()).default({}), isLogin: Q()[a(2096)](!1), isGuest: Q()[a(2096)](!1), token: b()[a(2096)](""), refreshToken: b()[a(2096)](""), userInfo: qe(b(), ve())[a(2096)]({}), loginMessage: b()[a(2096)](""), balance: W().nullable().default(null) }), Mo = S({ uname: b()[a(2096)](""), activeDocumentID: W()[a(2096)](0), layers: Se(S({ id: W(), name: b(), identify: b() }))[a(2096)]([]), actions: Se(b())[a(2096)]([]), theme: b().default(a(2392)), sdpppX: qe(b(), ve()).default({}), locale: Ie([a(1528), "en-US"])[a(2096)](a(2650)), comfyWebviewConnectStatus: Ie([a(565), a(698), a(1138)])[a(2096)]("disconnected"), comfyWebviewLoadError: b()[a(2096)](""), comfyWebviewLoading: Q().default(!1), comfyWebviewVersion: b()[a(2096)](""), comfyHTTPCode: W()[a(2096)](200), comfyURL: b()[a(2096)](""), sdkWebviewFocusing: Q()[a(2096)](!1), sdkWebviewConnectStatus: Ie([a(565), a(698), a(1138)]).default(a(1138)), requestingLogin: Q()[a(2096)](!1), balance: W().nullable()[a(2096)](null), taskLastRun: W()[a(2096)](0), canvasStateID: W()[a(2184)](), selectionStateID: b()[a(2184)](), selectionBoundary: z0.nullable()[a(2184)]() }), $o = { setNodeTitle: { requestSchema: S({ node_id: b(), title: b() }), responseSchema: S({ success: Q() }) }, reboot: { requestSchema: S({}), responseSchema: S({ success: Q(), error: b()[a(2184)]() }) }, setComfyOrgAPIKey: { requestSchema: S({ api_key: b() }), responseSchema: S({ success: Q() }) }, logout: { requestSchema: S({}), responseSchema: S({ success: Q() }) }, uploadComfyImageFromUXP: { requestSchema: S({ fileName: b(), overwrite: Q()[a(2184)](), mimeType: b()[a(2184)](), dataBase64: b() }), responseSchema: S({ name: b() }) }, sdpppHandshake: { requestSchema: S({ hostVersion: b().optional() }), responseSchema: S({ comfyVersion: b(), hostVersion: b()[a(2184)]() }) } }, Uo = S({ workflows: Se(b()), error: b()[a(2184)]() }), zo = S({ success: Q(), nodeErrors: qe(b())[a(2184)](), prompt_ids: Se(b())[a(2184)](), images: Se(S({ url: b(), thumbnail: b() }))[a(2184)]() }), Ho = { setWidgetValue: { requestSchema: S({ values: Se(S({ nodeID: b(), widgetIndex: W(), value: qe(b(), ve()).or(b()).or(W()).or(Q()).or(Se(ve())) })) }), responseSchema: S({ success: Q() }) }, openWorkflow: { requestSchema: S({ workflow_path: b(), reset: Q().default(!1) }), responseSchema: S({ success: Q() }) }, openWorkflowJSON: { requestSchema: S({ workflow_content: qe(ve()), workflow_path: b() }), responseSchema: S({ success: Q() }) }, listWorkflows: { requestSchema: S({ listMode: b()[a(2184)](), sdpppID: b()[a(2184)](), sdpppToken: b()[a(2184)]() }), responseSchema: Uo }, saveWorkflow: { requestSchema: S({ workflow_path: b(), from_sid: b().optional() }), responseSchema: S({ success: Q() }) }, run: { requestSchema: S({ size: W(), mode: Ie(["app", a(2753)])[a(2096)](a(2837)).optional() }), responseSchema: zo, stream: !0 }, stopAll: { requestSchema: S({}), responseSchema: S({ success: Q() }) } }, Vo = S({ passwordPayload: S({ username: b(), password: b() }).or(S({ email: b(), password: b() })).or(S({ phone: b(), password: b() })).or(S({ identifier: b(), password: b() })) }).or(S({ passcodePayload: S({ phone: b(), code: b() }).or(S({ email: b(), code: b() })) })), Bo = S({ passwordPayload: S({ username: b(), password: b() }).or(S({ email: b(), password: b() })).or(S({ phone: b(), password: b() })).or(S({ identifier: b(), password: b() })) }).or(S({ passcodePayload: S({ phone: b(), code: b() }).or(S({ email: b(), code: b() })) })), Wo = { backward: { requestSchema: G0(), responseSchema: S({ success: Q() }) }, refresh: { requestSchema: G0(), responseSchema: S({ success: Q() }) }, run: { requestSchema: G0(), responseSchema: S({ success: Q() }) }, authLogin: { requestSchema: Vo, responseSchema: S({ token: b(), refreshToken: b()[a(2184)](), userInfo: ve()[a(2184)]() }) }, authRegister: { requestSchema: Bo, responseSchema: S({ success: Q() }) }, authSendPassCode: { requestSchema: S({ phone: b()[a(2184)](), email: b().optional() }), responseSchema: S({ success: Q() }) }, authGetUserProfile: { requestSchema: S({ token: b() }), responseSchema: S({ userInfo: ve() }) }, authLogout: { requestSchema: G0(), responseSchema: S({ success: Q() }) }, authLoginByQRCode: { requestSchema: S({ sessionId: b()[a(2184)]() }), responseSchema: S({ sessionId: b(), qrcodeURL: b(), status: Ie([a(1471), a(1789), a(2186), a(1242), "expired", "error"]), token: b()[a(2184)](), refreshToken: b()[a(2184)](), userInfo: ve()[a(2184)]() }) }, fetchBalance: { requestSchema: G0(), responseSchema: S({ balance: W()[a(3011)]() }) } }; +S({ resource: b()[a(2184)](), thumbnail: b().optional(), width: W()[a(2184)](), height: W()[a(2184)](), mimeType: b()[a(2184)](), source: b()[a(2184)](), error: b()[a(2184)]() }), S({ boundary: Ie([a(798), a(1765), "selection"]), content: Ie([a(798), a(1765), a(1881)]).or(b()), imageSize: W(), imageQuality: W(), cropBySelection: Ie(["no", "positive", a(2632)]), layer_identify: b()[a(3011)]().optional() }), S({ content: Ie(["canvas", a(1765), a(1881)]), reverse: Q(), imageSize: W(), layer_identify: b().nullable().optional() }), S({ selection: Ie([a(1868), a(1942), a(1385), a(1131), "curlayer_canvas", "curlayer_curlayer", a(2656), a(1868)]), url: b(), source: b(), cropBySelection: Ie(["no", a(778), a(2632)]) }); +const Ko = { downloadImage: { requestSchema: S({ url: b() }), responseSchema: S({ thumbnail: b()[a(2184)](), resource: b()[a(2184)](), width: W()[a(2184)](), height: W()[a(2184)](), error: b().optional() }) }, getThumbnail: { requestSchema: S({ resource: b(), maxSize: W().optional() }), responseSchema: S({ thumbnail: b().optional(), width: W()[a(2184)](), height: W().optional(), error: b()[a(2184)]() }) } }, Zo = { pptaskRun: { requestSchema: S({ locator: b(), payload: qe(b(), ve()).optional(), platformConfig: qe(b(), ve())[a(2184)](), context: qe(b(), ve())[a(2184)](), schema: qe(b(), ve()).optional() }), responseSchema: Ve([S({ ok: xe(!0), taskId: b(), result: ve() }), S({ ok: xe(!1), taskId: b()[a(2184)](), error: S({ message: b(), code: Ve([b(), W()])[a(2184)](), payload: ve()[a(2184)]() }) })]) }, pptaskCancel: { requestSchema: S({ taskId: b() }), responseSchema: S({ cancelled: Q(), error: b().optional() }) } }, Go = { manageGuides: { requestSchema: S({ action: Ie(["create", a(277)]), rect: z0.optional() }), responseSchema: S({ success: Q() }) }, getBoundary: { requestSchema: S({ type: Ie([a(1765), a(1881)]) }), responseSchema: z0 }, getImage: { requestSchema: S({ boundary: Ve([Ie([a(798), "curlayer", a(1881)]), z0]), content: Ve([Ie([a(798), a(1765)]), b()]), imageSize: W(), imageQuality: W(), cropBySelection: Ie(["no", a(778), a(2632)]), SkipNonNormalLayer: Q(), layer_identify: b()[a(3011)]()[a(2184)]() }), responseSchema: S({ resource: b()[a(2184)](), thumbnail: b()[a(2184)](), width: W().optional(), height: W()[a(2184)](), mimeType: b()[a(2184)](), source: b()[a(2184)](), error: b()[a(2184)]() }) }, getMask: { requestSchema: S({ boundary: Ve([Ie([a(798), a(1765), "selection"]), z0]), content: Ie([a(798), "curlayer", "selection"]), reverse: Q(), imageSize: W(), layer_identify: b()[a(3011)]()[a(2184)]() }), responseSchema: S({ resource: b().optional(), thumbnail: b()[a(2184)](), width: W()[a(2184)](), height: W()[a(2184)](), mimeType: b()[a(2184)](), source: b()[a(2184)](), error: b()[a(2184)]() }) }, getCurrentLayerIdentify: { requestSchema: S({}), responseSchema: S({ layer_identify: b()[a(3011)]() }) }, importImage: { requestSchema: S({ resource: b(), boundaryUri: b()[a(3011)]()[a(2184)](), type: Ie([a(798), a(1765), a(519), "smartobject"]), sourceWidth: W()[a(2184)](), sourceHeight: W()[a(2184)](), maskUri: b()[a(3011)]()[a(2184)]() }), responseSchema: S({ success: Q(), layers: Se(S({ identify: b() }))[a(2184)](), message: b()[a(2184)](), error: b().optional() }) }, selectFromMaskUri: { requestSchema: S({ maskUri: b(), documentId: W()[a(2184)]() }), responseSchema: S({ success: Q() }) }, selectFromBoundaryUri: { requestSchema: S({ boundaryUri: b(), documentId: W()[a(2184)]() }), responseSchema: S({ success: Q(), error: b()[a(2184)]() }) }, applyMaskToImage: { requestSchema: S({ imageResource: b(), maskResource: b(), invertMask: Q()[a(2184)]() }), responseSchema: S({ resource: b(), thumbnail: b().optional(), width: W(), height: W(), mimeType: b() }) }, showBoundarySelectionDialog: { requestSchema: S({ additionalData: qe(ve())[a(2184)]() }), responseSchema: S({ boundary: Ie([a(798), "curlayer", "selection"]).optional(), cancelled: Q()[a(2184)]() }) }, selectImageSource: { requestSchema: S({ additionalData: qe(ve())[a(2184)]() }), responseSchema: S({ action: Ie([a(1396), a(454)]).optional(), params: ve()[a(2184)](), cancelled: Q()[a(2184)]() }) }, selectContentSource: { requestSchema: S({ additionalData: qe(ve())[a(2184)]() })[a(2184)](), responseSchema: S({ resource: b()[a(2184)](), fileName: b()[a(2184)](), mimeType: b()[a(2184)](), size: W()[a(2184)](), layerIdentify: b()[a(2184)](), cancelled: Q()[a(2184)]() }) } }, Hx = S({ taskId: b(), taskName: b(), status: Ie([a(1329), "completed", a(1639), a(2385)]), currentStep: W()[a(2184)](), totalSteps: W()[a(2184)](), stepDescription: b()[a(2184)](), progressPercentage: W()[a(316)](0).max(100)[a(2184)](), startTime: b(), endTime: b()[a(2184)](), error: b()[a(2184)](), errorCode: b().optional(), result: ve()[a(2184)](), metadata: qe(ve())[a(2184)]() }), Vx = S({ success: Q(), error: b()[a(2184)]() }), Jo = { taskAdd: { requestSchema: Hx, responseSchema: Vx }, taskUpdate: { requestSchema: Hx[a(2193)]().required({ taskId: !0 }), responseSchema: Vx }, taskRemove: { requestSchema: Hx[a(1824)]({ taskId: !0 }), responseSchema: Vx } }, Qo = { log: { requestSchema: S({ level: Ie([a(2127), a(1043), "warn", a(1491)]), messages: Se(b()) }), responseSchema: S({}) }, openExternalLink: { requestSchema: S({ url: b() }), responseSchema: S({ error: b()[a(2184)]() }) }, getStorage: { requestSchema: S({ key: b() }), responseSchema: S({ value: b(), error: b().optional() }) }, setStorage: { requestSchema: S({ key: b(), value: b() }), responseSchema: S({ error: b()[a(2184)]() }) }, removeStorage: { requestSchema: S({ key: b() }), responseSchema: S({ error: b()[a(2184)]() }) }, keyboardAction: { requestSchema: S({ keycode: b() }), responseSchema: S({}) }, setComfyWebviewURL: { requestSchema: S({ url: b() }), responseSchema: S({}) }, getImageBase64: { requestSchema: S({ token: b() }), responseSchema: S({ base64: b()[a(2184)](), mimeType: b()[a(2184)](), error: b().optional() }) }, uploadComfyImage: { requestSchema: S({ uploadInput: S({ type: Ve([xe(a(1497)), xe(a(1838)), xe("resource")]), resource: ve(), fileName: b(), mimeType: b().optional(), resourceId: b()[a(2184)]() }), overwrite: Q().optional()[a(2096)](!0) }), responseSchema: S({ name: b() }) }, pickLocalFile: { requestSchema: S({ acceptExtensions: Se(b()).optional(), kind: Ie([a(2009), "file"])[a(2184)]() })[a(2184)](), responseSchema: S({ cancelled: Q()[a(2184)](), resource: b()[a(2184)](), fileName: b()[a(2184)](), mimeType: b()[a(2184)](), size: W()[a(2184)](), error: b()[a(2184)]() }) }, proxiedFetch: { requestSchema: S({ url: b(), method: b()[a(2184)](), headers: qe(b())[a(2184)](), body: ve()[a(2184)](), bodyType: Ie([a(780), a(1081), a(1633)]).optional() }), responseSchema: S({ success: Q(), status: W()[a(2184)](), statusText: b()[a(2184)](), headers: qe(b()).optional(), data: ve()[a(2184)](), error: b()[a(2184)]() }) }, openaiImageEdit: { requestSchema: S({ apiKey: b(), baseURL: b(), imageToken: b(), prompt: b(), model: b() }), responseSchema: S({ success: Q(), imageUrl: b()[a(2184)](), apiTime: W()[a(2184)](), error: b().optional() }) }, geminiImageGenerate: { requestSchema: S({ apiKey: b(), baseURL: b()[a(2184)](), imageInputs: Se(b())[a(2184)](), imageInput: b().optional(), imageInputType: Ie([a(1838), "base64"]), prompt: b() }), responseSchema: S({ success: Q(), imageUrl: b()[a(2184)](), apiTime: W()[a(2184)](), error: b()[a(2184)]() }) } }, Xo = Ve([b(), zx(Uint8Array), zx(ArrayBuffer), zx(DataView)]), Yo = S({ buffer: Xo, name: b()[a(3011)]().optional(), mime: b()[a(3011)]().optional(), width: W()[a(3011)]()[a(2184)](), height: W()[a(3011)]().optional(), thumbnail: b()[a(3011)]()[a(2184)](), meta: qe(k0())[a(2184)]() }), ei = { "fileResource.createFromExternal": { requestSchema: S({ url: b(), fileName: b()[a(2184)]() }), responseSchema: S({ resource: b()[a(2184)](), thumbnail: b()[a(2184)](), width: W().optional(), height: W()[a(2184)](), mime: b()[a(2184)](), mimeType: b()[a(2184)](), error: b()[a(2184)]() }) }, "fileResource.createFromLocal": { requestSchema: S({ types: Se(S({ description: b()[a(2184)](), extensions: Se(b())[a(2184)]() }))[a(2184)]() }), responseSchema: S({ resource: b()[a(2184)](), thumbnail: b()[a(2184)](), width: W()[a(2184)](), height: W().optional(), mime: b().optional(), error: b()[a(2184)]() }) }, "fileResource.createFromBuffer": { requestSchema: S({ files: Se(Yo).min(1) }), responseSchema: S({ resource: b().optional(), thumbnail: b()[a(2184)](), width: W()[a(2184)](), height: W().optional(), mime: b()[a(2184)](), error: b()[a(2184)]() }) }, "fileResource.createByContent": { requestSchema: S({ contentUri: b(), boundaryUri: b()[a(2184)](), options: qe(k0())[a(2184)]() }), responseSchema: S({ resource: b().optional(), thumbnail: b()[a(2184)](), width: W()[a(2184)](), height: W()[a(2184)](), mime: b()[a(2184)](), error: b()[a(2184)]() }) }, "fileResource.createByMask": { requestSchema: S({ maskUri: b(), boundaryUri: b()[a(2184)](), options: qe(k0())[a(2184)]() }), responseSchema: S({ resource: b().optional(), thumbnail: b()[a(2184)](), width: W().optional(), height: W()[a(2184)](), mime: b()[a(2184)](), error: b()[a(2184)]() }) }, "fileResource.combineByCBM": { requestSchema: S({ contentUri: b(), boundaryUri: b(), maskUri: b()[a(3011)]()[a(2184)](), options: qe(k0()).optional(), thumbnail: Q()[a(2184)]() }), responseSchema: S({ resource: b().optional(), thumbnail: b()[a(2184)](), width: W()[a(2184)](), height: W()[a(2184)](), mime: b()[a(2184)](), error: b()[a(2184)]() }) }, "fileResource.delete": { requestSchema: S({ resources: Se(b()) }), responseSchema: S({ error: b().optional() }) }, "fileResource.thumbnail": { requestSchema: S({ resource: b(), maxSize: W().optional() }), responseSchema: S({ thumbnail: b()[a(2184)](), width: W().optional(), height: W()[a(2184)](), error: b()[a(2184)]() }) }, "fileResource.saveAs": { requestSchema: S({ resources: Se(b()) }), responseSchema: S({ error: b()[a(2184)]() }) }, "boundary.normalize": { requestSchema: S({ boundary: b() }), responseSchema: S({ boundary: b().optional(), error: b()[a(2184)]() }) }, "layer.resolve": { requestSchema: S({ uri: b(), type: Ie(["content", "mask"]) }), responseSchema: S({ uri: b()[a(2184)](), error: b()[a(2184)]() }) } }, xi = yo({ nodes: { sdk: { store: Lo, actions: { ...Wo } }, uxp: { store: Mo, actions: { ...Ko, ...ei, ...Zo, ...Qo, ...Jo, ...Go } }, comfy: { store: jo, actions: { ...Ho, ...$o } } }, edges: [[a(861), a(1020)], ["comfy", "uxp"]] }), Ee = xi.joinAs(a(1631)); +globalThis[a(303)] = Ee; +var hx = { exports: {} }, Bx, Ma; +function ti() { + if (Ma) return Bx; + Ma = 1; var o = 1e3, x = o * 60, t = x * 60, r = t * 24, e = r * 7, s = r * 365.25; - Bx = function(f, l) { - const d = K; + Bx = function(d, l) { + const f = Z; l = l || {}; - var g = typeof f; - if (g === "string" && f.length > 0) return n(f); - if (g === d(2665) && isFinite(f)) return l[d(1649)] ? c(f) : i(f); - throw new Error(d(2889) + JSON.stringify(f)); + var g = typeof d; + if (g === f(2028) && d[f(1148)] > 0) return n(d); + if (g === f(867) && isFinite(d)) return l[f(1625)] ? c(d) : i(d); + throw new Error(f(272) + JSON.stringify(d)); }; - function n(f) { - const l = K; - if (f = String(f), !(f[l(2710)] > 100)) { - var d = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f); - if (d) { - var g = parseFloat(d[1]), h = (d[2] || "ms")[l(1945)](); + function n(d) { + const l = Z; + if (d = String(d), !(d[l(1148)] > 100)) { + var f = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i[l(1380)](d); + if (f) { + var g = parseFloat(f[1]), h = (f[2] || "ms").toLowerCase(); switch (h) { - case l(935): - case l(2342): - case "yrs": + case l(590): + case l(2884): + case l(1270): case "yr": case "y": return g * s; - case l(3086): - case l(3125): + case l(2091): + case l(1954): case "w": return g * e; - case l(2518): - case l(1332): + case l(2423): + case l(1013): case "d": return g * r; - case "hours": - case l(2668): - case l(3219): + case l(3014): + case "hour": + case l(1369): case "hr": case "h": return g * t; - case l(504): - case l(2064): - case l(2923): - case "min": + case "minutes": + case l(1256): + case l(531): + case l(316): case "m": return g * x; - case l(645): - case l(1708): - case l(2481): - case l(2553): + case l(1120): + case l(818): + case l(662): + case l(1875): case "s": return g * o; - case l(1324): - case l(2103): - case l(646): - case "msec": + case l(1701): + case l(2147): + case "msecs": + case l(380): case "ms": return g; default: @@ -3039,160 +3047,160 @@ function ni() { } } } - function i(f) { - const l = K; - var d = Math.abs(f); - return d >= r ? Math.round(f / r) + "d" : d >= t ? Math[l(2607)](f / t) + "h" : d >= x ? Math[l(2607)](f / x) + "m" : d >= o ? Math[l(2607)](f / o) + "s" : f + "ms"; + function i(d) { + const l = Z; + var f = Math[l(602)](d); + return f >= r ? Math.round(d / r) + "d" : f >= t ? Math[l(2944)](d / t) + "h" : f >= x ? Math[l(2944)](d / x) + "m" : f >= o ? Math.round(d / o) + "s" : d + "ms"; } - function c(f) { - const l = K; - var d = Math[l(2592)](f); - return d >= r ? u(f, d, r, l(1332)) : d >= t ? u(f, d, t, l(2668)) : d >= x ? u(f, d, x, l(2064)) : d >= o ? u(f, d, o, l(1708)) : f + l(2445); + function c(d) { + const l = Z; + var f = Math.abs(d); + return f >= r ? u(d, f, r, l(1013)) : f >= t ? u(d, f, t, l(1494)) : f >= x ? u(d, f, x, l(1256)) : f >= o ? u(d, f, o, l(818)) : d + l(1280); } - function u(f, l, d, g) { - const h = K; - var m = l >= d * 1.5; - return Math[h(2607)](f / d) + " " + g + (m ? "s" : ""); + function u(d, l, f, g) { + const h = Z; + var m = l >= f * 1.5; + return Math[h(2944)](d / f) + " " + g + (m ? "s" : ""); } return Bx; } var Wx, $a; -function oi() { +function ai() { if ($a) return Wx; $a = 1; function o(x) { - const t = K; - e.debug = e, e[t(2485)] = e, e[t(1077)] = f, e[t(1692)] = c, e[t(2635)] = n, e[t(3045)] = u, e[t(3218)] = ni(), e[t(2820)] = l, Object[t(2123)](x)[t(2617)]((d) => { - e[d] = x[d]; - }), e.names = [], e[t(1530)] = [], e[t(1636)] = {}; - function r(d) { + const t = Z; + e.debug = e, e[t(2096)] = e, e[t(2571)] = d, e[t(2426)] = c, e.enable = n, e[t(1540)] = u, e[t(282)] = ti(), e[t(891)] = l, Object[t(1877)](x).forEach((f) => { + e[f] = x[f]; + }), e.names = [], e[t(2866)] = [], e[t(1348)] = {}; + function r(f) { const g = t; let h = 0; - for (let m = 0; m < d.length; m++) - h = (h << 5) - h + d[g(901)](m), h |= 0; - return e[g(2980)][Math[g(2592)](h) % e[g(2980)].length]; + for (let m = 0; m < f[g(1148)]; m++) + h = (h << 5) - h + f[g(2307)](m), h |= 0; + return e[g(2811)][Math[g(602)](h) % e.colors[g(1148)]]; } e.selectColor = r; - function e(d) { + function e(f) { const g = t; let h, m = null, v, k; - function P(...T) { - const q = K; - if (!P.enabled) return; - const R = P, E = Number(/* @__PURE__ */ new Date()), C = E - (h || E); - R[q(1885)] = C, R[q(1426)] = h, R[q(1879)] = E, h = E, T[0] = e[q(1077)](T[0]), typeof T[0] !== q(1361) && T[q(1162)]("%O"); - let A = 0; - T[0] = T[0][q(1521)](/%([a-zA-Z%])/g, (M, _) => { - const N = q; - if (M === "%%") return "%"; - A++; - const z = e.formatters[_]; - if (typeof z == "function") { - const U = T[A]; - M = z[N(1522)](R, U), T.splice(A, 1), A--; + function I(...T) { + const q = Z; + if (!I[q(1540)]) return; + const R = I, P = Number(/* @__PURE__ */ new Date()), C = P - (h || P); + R.diff = C, R.prev = h, R[q(444)] = P, h = P, T[0] = e[q(2571)](T[0]), typeof T[0] !== q(2028) && T[q(339)]("%O"); + let j = 0; + T[0] = T[0][q(1252)](/%([a-zA-Z%])/g, (O, N) => { + const _ = q; + if (O === "%%") return "%"; + j++; + const z = e[_(1348)][N]; + if (typeof z === _(1149)) { + const U = T[j]; + O = z[_(2689)](R, U), T.splice(j, 1), j--; } - return M; - }), e[q(2425)][q(1522)](R, T), (R[q(1635)] || e[q(1635)])[q(2692)](R, T); + return O; + }), e[q(1285)][q(2689)](R, T), (R[q(2127)] || e[q(2127)])[q(1046)](R, T); } - return P.namespace = d, P[g(625)] = e[g(625)](), P[g(1400)] = e.selectColor(d), P[g(919)] = s, P[g(2820)] = e[g(2820)], Object[g(2796)](P, g(3045), { enumerable: !0, configurable: !1, get: () => { + return I[g(989)] = f, I[g(1274)] = e[g(1274)](), I[g(1856)] = e[g(2284)](f), I[g(1735)] = s, I[g(891)] = e[g(891)], Object.defineProperty(I, g(1540), { enumerable: !0, configurable: !1, get: () => { const T = g; - return m !== null ? m : (v !== e[T(2470)] && (v = e[T(2470)], k = e.enabled(d)), k); + return m !== null ? m : (v !== e[T(1938)] && (v = e[T(1938)], k = e[T(1540)](f)), k); }, set: (T) => { m = T; - } }), typeof e[g(1775)] === g(1936) && e[g(1775)](P), P; + } }), typeof e[g(2462)] == "function" && e[g(2462)](I), I; } - function s(d, g) { - const h = t, m = e(this.namespace + (typeof g === h(993) ? ":" : g) + d); - return m[h(1635)] = this[h(1635)], m; + function s(f, g) { + const h = t, m = e(this[h(989)] + (typeof g > "u" ? ":" : g) + f); + return m[h(2127)] = this[h(2127)], m; } - function n(d) { + function n(f) { const g = t; - e[g(921)](d), e[g(2470)] = d, e.names = [], e[g(1530)] = []; - const h = (typeof d == "string" ? d : "")[g(2337)]().replace(/\s+/g, ",").split(",").filter(Boolean); + e[g(2820)](f), e[g(1938)] = f, e[g(988)] = [], e.skips = []; + const h = (typeof f === g(2028) ? f : "").trim()[g(1252)](/\s+/g, ",").split(",")[g(362)](Boolean); for (const m of h) - m[0] === "-" ? e[g(1530)][g(3062)](m[g(1387)](1)) : e[g(2292)].push(m); + m[0] === "-" ? e.skips.push(m[g(1908)](1)) : e[g(988)][g(3019)](m); } - function i(d, g) { + function i(f, g) { const h = t; - let m = 0, v = 0, k = -1, P = 0; - for (; m < d[h(2710)]; ) - if (v < g.length && (g[v] === d[m] || g[v] === "*")) g[v] === "*" ? (k = v, P = m, v++) : (m++, v++); - else if (k !== -1) v = k + 1, P++, m = P; + let m = 0, v = 0, k = -1, I = 0; + for (; m < f[h(1148)]; ) + if (v < g[h(1148)] && (g[v] === f[m] || g[v] === "*")) g[v] === "*" ? (k = v, I = m, v++) : (m++, v++); + else if (k !== -1) v = k + 1, I++, m = I; else return !1; - for (; v < g.length && g[v] === "*"; ) + for (; v < g[h(1148)] && g[v] === "*"; ) v++; - return v === g.length; + return v === g[h(1148)]; } function c() { - const d = t, g = [...e[d(2292)], ...e[d(1530)][d(1930)]((h) => "-" + h)].join(","); - return e.enable(""), g; + const f = t, g = [...e[f(988)], ...e.skips[f(2739)]((h) => "-" + h)].join(","); + return e[f(1268)](""), g; } - function u(d) { + function u(f) { const g = t; - for (const h of e[g(1530)]) - if (i(d, h)) return !1; - for (const h of e[g(2292)]) - if (i(d, h)) return !0; + for (const h of e[g(2866)]) + if (i(f, h)) return !1; + for (const h of e.names) + if (i(f, h)) return !0; return !1; } - function f(d) { + function d(f) { const g = t; - return d instanceof Error ? d[g(2101)] || d[g(1044)] : d; + return f instanceof Error ? f[g(2810)] || f[g(2461)] : f; } function l() { - const d = t; - console[d(1114)](d(2667)); + const f = t; + console[f(2618)](f(1818)); } - return e[t(2635)](e[t(1429)]()), e; + return e[t(1268)](e.load()), e; } return Wx = o, Wx; } var Ua; -function ii() { +function ri() { const o = a; - return Ua ? hx.exports : (Ua = 1, (function(x, t) { - const r = K; - t[r(2425)] = s, t[r(921)] = n, t[r(1429)] = i, t[r(625)] = e, t[r(1576)] = c(), t.destroy = /* @__PURE__ */ (() => { - let f = !1; + return Ua || (Ua = 1, (function(x, t) { + const r = o; + t[r(1285)] = s, t[r(2820)] = n, t[r(451)] = i, t[r(1274)] = e, t.storage = c(), t.destroy = /* @__PURE__ */ (() => { + let d = !1; return () => { - const l = K; - !f && (f = !0, console[l(1114)](l(2667))); + const l = Z; + !d && (d = !0, console[l(2618)](l(1818))); }; - })(), t[r(2980)] = ["#0000CC", "#0000FF", r(2060), r(1986), r(1104), r(3223), "#0099CC", r(2352), r(2233), "#00CC33", "#00CC66", "#00CC99", r(2950), r(1278), r(2030), r(848), r(1992), r(2659), r(1950), r(2028), r(2370), "#3399FF", r(2357), r(591), "#33CC66", r(2037), r(1847), r(1174), r(3206), r(2396), "#6633CC", r(2155), r(999), r(2622), r(2776), r(485), r(1511), r(2271), "#99CC00", "#99CC33", r(2170), r(502), "#CC0066", r(515), "#CC00CC", r(748), r(2621), r(2016), r(2803), r(2350), r(1801), r(3115), r(1820), "#CC6633", r(2361), "#CC9933", "#CCCC00", "#CCCC33", r(3185), r(1955), r(3042), r(2712), r(3096), r(1080), r(1768), "#FF3333", r(3250), r(889), r(686), r(854), "#FF6600", r(1958), r(580), r(2568), r(3153), "#FFCC33"]; + })(), t[r(2811)] = [r(2268), r(1413), r(265), r(1538), "#0066CC", r(271), r(2639), r(2724), r(509), "#00CC33", r(2378), r(605), "#00CCCC", r(583), r(2554), r(946), "#3333CC", r(2669), r(1953), r(3017), r(1178), r(1983), r(1977), r(784), r(630), r(398), r(492), r(2936), r(1832), r(1067), r(2255), r(1777), r(927), r(1085), r(2556), r(476), r(595), r(875), r(1338), "#99CC33", r(2434), r(2945), r(1859), r(2424), r(892), r(2783), r(864), "#CC3333", r(376), r(2731), r(1738), r(955), "#CC6600", r(2913), "#CC9900", r(1490), "#CCCC00", r(1056), r(2598), r(2637), "#FF0066", r(2011), r(1226), "#FF00FF", r(2394), r(1769), r(1174), "#FF3399", r(283), r(1604), r(269), r(2736), r(2281), r(1556), r(2908), r(460)]; function e() { - const f = r; - if (typeof window !== f(993) && window[f(2383)] && (window[f(2383)][f(2076)] === "renderer" || window[f(2383)][f(2985)])) return !0; - if (typeof navigator !== f(993) && navigator.userAgent && navigator[f(2444)][f(1945)]()[f(2314)](/(edge|trident)\/(\d+)/)) return !1; + const d = r; + if (typeof window !== d(2781) && window[d(2286)] && (window[d(2286)][d(2291)] === "renderer" || window[d(2286)][d(1007)])) return !0; + if (typeof navigator < "u" && navigator[d(1544)] && navigator[d(1544)][d(1119)]()[d(789)](/(edge|trident)\/(\d+)/)) return !1; let l; - return typeof document !== f(993) && document[f(862)] && document[f(862)][f(2359)] && document[f(862)].style[f(558)] || typeof window !== f(993) && window[f(2433)] && (window.console[f(1310)] || window.console[f(1343)] && window[f(2433)][f(814)]) || typeof navigator !== f(993) && navigator.userAgent && (l = navigator[f(2444)][f(1945)]()[f(2314)](/firefox\/(\d+)/)) && parseInt(l[1], 10) >= 31 || typeof navigator !== f(993) && navigator.userAgent && navigator[f(2444)][f(1945)]()[f(2314)](/applewebkit\/(\d+)/); + return typeof document < "u" && document[d(611)] && document[d(611)].style && document[d(611)][d(1302)][d(1294)] || typeof window !== d(2781) && window.console && (window[d(481)].firebug || window[d(481)][d(2242)] && window[d(481)][d(2311)]) || typeof navigator !== d(2781) && navigator.userAgent && (l = navigator[d(1544)][d(1119)]()[d(789)](/firefox\/(\d+)/)) && parseInt(l[1], 10) >= 31 || typeof navigator !== d(2781) && navigator[d(1544)] && navigator[d(1544)][d(1119)]()[d(789)](/applewebkit\/(\d+)/); } - function s(f) { + function s(d) { const l = r; - if (f[0] = (this.useColors ? "%c" : "") + this[l(1190)] + (this[l(625)] ? l(2061) : " ") + f[0] + (this[l(625)] ? "%c " : " ") + "+" + x.exports[l(3218)](this[l(1885)]), !this.useColors) return; - const d = "color: " + this[l(1400)]; - f[l(2881)](1, 0, d, l(2902)); + if (d[0] = (this.useColors ? "%c" : "") + this[l(989)] + (this.useColors ? " %c" : " ") + d[0] + (this[l(1274)] ? l(2175) : " ") + "+" + x[l(1229)].humanize(this[l(1599)]), !this.useColors) return; + const f = l(2583) + this[l(1856)]; + d[l(2176)](1, 0, f, l(2403)); let g = 0, h = 0; - f[0][l(1521)](/%[a-zA-Z%]/g, (m) => { + d[0][l(1252)](/%[a-zA-Z%]/g, (m) => { m !== "%%" && (g++, m === "%c" && (h = g)); - }), f.splice(h, 0, d); + }), d.splice(h, 0, f); } - t[r(1635)] = console.debug || console[r(1635)] || (() => { + t[r(2127)] = console.debug || console[r(2127)] || (() => { }); - function n(f) { + function n(d) { const l = r; try { - f ? t[l(1576)][l(1542)](l(3158), f) : t[l(1576)].removeItem(l(3158)); + d ? t[l(2734)][l(1618)](l(819), d) : t[l(2734)][l(620)](l(819)); } catch { } } function i() { - const f = r; + const d = r; let l; try { - l = t[f(1576)][f(2215)](f(3158)) || t[f(1576)][f(2215)](f(2869)); + l = t[d(2734)][d(2157)](d(819)) || t[d(2734)][d(2157)](d(665)); } catch { } - return !l && typeof process !== f(993) && f(740) in process && (l = process[f(740)][f(2869)]), l; + return !l && typeof process < "u" && d(1595) in process && (l = process[d(1595)].DEBUG), l; } function c() { try { @@ -3200,710 +3208,704 @@ function ii() { } catch { } } - x[r(732)] = oi()(t); + x[r(1229)] = ai()(t); const { formatters: u } = x.exports; - u.j = function(f) { + u.j = function(d) { const l = r; try { - return JSON[l(1031)](f); - } catch (d) { - return l(1611) + d.message; + return JSON[l(3038)](d); + } catch (f) { + return l(2115) + f[l(2461)]; } }; - })(hx, hx[o(732)]), hx[o(732)]); + })(hx, hx[o(1229)])), hx[o(1229)]; } -var ci = ii(); -const Zs = Ws(ci); -Zs[a(2635)]("*"); -function ui(o, x) { - const t = a, r = Zs(o), e = (s, n) => async function(...i) { +var si = ri(); +const Hs = zs(si); +Hs[a(1268)]("*"); +function ni(o, x) { + const t = a, r = Hs(o), e = (s, n) => async function(...i) { try { await x({ level: s, messages: i }); } catch { } }; - return r[t(1635)] = e(t(1635)), r; + return r[t(2127)] = e(t(2127)), r; } -const ix = ui("mesh:comfy", async ({ level: o, messages: x }) => { - const t = a, { mcpMesh: r } = await Promise.resolve()[t(2517)](() => ru); - await r[t(1316)](t(2062))[t(2848)][t(1635)]({ level: o, messages: x }); -}), fi = { "preview.show": "显示预览框 ({{count}}张图片)", "gateway.select_ai_service": a(1321), "provider.select.title": a(851), "provider.comfyui.description": a(1496), "provider.replicate.description": "海量模型,稳定服务", "provider.runninghub.description": a(2736), "provider.google.description": a(1756), "provider.sdppp_sponsor.description": a(2044), "task.waiting_upload": "正在等待图片上传...", "task.creating_task": a(2506), "task.running_duration": a(970), "task.cancelled": a(2802), "task.cancel_failed": a(2305), "task.default_name": a(2362), "comfy.connect": "连接", "comfy.load_failed": "ComfyUI加载失败,HTTP状态码:{{code}}", "comfy.loading": a(1481), "comfy.channel_connecting": "通道连接中...", "comfy.server_reconnecting": a(1780), "comfy.version_mismatch": a(3203), "comfy.cloud_recommend": a(3196), "comfy.your_workflows": "你的工作流", "comfy.refresh_workflows": "刷新工作流列表", "comfy.queue_progress": a(2405), "comfy.save": "保存", "comfy.refresh": "刷新", "comfy.stop_cancel_all": a(2728), "comfy.stop_auto_run": a(1714), "comfy.start_auto_run": a(2118), "comfy.auto_run_status": a(865), "comfy.run": "运行", "comfy.back": "返回", "comfy.uploading": a(2190), "comfy_simple.refreshing_preview": "刷新图片中", "comfy.select_workflow": "选择工作流", "comfy.task.name": a(786), "comfy.error.task_cancelled": a(2802), "comfy.task.processing_progress": a(1743), "comfy.help_tooltip": a(682), "comfy.no_workflow_selected": "未选择工作流", "comfy_simple.missing_url": a(796), "comfy_simple.loading_webview": a(1906), "comfy_simple.http_error": "连接 ComfyUI 失败(HTTP {{code}})", "comfy_simple.wait_connect": a(634), "comfy_simple.loading": a(564), "comfy_simple.connection_required": a(897), "comfy_simple.preview_empty": a(1901), "comfy_simple.progress.idle": "空闲", "comfy_simple.auto_run": "自动", "comfy_simple.workflow_quick": "快捷", "comfy_simple.multiplier.X1": "X1", "comfy_simple.multiplier.X2": "X2", "comfy_simple.multiplier.X4": "X4", "comfy_simple.multiplier.X10": a(1455), "comfy_simple.prompt_templates.manage_tooltip": a(1384), "comfy_simple.prompt_templates.button": a(1642), "comfy_simple.prompt_templates.save_error": a(737), "comfy_simple.prompt_templates.missing_key": a(1904), "comfy_simple.prompt_templates.missing_value": a(1971), "comfy_simple.prompt_templates.duplicate_key": "模板名称已存在。", "comfy_simple.prompt_templates.save_success": "模板已保存。", "comfy_simple.prompt_templates.delete_confirm_title": a(540), "comfy_simple.prompt_templates.delete_confirm_content": "确定要删除此模板吗?", "comfy_simple.prompt_templates.delete_success": a(3076), "comfy_simple.prompt_templates.add_title": a(1089), "comfy_simple.prompt_templates.edit_title": a(2757), "comfy_simple.prompt_templates.modal_title": "提示词模板", "comfy_simple.prompt_templates.description": a(820), "comfy_simple.prompt_templates.add_button": a(2625), "comfy_simple.prompt_templates.name_placeholder": a(3131), "comfy_simple.prompt_templates.value_placeholder": a(2053), "comfy_simple.fallback.title": a(930), "comfy_simple.fallback.button": a(930), "comfy_simple.prompt_templates.positive_label": a(2102), "comfy_simple.prompt_templates.negative_label": a(1841), "comfy_simple.prompt_templates.negative_placeholder": a(2696), "comfy_simple.prompt_templates.negative_empty": a(2699), "comfy_simple.prompt_templates.default_section": a(2930), "comfy_simple.prompt_templates.default_empty": "暂无默认模板。", "comfy_simple.prompt_templates.default_tag": "默认", "comfy_simple.prompt_templates.custom_section": a(1447), "comfy_simple.prompt_templates.custom_empty": a(2285), "comfy_simple.prompt_templates.applied_success": a(3211), "comfy_simple.prompt_templates.applied_failed": a(2057), "comfy_simple.prompt_templates.apply_unavailable": a(3030), "comfy_simple.prompt_templates.apply_failed_missing_binding": "无法写入{{part}}提示词:未找到对应控件。", "comfy_simple.prompt_templates.apply_failed_caller_unavailable": "无法写入{{part}}提示词:ComfyUI 尚未就绪。", "comfy_simple.prompt_templates.apply_failed_set_error": a(2492), "common.delete": "删除", "comfy_simple.preview_click_to_send": a(1325), "comfy_simple.workflow_select.empty": a(2317), "comfy_simple.workflow_select.select": "选择", "comfy_simple.workflow_select.selected": a(1720), "comfy_simple.workflow_select.current": "当前", "comfy_simple.workflow_select.load_failed": "获取工作流列表失败。", "comfy_simple.workflow_select.members_only": a(1737), "boundary.title": a(3100), "boundary.tooltip": a(2893), "boundary.current_canvas": "整个画布", "boundary.current_layer": "当前图层", "boundary.current_selection": "当前选区", "boundary.set_as_canvas": "设为画布", "boundary.set_as_layer": a(2561), "boundary.set_as_selection": "设为当前选区", "http.404": a(2740), "http.401": a(1937), "http.403": "禁止访问 (403)", "http.408": a(3273), "http.500": "服务器错误 (500)", "http.501": "未实现 (501)", "http.502": a(1722), "http.503": a(2826), "http.504": a(552), "http.unknown": a(881), "runninghub.get_apikey": a(2601), "runninghub.apikey_placeholder": a(1905), "runninghub.app_id": "应用ID:", "runninghub.webapp_id_placeholder": "此处粘贴 WebApp ID", "runninghub.open_app": "按回车打开应用: {{appName}}", "runninghub.execute": "执行", "runninghub.running": "运行中...", "runninghub.rh_coins": a(561), "runninghub.current_tasks": a(1597), "runninghub.help_tooltip": "使用教程", "runninghub.stop_all": "停止全部", "runninghub.status.waiting": a(2926), "runninghub.status.running": a(2153), "runninghub.status.failed": "执行失败", "runninghub.status.success": a(3021), "image.auto_refetch": "自动从PS重新获取", "local_resource.selection.images": "图片", "runninghub.error.get_result_failed": a(1665), "runninghub.error.task_failed": a(1239), "runninghub.error.task_incomplete": a(2202), "runninghub.error.account_status_http": a(1410), "runninghub.error.account_status_reason_unknown": a(845), "runninghub.error.account_status_failed": a(751), "runninghub.error.form_data_http": a(3032), "runninghub.error.form_data_reason_unknown": a(3149), "runninghub.error.form_data_failed": a(1105), "runninghub.error.node_info_missing": a(1182), "runninghub.error.run_http": a(2211), "runninghub.error.run_reason_default": a(2459), "runninghub.error.run_failed": a(3199), "runninghub.error.status_http": a(2400), "runninghub.error.status_reason_unknown": a(724), "runninghub.error.status_failed": a(856), "runninghub.error.outputs_http": a(546), "runninghub.error.outputs_failed": a(3152), "runninghub.task.title": a(1877), "runninghub.error.upload_http": a(1938), "runninghub.error.upload_reason_unknown": "文件上传失败", "runninghub.error.upload_failed": "uploadImage API 调用失败 - {{reason}}", "runninghub.error.services_unavailable": a(1251), "customapi.error.no_image_returned": a(543), "customapi.error.openai_api": a(1176), "customapi.error.input_required": a(2287), "customapi.error.generation_failed": a(553), "customapi.error.model_required": "请输入模型名称", "customapi.task.name.google": "Google Gemini - 图片生成", "customapi.task.name.openai": "OpenAI - 图片编辑", "customapi.error.unsupported_image_input": "不支持的图像输入类型", "replicate.get_apikey": a(3011), "replicate.apikey_placeholder": a(1875), "replicate.execute": "执行", "replicate.model_placeholder": "粘贴你的模型名称", "replicate.help_tooltip": a(682), "replicate.loading": a(795), "replicate.running": a(670), "replicate.stop": "停止", "replicate.error.result_fetch_failed": a(1713), "liblib.get_apikey": a(1276), "liblib.execute": "执行", "common.close": "关闭", "common.save": "保存", "common.save_and_run": a(784), "common.loading": a(795), "common.list_separator": "、", "common.error": "错误", "common.error.unknown": "未知错误", "common.error.task_creation_aborted": a(2745), "common.error.status_check_aborted": "状态检查已中止", "common.error.result_fetch_aborted": a(3166), "common.error.upload_aborted": "上传已中止", "common.success": "成功", "common.failed": "失败", "common.generating": a(948), "common.cancel": "取消", "common.confirm": "确认", "common.options": "选项", "common.options_separator": "=== 选项 ===", "upload_pass.error.unsupported_type": "不支持的上传类型:{{type}}", "upload_pass.error.uploader_missing": a(2083), webviewInForeground: "插件可能正在拦截 PS 快捷键... ", webviewInForeground2: a(1968), "auth.login_success": a(2872), "auth.username_label": "用户名: {{username}}", "auth.email_label": a(2623), "auth.logout": a(2065), "auth.login_required": a(1811), "image.send.select_position": a(1963), "image.send.sending": a(1301), "image.layer.new": "新图层", "image.layer.current": a(1632), "image.layer.fit_to_current": a(524), "image.layer.fit_to_selection": a(3190), "image.layer.fit_to_canvas": "适配至画布", "image.shortcut_auth_required": "快捷键选图功能仅登陆后可用", "image.shortcut_focus_required": a(1819), "image.get.select_image": a(3088), "image.get.entire_canvas": a(1449), "image.get.canvas": "画布", "image.get.current_layer": a(1632), "image.get.current_layer_bounds": a(1183), "image.get.selection_bounds": a(1422), "image.get.canvas_bounds": a(1890), "image.crop_by_selection": a(2045), "image.limit_size": a(653), "image.crop.none": a(1202), "image.crop.inpaint": a(1678), "image.crop.outpaint": "正向裁剪(Outpaint)", "image.send_all": "发送所有", "image.save_all": a(915), "image.save_current": "保存当前", "image.delete_current": a(853), "image.more_actions": a(1283), "image.jump_to_last": a(3271), "image.clear_all": a(492), "image.send_to_ps": a(2862), "image.download": "下载", "image.copy": "复制", "image.sending": "正在发送...", "image.sending_all": a(2652), "mask.get.select_mask": "请选择要获取的遮罩", "mask.selection": "选区", "mask.current_layer_bounds": a(1053), "mask.all": "全部", "mask.selection_exclude": "选区除外", "mask.current_layer_exclude": "当前图层除外", "mask.empty": "空", "widgetable.photoshop.deprecated_node": a(2915), "work_boundary.error.empty_selection_mask": a(2440), "work_boundary.error.primary_resource_missing": a(1830), "work_boundary.error.mask_resource_missing": a(3200), "work_boundary.error.mask_apply_empty": a(1528), "document {{0}} not found": a(3e3), "create document for preview": a(2296), "resize document for preview": a(1232), "create document for sent images": a(1475), "show sent images": "显示发送的图片", "create layer failed": "创建图层失败", "layer not found {{0}}": a(2388), "layer not found: {{0}}": "找不到图层: {{0}}", "layer {{0}} is not a group": a(555), "no linked layer for {{0}}": a(2039), "no first related layer in {{0}}": "组 {{0}} 中没有第一个相关图层", "merge group failed": "合并组失败", "get content of layer {{0}}": a(566), "get layer info": a(2660), "get_layer_info: layer_identify required": a(2747), "get pixel of {{0}} failed": "获取像素失败: {{0}}", "get selection failed": a(863), "invalid name: {{0}}": a(1006), "desire bounds is null": a(1993), "intersect or scaledDesire is null": a(2961), 'only layer kind "TEXT" is supported, invalid layer: {{0}}': "不支持非文本图层: {{0}}", "select layer": "sdppp 选中图层", "run Photoshop Action": a(2216), "Action {{0}} not found": a(1503), "Action set {{0}} not found": a(739), "set text to layer": a(909), "ComfyManager not found, cannot reboot": a(1787), "Failed to reboot ComfyUI": a(536), "image.upload.from_canvas": "画布", "image.upload.from_curlayer": a(1632), "image.upload.from_selection": "选区", "image.upload.from_harddisk": "磁盘", "image.upload.clear": "清空", "image.upload.uploading": a(983), "image.upload.syncing": "素材同步中", "image.upload.no_images": a(2748), "image.upload.error": a(1180), "image.upload.tooltip.more_options_hint": a(2514), "image.upload.tooltip.alt.crop": a(985), "image.upload.tooltip.alt.reverse": a(949), "image.upload.tooltip.image.canvas": "从 画布 获取图像", "image.upload.tooltip.image.curlayer": "从 当前图层 获取图像", "image.upload.tooltip.mask.curlayer": "从 当前图层 获取遮罩", "image.upload.tooltip.mask.selection": a(826), "image.upload.tooltip.mask.canvas": "从 画布 获取遮罩", "image.upload.tooltip.cut_action": a(1344), "image.upload.tooltip.scan_action": `获取图像 & -限制图像范围`, "image.upload.tooltip.autosync.on": a(1886), "image.upload.tooltip.autosync.off": "自动同步: 关闭", "image.upload.tooltip.sync_action": a(1553), "image.upload.autosync.fetching": a(2914), "image.upload.autosync.status.enabled": a(3075), "image.upload.autosync.status.disabled": a(2890), "image.upload.tooltip.current.canvas": a(2288), "image.upload.tooltip.current.layer": a(2815), "image.upload.tooltip.current.layer_named": a(1871), "image.upload.tooltip.current.file": "当前选项:文件", "image.upload.retry": "重试", "image.pack.local.button": a(2505), "image.pack.local.empty": a(2748), "image.auto_send_enabled": a(922), "image.auto_send_disabled": a(1198), "image.upload.primary.auto": "自动取图中…", "image.upload.primary.manual": a(1525), "image.upload.primary.hint": "该节点默认继承当前图层与遮罩", "image.upload.primary.cut": "裁剪", "image.upload.primary.scan": "扫描", "image.upload.primary.hint.line1": "本节点默认继承:", "image.upload.primary.hint.line2": "主图", "workflow.output.destination.title": "输出至:", "workflow.output.destination.canvas": "全图", "image.upload.primary.advanced": a(2082), "image.upload.primary.advanced.modify": "修改", "image.upload.primary.advanced.reset": "重置", "image.upload.primary.advanced.local_file": a(2139), "image.upload.primary.advanced.content.canvas": "画布", "image.upload.primary.advanced.content.curlayer": a(1632), "image.upload.primary.advanced.content.selection": "选区", "image.upload.primary.advanced.boundary.canvas": a(1372), "image.upload.primary.advanced.boundary.curlayer": a(917), "image.upload.primary.advanced.boundary.selection": a(685), "image.upload.primary.advanced.boundary.primary": a(2132), "image.upload.source.file.tooltip": a(720), "image.upload.mode.file.label": "文件", "image.upload.mode.layer.label": "图层", "image.upload.mode.canvas.label": "画布", "image.upload.source.layer.tooltip": a(2148), "image.upload.source.canvas.tooltip": a(2965), "image.upload.dropHint": a(2017), "image.upload.tooltip.clear_action": a(1593), "image.upload.status.layer.short_named": a(2402), "image.upload.status.layer.short": "图层", "image.upload.status.file.short": "本地文件", "image.upload.status.canvas.short": "画布", "image.upload.status.file.active": "正在使用本地文件", "image.upload.status.file.resetHint": a(1437), "image.upload.status.mask.resetHint": a(1060), "image.upload.status.mask.modified": "已添加遮罩", "image.upload.status.boundary.resetHint": "点击恢复默认边界", "image.upload.status.boundary.modified": a(2494), "image.upload.status.boundary.docMismatch": a(2096), "image.upload.mask.button": a(2685), "image.upload.mask.selection": a(2685), "image.upload.mask.layer": "图层遮罩", "image.upload.remove_slot": "移除槽位", "image.upload.add_slot": a(736), "video.local.button": a(1388), "video.local.empty": a(1732), "video.local.remove": "清除视频", "source.source": "来源", "source.content": "内容", "source.boundary": "范围", "source.mask": "遮罩", "source.disk": "磁盘", "source.remote": "远端", "source.unknown": "未知", "source.ps_image": a(1694), "source.ps_mask": "PS遮罩", "source.canvas": "整个画布", "source.current_layer": a(1632), "source.selection": "选区", "source.quality_percent": a(1689), "source.crop.positive": a(3020), "source.crop.negative": a(838), "source.reverse": "反转", "send_images.create_document": a(1470), "send_images.create_document_failed": a(906), "photoshop.no_active_document": a(2455), "photoshop.rectangle_coordinates_required": a(2110), "photoshop.create_guide_frame": a(1212), "photoshop.clear_guide_frame": a(997), "photoshop.invalid_action": a(1806), "photoshop.file_not_found": a(1047), "photoshop.failed_to_open_file_as_document": a(733), "photoshop.invalid_boundary": a(1258), "photoshop.failed_to_open_image_file": a(1185), "photoshop.open_images_from_file": a(511), "photoshop.failed_to_create_document_from_file": a(587), "google.field.image_input": "输入图像", "google.field.prompt": a(1642), "google.field.batch_count": a(601), "google.field.images_per_batch": a(3265), "google.status.success": "成功", "google.status.failed": "失败", "google.status.generating": "生成中", "google.apikey_placeholder": a(1211), "google.baseurl_placeholder": "基础 URL", "google.get_apikey": a(1788), "google.help_tooltip": a(3073), "google.model_name": a(1129), "google.model_label": "模型", "google.model_placeholder": a(1701), "google.stop": "停止", "google.loading": a(795), "google.generating": a(948), "google.generate": "生成", "image.auto_toggle": "自动", "image.import_as_smartobject": a(2606), "image.import_as_newdoc": a(3233), "image.boundary": "边界", "image.import_tip": a(2725), "image.import_selection_button": a(2687), "image.import_auto_hint": a(1745), "image.import_selection_hint": "使用当前选区边界", "auth.guest_login_success": a(532), "boundary.canvas": "画布", "boundary.select_boundary": a(1771), "boundary.selection": "选区", "boundary.max_size": a(967), "boundary.max_size_error": a(1409), "boundary.max_size_hint": "留空表示不限", "boundary.max_size_placeholder": a(972), "boundary.no_limit": "不限", "boundary.image_quality": a(2552), "boundary.image_quality_required": a(2891), "boundary.image_quality_range": "范围 1-100", "boundary.preview_main_image": "输出区域", "boundary.preview_select": a(1923), "boundary.preview_alt": "边界预览", "boundary.preview_placeholder": a(2374), "boundary.settings": "调整输入设置", "convert widget {0} failed:": a(1548), "document {0} not found": a(1027), "image.document.new": a(1432), "image.layer.smart_object": a(1466), "layer not found {0}": "未找到图层 {0}", "photoshop.invalid_boundary_type": "无效的边界类型: {{type}}", "photoshop.no_active_layer": a(2934), "auth.login_hint": "请点击右上角登录后使用。", "task.running": a(670), "task.execute": "运行", "task.stop": "停止", "task.importing_image": a(2562), "task.error.send_image_failed": a(1799), "task.error.failed_status": a(2997), "taskrouter.template_placeholder": a(519), "taskrouter.balance": "赞助分", "taskrouter.recharge": a(2264), "taskrouter.refresh_balance": a(2229), "taskrouter.no_schema": "请先选择应用", "taskrouter.config.base_url": a(1833), "taskrouter.config.supabase_url": "Supabase URL", "taskrouter.config.supabase_anon_key": "Supabase 匿名密钥", "taskrouter.error.remote_config_missing": "缺少 TaskRouter 远端配置:{{missing}}。请检查远端配置后重试。", "taskrouter.error.client_missing": "TaskRouter 客户端未初始化", "taskrouter.error.template_missing": a(2378), "taskrouter.error.upload_provider_incompatible": a(1984), "taskrouter.error.deferred_upload_failed": a(1099), "taskrouter.error.upload_control_unsupported": a(2943), "taskrouter.error.upload_resource_missing": "缺少可上传的资源", "taskrouter.error.tenant_unresolved": a(890), "taskrouter.error.supabase_session_failed": a(714), "taskrouter.status.preparing": a(1595), "taskrouter.status.uploading": a(1421), "taskrouter.status.validating": a(1178), "taskrouter.status.creating": a(2506), "taskrouter.tab.editor": "运行", "taskrouter.tab.history": a(1907), "taskrouter.history.importing": "正在导入历史图片...", "taskrouter.history.send_failed_resource": a(1736), "taskrouter.history.send_failed_identifier": a(1724), "taskrouter.history.send_success": "图片已导入到画布", "taskrouter.history.select_prompt": a(2097), "taskrouter.history.duration_prefix": "耗时", "taskrouter.history.duration_unit": "秒", "taskrouter.history.createdAt": a(1626), "taskrouter.history.charge": a(2242), "taskrouter.history.charge_value": "-{{value}}积分", "taskrouter.history.images": "输出预览", "taskrouter.history.retry": a(1458), "taskrouter.history.id": "任务 ID", "taskrouter.history.message": a(752), "taskrouter.history.no_images": a(2654), "taskrouter.history.client_missing": a(2259), "taskrouter.history.limit_notice": "当前版本限制获取最近10条", "taskrouter.history.refresh": "刷新", "taskrouter.history.detail_title": a(522), "taskrouter.history.loading": a(1539), "taskrouter.history.empty": a(713), "taskrouter.history.started_at_label": "开始时间", "taskrouter.history.status.pending": "排队中", "taskrouter.history.status.running": a(2192), "taskrouter.history.status.completed": a(2210), "taskrouter.history.status.failed": "失败", "taskrouter.history.status.cancelled": a(2311), "plugin.menu.view_logs": a(3103), "plugin.log.saved": `日志已保存到文件: {{path}} - - -`, "plugin.log.save_failed": a(2719), "dialog.image_source.title": a(722), "dialog.image_source.primary_canvas": a(1376), "dialog.image_source.primary_curlayer": a(2764), "dialog.image_source.canvas_canvas": a(1981), "dialog.image_source.canvas_curlayer": a(3208), "dialog.image_source.curlayer_canvas": "以当前图层边界获取画布", "dialog.image_source.curlayer_curlayer": a(2613), "dialog.image_source.local_file": a(2139), "dialog.simple_source.title": a(1784), "dialog.simple_source.canvas": "画布", "dialog.simple_source.current_layer": a(1632), "dialog.simple_source.local_file": a(1726), "dialog.simple_source.no_active_layer": "当前没有可用图层", "dialog.simple_source.pick_error": a(1170) }, li = { "preview.show": a(626), "gateway.select_ai_service": "Please select AI service", "provider.select.title": "Select AI Service Provider", "provider.comfyui.description": a(734), "provider.replicate.description": a(1453), "provider.runninghub.description": a(1320), "provider.google.description": a(1782), "provider.sdppp_sponsor.description": a(1473), "task.waiting_upload": a(2199), "task.creating_task": "Creating task...", "task.running_duration": "Running for {{duration}} secs, {{message}}", "task.cancelled": a(2239), "task.cancel_failed": a(2619), "task.default_name": a(2467), "comfy.connect": a(1661), "comfy.load_failed": "ComfyUI failed to load, HTTP status code: {{code}}", "comfy.loading": a(1501), "comfy.channel_connecting": a(2351), "comfy.server_reconnecting": a(3041), "comfy.version_mismatch": "Comfy SDPPP version ({{comfyVersion}}) does not match plugin ({{pluginVersion}}), may cause issues", "comfy.cloud_recommend": a(2944), "comfy.your_workflows": a(2029), "comfy.refresh_workflows": a(3035), "comfy.queue_progress": a(2094), "comfy.save": "Save", "comfy.refresh": a(771), "comfy.stop_cancel_all": a(2339), "comfy.stop_auto_run": a(2503), "comfy.start_auto_run": "Auto run after canvas change", "comfy.auto_run_status": a(1683), "comfy.run": "Run", "comfy.back": a(1055), "comfy.uploading": a(3174), "comfy_simple.refreshing_preview": a(2633), "comfy.select_workflow": a(1619), "comfy.task.name": a(786), "comfy.error.task_cancelled": a(2239), "comfy.task.processing_progress": a(1439), "comfy.help_tooltip": a(1659), "comfy.no_workflow_selected": a(1908), "comfy_simple.missing_url": a(2741), "comfy_simple.loading_webview": a(1112), "comfy_simple.http_error": a(2676), "comfy_simple.wait_connect": a(1072), "comfy_simple.loading": a(2885), "comfy_simple.connection_required": a(1468), "comfy_simple.preview_empty": a(2075), "comfy_simple.progress.idle": a(1208), "comfy_simple.auto_run": a(1416), "comfy_simple.workflow_quick": a(1491), "comfy_simple.multiplier.X1": "X1", "comfy_simple.multiplier.X2": "X2", "comfy_simple.multiplier.X4": "X4", "comfy_simple.multiplier.X10": a(1455), "comfy_simple.prompt_templates.manage_tooltip": a(1524), "comfy_simple.prompt_templates.button": a(3057), "comfy_simple.prompt_templates.save_error": a(1229), "comfy_simple.prompt_templates.missing_key": a(579), "comfy_simple.prompt_templates.missing_value": a(2955), "comfy_simple.prompt_templates.duplicate_key": "Template name already exists.", "comfy_simple.prompt_templates.save_success": a(1817), "comfy_simple.prompt_templates.delete_confirm_title": a(1004), "comfy_simple.prompt_templates.delete_confirm_content": a(2313), "comfy_simple.prompt_templates.delete_success": a(947), "comfy_simple.prompt_templates.add_title": a(1669), "comfy_simple.prompt_templates.edit_title": a(1401), "comfy_simple.prompt_templates.modal_title": a(3256), "comfy_simple.prompt_templates.description": a(3027), "comfy_simple.prompt_templates.add_button": a(1336), "comfy_simple.prompt_templates.name_placeholder": a(3080), "comfy_simple.prompt_templates.value_placeholder": "Prompt content", "comfy_simple.fallback.title": a(1858), "comfy_simple.fallback.button": "More Settings", "comfy_simple.prompt_templates.positive_label": a(567), "comfy_simple.prompt_templates.negative_label": "Negative Prompt", "comfy_simple.prompt_templates.negative_placeholder": a(2906), "comfy_simple.prompt_templates.negative_empty": a(2987), "comfy_simple.prompt_templates.default_section": "Default Templates", "comfy_simple.prompt_templates.default_empty": a(3195), "comfy_simple.prompt_templates.default_tag": "Default", "comfy_simple.prompt_templates.custom_section": a(1604), "comfy_simple.prompt_templates.custom_empty": a(2642), "comfy_simple.prompt_templates.applied_success": "Template applied.", "comfy_simple.prompt_templates.applied_failed": a(2435), "comfy_simple.prompt_templates.apply_unavailable": a(1941), "comfy_simple.prompt_templates.apply_failed_missing_binding": a(1e3), "comfy_simple.prompt_templates.apply_failed_caller_unavailable": a(1940), "comfy_simple.prompt_templates.apply_failed_set_error": "Failed to update the {{part}} prompt. Please try again.", "common.delete": a(2723), "comfy_simple.preview_click_to_send": a(1216), "comfy_simple.workflow_select.empty": a(2544), "comfy_simple.workflow_select.select": "Select", "comfy_simple.workflow_select.selected": a(2195), "comfy_simple.workflow_select.current": a(2104), "comfy_simple.workflow_select.load_failed": a(2418), "comfy_simple.workflow_select.members_only": a(2454), "boundary.title": a(924), "boundary.tooltip": a(2875), "boundary.current_canvas": "Entire Canvas", "boundary.current_layer": a(887), "boundary.current_selection": a(3108), "boundary.set_as_canvas": a(1431), "boundary.set_as_layer": a(996), "boundary.set_as_selection": a(3099), "http.404": a(510), "http.401": a(2302), "http.403": a(550), "http.408": a(2024), "http.500": a(1085), "http.501": a(3050), "http.502": "Gateway error (502)", "http.503": a(1446), "http.504": "Gateway timeout (504)", "http.unknown": "Unknown error ({{code}})", "runninghub.get_apikey": a(1147), "runninghub.apikey_placeholder": "Enter your RunningHub API Key", "runninghub.app_id": a(1210), "runninghub.webapp_id_placeholder": "Paste WebApp ID here", "runninghub.open_app": a(773), "runninghub.execute": "Execute", "runninghub.running": a(2658), "runninghub.rh_coins": a(1487), "runninghub.current_tasks": a(658), "runninghub.help_tooltip": a(1659), "runninghub.stop_all": a(2087), "runninghub.status.waiting": a(2245), "runninghub.status.running": a(982), "runninghub.status.failed": "Failed", "runninghub.status.success": a(1584), "image.auto_refetch": "Auto repick from PS", "local_resource.selection.images": a(2042), "runninghub.error.get_result_failed": "Failed to get result: {{error}}", "runninghub.error.task_failed": a(2753), "runninghub.error.task_incomplete": a(778), "runninghub.error.account_status_http": "getAccountStatus API failed - HTTP error! status: {{status}}", "runninghub.error.account_status_reason_unknown": a(3087), "runninghub.error.account_status_failed": a(3283), "runninghub.error.form_data_http": a(3192), "runninghub.error.form_data_reason_unknown": "Failed to fetch form data", "runninghub.error.form_data_failed": a(3010), "runninghub.error.node_info_missing": a(2e3), "runninghub.error.run_http": a(2814), "runninghub.error.run_reason_default": a(500), "runninghub.error.run_failed": a(2140), "runninghub.error.status_http": a(1351), "runninghub.error.status_reason_unknown": "Failed to get task status", "runninghub.error.status_failed": a(3177), "runninghub.error.outputs_http": "outputs API failed - HTTP error! status: {{status}}", "runninghub.error.outputs_failed": a(563), "runninghub.task.title": a(1877), "runninghub.error.upload_http": a(1309), "runninghub.error.upload_reason_unknown": a(1290), "runninghub.error.upload_failed": a(1765), "runninghub.error.services_unavailable": a(2484), "customapi.error.no_image_returned": a(2880), "customapi.error.openai_api": "OpenAI API error", "customapi.error.input_required": "Image input and prompt are required", "customapi.error.generation_failed": a(2392), "customapi.error.model_required": a(1990), "customapi.task.name.google": a(864), "customapi.task.name.openai": a(2591), "customapi.error.unsupported_image_input": a(2354), "replicate.get_apikey": a(2385), "replicate.apikey_placeholder": a(2247), "replicate.execute": a(2447), "replicate.model_placeholder": a(2091), "replicate.help_tooltip": a(1659), "replicate.loading": a(499), "replicate.running": "Running...", "replicate.stop": a(1977), "replicate.error.result_fetch_failed": a(1697), "liblib.get_apikey": a(1587), "liblib.execute": a(2447), "common.close": "Close", "common.save": a(959), "common.save_and_run": a(2499), "common.loading": a(499), "common.list_separator": ", ", "common.error": "Error", "common.error.unknown": a(1217), "common.error.task_creation_aborted": a(2081), "common.error.status_check_aborted": a(2025), "common.error.result_fetch_aborted": a(712), "common.error.upload_aborted": a(969), "common.success": a(1584), "common.failed": a(708), "common.generating": a(1520), "common.cancel": "Cancel", "common.confirm": a(914), "common.options": a(907), "common.options_separator": a(3119), "upload_pass.error.unsupported_type": a(1417), "upload_pass.error.uploader_missing": a(1234), webviewInForeground: a(1484), webviewInForeground2: a(716), "auth.login_success": a(2434), "auth.username_label": a(1664), "auth.email_label": a(1128), "auth.logout": a(1617), "auth.login_required": a(2954), "image.send.select_position": "Please select the position to send image", "image.send.sending": a(3187), "image.layer.new": a(976), "image.layer.current": a(887), "image.layer.fit_to_current": a(1235), "image.layer.fit_to_selection": "Fit to selection", "image.layer.fit_to_canvas": a(2463), "image.shortcut_auth_required": a(1460), "image.shortcut_focus_required": a(2158), "image.get.select_image": "Please select the image to get", "image.get.entire_canvas": a(2760), "image.get.canvas": a(2032), "image.get.current_layer": a(887), "image.get.current_layer_bounds": a(1607), "image.get.selection_bounds": a(3167), "image.get.canvas_bounds": a(3229), "image.crop_by_selection": a(1322), "image.limit_size": a(2879), "image.crop.none": a(869), "image.crop.inpaint": a(944), "image.crop.outpaint": a(912), "image.send_all": a(1340), "image.save_all": a(656), "image.save_current": a(2294), "image.delete_current": a(3136), "image.more_actions": a(3184), "image.jump_to_last": "Jump to last", "image.clear_all": a(3251), "image.send_to_ps": a(3268), "image.download": "Download", "image.copy": a(2114), "image.sending": "Sending...", "image.sending_all": a(1237), "mask.get.select_mask": a(2004), "mask.selection": a(1393), "mask.current_layer_bounds": "Current layer bounds", "mask.all": a(2409), "mask.selection_exclude": a(3140), "mask.current_layer_exclude": a(1492), "mask.empty": a(2987), "widgetable.photoshop.deprecated_node": "SDPPP 2.0 no longer needs this node", "work_boundary.error.empty_selection_mask": a(2843), "work_boundary.error.primary_resource_missing": "Primary image resource is missing", "work_boundary.error.mask_resource_missing": a(1914), "work_boundary.error.mask_apply_empty": a(1746), "document {{0}} not found": a(1033), "create document for preview": "Create document for preview", "resize document for preview": a(620), "create document for sent images": "Create document for sent images", "show sent images": a(2628), "create layer failed": "Create layer failed", "layer not found {{0}}": a(530), "layer not found: {{0}}": "Layer not found: {{0}}", "layer {{0}} is not a group": a(691), "no linked layer for {{0}}": "No linked layer for {{0}}", "no first related layer in {{0}}": a(2921), "merge group failed": a(2186), "get content of layer {{0}}": "Get content of layer {{0}}", "get layer info": a(2713), "get_layer_info: layer_identify required": a(2791), "get pixel of {{0}} failed": a(3066), "get selection failed": a(1428), "invalid name: {{0}}": a(3180), "desire bounds is null": a(630), "intersect or scaledDesire is null": a(756), 'only layer kind "TEXT" is supported, invalid layer: {{0}}': a(2404), "select layer": a(779), "run Photoshop Action": a(3132), "Action {{0}} not found": a(1011), "Action set {{0}} not found": "Action set {{0}} was not found", "set text to layer": a(2959), "ComfyManager not found, cannot reboot": a(1706), "Failed to reboot ComfyUI": a(1944), "image.upload.from_canvas": a(2032), "image.upload.from_curlayer": a(887), "image.upload.from_selection": a(1393), "image.upload.from_harddisk": "Disk", "image.upload.clear": a(1213), "image.upload.uploading": a(1761), "image.upload.syncing": "Syncing assets", "image.upload.no_images": a(3107), "image.upload.error": "Upload failed, please try again", "image.upload.tooltip.alt.crop": a(2762), "image.upload.tooltip.alt.reverse": a(781), "image.upload.tooltip.image.canvas": "Get image from Canvas", "image.upload.tooltip.image.curlayer": "Get image from Current Layer", "image.upload.tooltip.mask.canvas": "Get mask from Canvas", "image.upload.tooltip.mask.curlayer": a(2650), "image.upload.tooltip.mask.selection": a(2228), "image.upload.tooltip.cut_action": `Get image & -Crop selection mask`, "image.upload.tooltip.scan_action": a(565), "image.upload.tooltip.autosync.on": a(2835), "image.upload.tooltip.autosync.off": a(2131), "image.upload.tooltip.sync_action": a(874), "image.upload.tooltip.more_options_hint": "Hold Shift for more options; Ctrl for single fetch", "image.upload.tooltip.current.canvas": a(2274), "image.upload.tooltip.current.layer": "Current selection: Layer", "image.upload.tooltip.current.layer_named": "Current selection: Layer {{layerName}}", "image.upload.tooltip.current.file": "Current option: File", "image.upload.autosync.fetching": a(1839), "image.upload.autosync.status.enabled": a(1150), "image.upload.autosync.status.disabled": a(797), "image.upload.retry": "Retry", "image.pack.local.button": a(2550), "image.pack.local.empty": a(2497), "image.auto_send_enabled": a(1681), "image.auto_send_disabled": a(3116), "image.upload.primary.auto": a(1839), "image.upload.primary.manual": a(2527), "image.upload.primary.cut": a(2778), "image.upload.primary.scan": a(675), "image.upload.primary.hint": a(2332), "image.upload.primary.hint.line1": a(1988), "image.upload.primary.hint.line2": a(2858), "workflow.output.destination.title": a(1967), "workflow.output.destination.canvas": a(1244), "image.upload.primary.advanced": a(1352), "image.upload.primary.advanced.modify": a(641), "image.upload.primary.advanced.reset": a(1337), "image.upload.primary.advanced.local_file": a(1549), "image.upload.primary.advanced.content.canvas": a(2032), "image.upload.primary.advanced.content.curlayer": a(1059), "image.upload.primary.advanced.content.selection": a(1393), "image.upload.primary.advanced.boundary.canvas": a(1459), "image.upload.primary.advanced.boundary.curlayer": a(1184), "image.upload.primary.advanced.boundary.selection": "Selection boundary", "image.upload.primary.advanced.boundary.primary": "Primary boundary", "image.upload.mode.file.label": "File", "image.upload.mode.layer.label": a(830), "image.upload.mode.canvas.label": a(2032), "image.upload.source.file.tooltip": a(3171), "image.upload.source.layer.tooltip": "Use current layer", "image.upload.source.canvas.tooltip": a(3270), "image.upload.dropHint": a(2576), "image.upload.tooltip.clear_action": a(1076), "image.upload.status.layer.short_named": a(1436), "image.upload.status.layer.short": a(830), "image.upload.status.file.short": a(1549), "image.upload.status.canvas.short": a(2032), "image.upload.status.file.active": a(1849), "image.upload.status.file.resetHint": "Click to remove local file", "image.upload.status.mask.resetHint": a(1139), "image.upload.status.mask.modified": a(844), "image.upload.status.boundary.resetHint": "Click to restore default boundary", "image.upload.status.boundary.modified": a(1069), "image.upload.status.boundary.docMismatch": a(1824), "image.upload.mask.button": a(2790), "image.upload.mask.selection": a(2790), "image.upload.mask.layer": a(3072), "image.upload.remove_slot": a(3095), "image.upload.add_slot": "Add slot", "video.local.button": "Local video", "video.local.empty": a(894), "video.local.remove": "Remove video", "source.source": a(3074), "source.content": a(1506), "source.boundary": a(629), "source.mask": "Mask", "source.disk": a(2975), "source.remote": "Remote", "source.unknown": "Unknown", "source.ps_image": "PS", "source.ps_mask": "PS", "source.canvas": a(2032), "source.current_layer": "CurLayer", "source.selection": a(1393), "source.quality_percent": "Quality {{percent}}%", "source.crop.positive": "Positive Crop", "source.crop.negative": a(1536), "source.reverse": a(2471), "send_images.create_document": "Create document", "send_images.create_document_failed": a(2558), "photoshop.no_active_document": "No active document", "photoshop.rectangle_coordinates_required": a(644), "photoshop.create_guide_frame": a(2224), "photoshop.clear_guide_frame": "Clear guide frame", "photoshop.invalid_action": a(2297), "photoshop.file_not_found": a(1759), "photoshop.failed_to_open_file_as_document": a(2026), "photoshop.invalid_boundary": a(3025), "photoshop.failed_to_open_image_file": "Failed to open image file: {{error}}", "photoshop.open_images_from_file": a(2355), "photoshop.failed_to_create_document_from_file": a(589), "google.field.image_input": a(1462), "google.field.prompt": a(1172), "google.field.batch_count": a(783), "google.field.images_per_batch": a(2805), "google.status.success": a(1584), "google.status.failed": a(708), "google.status.generating": a(581), "google.apikey_placeholder": a(1532), "google.get_apikey": a(2788), "google.baseurl_placeholder": a(1347), "google.help_tooltip": a(1516), "google.model_name": a(2203), "google.model_label": "Model", "google.model_placeholder": a(2431), "google.stop": "Stop", "google.loading": "Loading...", "google.generating": "Generating...", "google.generate": a(1783), "image.auto_toggle": a(2419), "image.import_as_smartobject": a(2143), "image.import_as_newdoc": a(2819), "image.boundary": a(2994), "image.import_tip": "Hold Shift key to import as new document", "image.import_selection_button": a(2441), "image.import_auto_hint": "Shift-click or right-click to toggle auto send", "image.import_selection_hint": "Use current selection boundary", "auth.guest_login_success": a(1902), "boundary.canvas": a(2032), "boundary.select_boundary": "Select boundary", "boundary.selection": a(1393), "boundary.max_size": a(1725), "boundary.max_size_error": a(2482), "boundary.max_size_hint": a(1979), "boundary.max_size_placeholder": a(1979), "boundary.no_limit": a(2705), "boundary.image_quality": "Image quality (%)", "boundary.image_quality_required": a(3224), "boundary.image_quality_range": a(2073), "boundary.preview_main_image": a(1024), "boundary.preview_select": a(611), "boundary.preview_alt": a(1058), "boundary.preview_placeholder": a(2099), "boundary.settings": a(1342), "convert widget {0} failed:": "Failed to convert widget {0}:", "document {0} not found": a(1755), "image.document.new": "New Document", "image.layer.smart_object": a(1913), "layer not found {0}": a(975), "photoshop.invalid_boundary_type": a(571), "photoshop.no_active_layer": a(2112), "auth.login_hint": a(933), "task.running": a(2658), "task.execute": a(1596), "task.stop": a(1977), "task.importing_image": a(2548), "task.error.send_image_failed": "Failed to send image {{index}}: {{error}}", "task.error.failed_status": a(3247), "taskrouter.template_placeholder": a(3058), "taskrouter.balance": "Sponsor Points", "taskrouter.recharge": a(677), "taskrouter.refresh_balance": "Refresh balance", "taskrouter.no_schema": a(1850), "taskrouter.config.base_url": a(2023), "taskrouter.config.supabase_url": a(1727), "taskrouter.config.supabase_anon_key": a(3188), "taskrouter.error.remote_config_missing": "Missing TaskRouter remote config: {{missing}}. Please check the remote config and try again.", "taskrouter.error.client_missing": "TaskRouter client is not initialized", "taskrouter.error.template_missing": a(1927), "taskrouter.error.upload_provider_incompatible": a(560), "taskrouter.error.deferred_upload_failed": a(2428), "taskrouter.error.upload_control_unsupported": a(955), "taskrouter.error.upload_resource_missing": a(946), "taskrouter.error.tenant_unresolved": a(2831), "taskrouter.error.supabase_session_failed": "Failed to get Supabase session: {{error}}", "taskrouter.status.preparing": a(1404), "taskrouter.status.uploading": "Uploading images...", "taskrouter.status.validating": a(2742), "taskrouter.status.creating": "Creating task...", "taskrouter.tab.editor": "Run", "taskrouter.tab.history": "History", "taskrouter.history.importing": a(1018), "taskrouter.history.send_failed_resource": a(1222), "taskrouter.history.send_failed_identifier": "Invalid resource identifier", "taskrouter.history.send_success": a(950), "taskrouter.history.select_prompt": a(2263), "taskrouter.history.duration_prefix": a(1113), "taskrouter.history.duration_unit": a(2553), "taskrouter.history.createdAt": a(2897), "taskrouter.history.charge": a(1296), "taskrouter.history.charge_value": a(1223), "taskrouter.history.images": a(1888), "taskrouter.history.retry": a(1127), "taskrouter.history.id": a(1920), "taskrouter.history.message": "Message", "taskrouter.history.no_images": a(1655), "taskrouter.history.client_missing": a(1895), "taskrouter.history.limit_notice": a(1667), "taskrouter.history.refresh": "Refresh", "taskrouter.history.detail_title": a(3189), "taskrouter.history.loading": "Loading history tasks...", "taskrouter.history.empty": a(590), "taskrouter.history.started_at_label": "Started At", "taskrouter.history.status.pending": a(2177), "taskrouter.history.status.running": a(982), "taskrouter.history.status.completed": "Completed", "taskrouter.history.status.failed": "Failed", "taskrouter.history.status.cancelled": "Cancelled", "plugin.menu.view_logs": "View Logs", "plugin.log.saved": a(1052), "plugin.log.save_failed": a(1350), "dialog.image_source.title": a(1148), "dialog.image_source.primary_canvas": a(1373), "dialog.image_source.primary_curlayer": a(3142), "dialog.image_source.canvas_canvas": "Fetch canvas with canvas boundary", "dialog.image_source.canvas_curlayer": a(1364), "dialog.image_source.curlayer_canvas": a(531), "dialog.image_source.curlayer_curlayer": "Fetch current layer with current-layer boundary", "dialog.image_source.local_file": a(878), "dialog.simple_source.title": a(551), "dialog.simple_source.canvas": a(2032), "dialog.simple_source.current_layer": "Current Layer", "dialog.simple_source.local_file": "Choose File", "dialog.simple_source.no_active_layer": a(619), "dialog.simple_source.pick_error": a(2508) }, be = (o) => typeof o === a(1361), Q0 = () => { +const ox = ni(a(774), async ({ level: o, messages: x }) => { + const t = a, { mcpMesh: r } = await Promise[t(855)]()[t(634)](() => eu); + await r[t(540)](t(1020))[t(810)][t(2127)]({ level: o, messages: x }); +}), oi = { "preview.show": "显示预览框 ({{count}}张图片)", "gateway.select_ai_service": a(266), "provider.select.title": "选择 AI 服务提供商", "provider.comfyui.description": a(2855), "provider.replicate.description": a(1201), "provider.runninghub.description": a(478), "provider.google.description": a(2076), "provider.sdppp_sponsor.description": a(375), "task.waiting_upload": a(337), "task.creating_task": a(463), "task.running_duration": a(1558), "task.cancelled": a(1142), "task.cancel_failed": a(2955), "task.default_name": a(2833), "comfy.connect": "连接", "comfy.load_failed": a(317), "comfy.loading": "ComfyUI加载中...", "comfy.channel_connecting": "通道连接中...", "comfy.server_reconnecting": a(1888), "comfy.version_mismatch": "Comfy侧SDPPP版本({{comfyVersion}})与插件({{pluginVersion}})不匹配,运行可能有问题", "comfy.cloud_recommend": a(676), "comfy.your_workflows": "你的工作流", "comfy.refresh_workflows": a(1564), "comfy.queue_progress": "(队列:{{queueSize}}) {{progress}}% {{executingNodeTitle}}...", "comfy.save": "保存", "comfy.refresh": "刷新", "comfy.stop_cancel_all": a(1277), "comfy.stop_auto_run": a(805), "comfy.start_auto_run": "画布变动后自动运行", "comfy.auto_run_status": a(958), "comfy.run": "运行", "comfy.back": "返回", "comfy.uploading": a(2999), "comfy_simple.refreshing_preview": a(1524), "comfy.select_workflow": a(350), "comfy.task.name": "ComfyUI - {{workflowName}}", "comfy.error.task_cancelled": a(1142), "comfy.task.processing_progress": a(2990), "comfy.help_tooltip": a(940), "comfy.no_workflow_selected": a(688), "comfy_simple.missing_url": "尚未配置 ComfyUI 连接,请先设置地址。", "comfy_simple.loading_webview": "正在连接 ComfyUI...", "comfy_simple.http_error": a(2530), "comfy_simple.wait_connect": a(678), "comfy_simple.loading": "工作流打开中", "comfy_simple.connection_required": "ComfyUI 未就绪", "comfy_simple.preview_empty": a(1798), "comfy_simple.progress.idle": "空闲", "comfy_simple.auto_run": "自动", "comfy_simple.workflow_quick": "快捷", "comfy_simple.multiplier.X1": "X1", "comfy_simple.multiplier.X2": "X2", "comfy_simple.multiplier.X4": "X4", "comfy_simple.multiplier.X10": "X10", "comfy_simple.prompt_templates.manage_tooltip": a(1688), "comfy_simple.prompt_templates.button": a(2515), "comfy_simple.prompt_templates.save_error": a(2707), "comfy_simple.prompt_templates.missing_key": a(1757), "comfy_simple.prompt_templates.missing_value": a(2699), "comfy_simple.prompt_templates.duplicate_key": a(1095), "comfy_simple.prompt_templates.save_success": a(575), "comfy_simple.prompt_templates.delete_confirm_title": a(2562), "comfy_simple.prompt_templates.delete_confirm_content": "确定要删除此模板吗?", "comfy_simple.prompt_templates.delete_success": a(753), "comfy_simple.prompt_templates.add_title": "新增模板", "comfy_simple.prompt_templates.edit_title": a(2881), "comfy_simple.prompt_templates.modal_title": a(930), "comfy_simple.prompt_templates.description": "管理 Comfy Simple 工作流的提示词片段。", "comfy_simple.prompt_templates.add_button": a(675), "comfy_simple.prompt_templates.name_placeholder": "模板名称", "comfy_simple.prompt_templates.value_placeholder": a(2172), "comfy_simple.fallback.title": a(1044), "comfy_simple.fallback.button": "更多设置", "comfy_simple.prompt_templates.positive_label": a(358), "comfy_simple.prompt_templates.negative_label": a(808), "comfy_simple.prompt_templates.negative_placeholder": a(351), "comfy_simple.prompt_templates.negative_empty": a(1605), "comfy_simple.prompt_templates.default_section": a(2693), "comfy_simple.prompt_templates.default_empty": "暂无默认模板。", "comfy_simple.prompt_templates.default_tag": "默认", "comfy_simple.prompt_templates.custom_section": "我的模板", "comfy_simple.prompt_templates.custom_empty": "还没有自定义模板。", "comfy_simple.prompt_templates.applied_success": "模板已应用。", "comfy_simple.prompt_templates.applied_failed": a(603), "comfy_simple.prompt_templates.apply_unavailable": a(2997), "comfy_simple.prompt_templates.apply_failed_missing_binding": a(582), "comfy_simple.prompt_templates.apply_failed_caller_unavailable": "无法写入{{part}}提示词:ComfyUI 尚未就绪。", "comfy_simple.prompt_templates.apply_failed_set_error": a(2417), "common.delete": "删除", "comfy_simple.preview_click_to_send": a(1057), "comfy_simple.workflow_select.empty": "暂无可用工作流。", "comfy_simple.workflow_select.select": "选择", "comfy_simple.workflow_select.selected": "已选择", "comfy_simple.workflow_select.current": "当前", "comfy_simple.workflow_select.load_failed": a(2940), "comfy_simple.workflow_select.members_only": a(488), "boundary.title": a(2763), "boundary.tooltip": a(2427), "boundary.current_canvas": "整个画布", "boundary.current_layer": "当前图层", "boundary.current_selection": a(1686), "boundary.set_as_canvas": "设为画布", "boundary.set_as_layer": a(1823), "boundary.set_as_selection": a(404), "http.404": a(2119), "http.401": "未授权 (401)", "http.403": a(1797), "http.408": "请求超时 (408)", "http.500": a(1924), "http.501": a(2431), "http.502": a(1623), "http.503": a(1638), "http.504": a(637), "http.unknown": "未知错误({{code}})", "runninghub.get_apikey": a(969), "runninghub.apikey_placeholder": a(2092), "runninghub.app_id": a(2570), "runninghub.webapp_id_placeholder": a(1829), "runninghub.open_app": a(2956), "runninghub.execute": "执行", "runninghub.running": a(385), "runninghub.rh_coins": a(1264), "runninghub.current_tasks": a(2646), "runninghub.help_tooltip": a(940), "runninghub.stop_all": "停止全部", "runninghub.status.waiting": "排队等待", "runninghub.status.running": a(378), "runninghub.status.failed": a(1866), "runninghub.status.success": a(2630), "image.auto_refetch": a(2379), "local_resource.selection.images": "图片", "runninghub.error.get_result_failed": a(2443), "runninghub.error.task_failed": "任务执行失败: {{error}}", "runninghub.error.task_incomplete": a(425), "runninghub.error.account_status_http": a(654), "runninghub.error.account_status_reason_unknown": "获取账户信息失败", "runninghub.error.account_status_failed": a(450), "runninghub.error.form_data_http": a(1536), "runninghub.error.form_data_reason_unknown": a(2294), "runninghub.error.form_data_failed": a(1394), "runninghub.error.node_info_missing": "运行失败 - 未获取到 nodeInfoList,请先执行 getNodes()。", "runninghub.error.run_http": "run API 调用失败 - HTTP 错误,状态: {{status}}", "runninghub.error.run_reason_default": a(2616), "runninghub.error.run_failed": a(384), "runninghub.error.status_http": a(2325), "runninghub.error.status_reason_unknown": "获取任务状态失败", "runninghub.error.status_failed": "status API 调用失败 - {{reason}}", "runninghub.error.outputs_http": "outputs API 调用失败 - HTTP 错误,状态: {{status}}", "runninghub.error.outputs_failed": "outputs API 调用失败 - {{reason}}", "runninghub.task.title": "RunningHub - {{webappId}}", "runninghub.error.upload_http": a(1676), "runninghub.error.upload_reason_unknown": a(2006), "runninghub.error.upload_failed": a(2310), "runninghub.error.services_unavailable": "SDPPPX 服务不可用", "customapi.error.no_image_returned": a(1786), "customapi.error.openai_api": a(1895), "customapi.error.input_required": a(1685), "customapi.error.generation_failed": a(703), "customapi.error.model_required": a(2179), "customapi.task.name.google": "Google Gemini - 图片生成", "customapi.task.name.openai": "OpenAI - 图片编辑", "customapi.error.unsupported_image_input": a(2031), "replicate.get_apikey": a(2464), "replicate.apikey_placeholder": a(1240), "replicate.execute": "执行", "replicate.model_placeholder": a(2605), "replicate.help_tooltip": a(940), "replicate.loading": "加载中...", "replicate.running": a(385), "replicate.stop": "停止", "replicate.error.result_fetch_failed": a(1512), "liblib.get_apikey": a(273), "liblib.execute": "执行", "common.close": "关闭", "common.save": "保存", "common.save_and_run": a(2857), "common.loading": a(2633), "common.list_separator": "、", "common.error": "错误", "common.error.unknown": a(1940), "common.error.task_creation_aborted": a(1451), "common.error.status_check_aborted": a(792), "common.error.result_fetch_aborted": a(2909), "common.error.upload_aborted": a(1079), "common.success": "成功", "common.failed": "失败", "common.generating": a(2799), "common.cancel": "取消", "common.confirm": "确认", "common.options": "选项", "common.options_separator": "=== 选项 ===", "upload_pass.error.unsupported_type": a(1321), "upload_pass.error.uploader_missing": a(1634), webviewInForeground: a(666), webviewInForeground2: "点我恢复", "auth.login_success": a(2898), "auth.username_label": "用户名: {{username}}", "auth.email_label": a(865), "auth.logout": a(1535), "auth.login_required": "请登陆后使用插件", "image.send.select_position": "请选择要发送图像的位置", "image.send.sending": a(1666), "image.layer.new": a(1549), "image.layer.current": a(923), "image.layer.fit_to_current": a(2004), "image.layer.fit_to_selection": a(979), "image.layer.fit_to_canvas": a(2334), "image.shortcut_auth_required": a(419), "image.shortcut_focus_required": a(1001), "image.get.select_image": a(2422), "image.get.entire_canvas": "整个画布", "image.get.canvas": "画布", "image.get.current_layer": a(923), "image.get.current_layer_bounds": a(1578), "image.get.selection_bounds": a(1286), "image.get.canvas_bounds": a(440), "image.crop_by_selection": a(2789), "image.limit_size": a(1029), "image.crop.none": "不裁剪", "image.crop.inpaint": a(959), "image.crop.outpaint": a(1165), "image.send_all": "发送所有", "image.save_all": a(564), "image.save_current": "保存当前", "image.delete_current": a(470), "image.more_actions": a(2128), "image.jump_to_last": "跳转到最后一个", "image.clear_all": a(1628), "image.send_to_ps": a(1399), "image.download": "下载", "image.copy": "复制", "image.sending": a(2604), "image.sending_all": a(360), "mask.get.select_mask": a(415), "mask.selection": "选区", "mask.current_layer_bounds": a(2867), "mask.all": "全部", "mask.selection_exclude": a(761), "mask.current_layer_exclude": a(1597), "mask.empty": "空", "widgetable.photoshop.deprecated_node": a(1986), "work_boundary.error.empty_selection_mask": a(1716), "work_boundary.error.primary_resource_missing": "缺少主图资源", "work_boundary.error.mask_resource_missing": a(1529), "work_boundary.error.mask_apply_empty": "遮罩应用后未得到资源", "document {{0}} not found": a(2998), "create document for preview": a(1470), "resize document for preview": "调整预览文档尺寸", "create document for sent images": a(1682), "show sent images": "显示发送的图片", "create layer failed": a(2290), "layer not found {{0}}": a(1527), "layer not found: {{0}}": a(1527), "layer {{0}} is not a group": a(581), "no linked layer for {{0}}": a(1825), "no first related layer in {{0}}": a(737), "merge group failed": a(1646), "get content of layer {{0}}": a(1253), "get layer info": a(2752), "get_layer_info: layer_identify required": a(577), "get pixel of {{0}} failed": "获取像素失败: {{0}}", "get selection failed": "获取选区失败", "invalid name: {{0}}": a(984), "desire bounds is null": a(883), "intersect or scaledDesire is null": a(3010), 'only layer kind "TEXT" is supported, invalid layer: {{0}}': "不支持非文本图层: {{0}}", "select layer": a(1303), "run Photoshop Action": a(428), "Action {{0}} not found": a(2879), "Action set {{0}} not found": a(2567), "set text to layer": a(2532), "ComfyManager not found, cannot reboot": "Comfy Manager未安装,无法重启", "Failed to reboot ComfyUI": "重启ComfyUI失败", "image.upload.from_canvas": "画布", "image.upload.from_curlayer": a(923), "image.upload.from_selection": "选区", "image.upload.from_harddisk": "磁盘", "image.upload.clear": "清空", "image.upload.uploading": a(2765), "image.upload.syncing": a(1103), "image.upload.no_images": "暂无图片", "image.upload.error": a(1126), "image.upload.tooltip.more_options_hint": a(561), "image.upload.tooltip.alt.crop": a(815), "image.upload.tooltip.alt.reverse": a(1233), "image.upload.tooltip.image.canvas": a(1137), "image.upload.tooltip.image.curlayer": a(811), "image.upload.tooltip.mask.curlayer": a(2690), "image.upload.tooltip.mask.selection": a(1452), "image.upload.tooltip.mask.canvas": a(2700), "image.upload.tooltip.cut_action": a(2768), "image.upload.tooltip.scan_action": `获取图像 & +限制图像范围`, "image.upload.tooltip.autosync.on": a(623), "image.upload.tooltip.autosync.off": a(315), "image.upload.tooltip.sync_action": a(1566), "image.upload.autosync.fetching": a(408), "image.upload.autosync.status.enabled": "自动同步中…", "image.upload.autosync.status.disabled": "自动同步未打开", "image.upload.tooltip.current.canvas": a(841), "image.upload.tooltip.current.layer": "当前选项:图层", "image.upload.tooltip.current.layer_named": a(2662), "image.upload.tooltip.current.file": a(899), "image.upload.retry": "重试", "image.pack.local.button": "本地图片包", "image.pack.local.empty": a(628), "image.auto_send_enabled": "自动填入画布开启", "image.auto_send_disabled": a(1677), "image.upload.primary.auto": a(1212), "image.upload.primary.manual": "获取图片", "image.upload.primary.hint": "该节点默认继承当前图层与遮罩", "image.upload.primary.cut": "裁剪", "image.upload.primary.scan": "扫描", "image.upload.primary.hint.line1": a(1063), "image.upload.primary.hint.line2": "主图", "workflow.output.destination.title": "输出至:", "workflow.output.destination.canvas": "全图", "image.upload.primary.advanced": a(978), "image.upload.primary.advanced.modify": "修改", "image.upload.primary.advanced.reset": "重置", "image.upload.primary.advanced.local_file": a(1517), "image.upload.primary.advanced.content.canvas": "画布", "image.upload.primary.advanced.content.curlayer": a(923), "image.upload.primary.advanced.content.selection": "选区", "image.upload.primary.advanced.boundary.canvas": a(2214), "image.upload.primary.advanced.boundary.curlayer": a(2343), "image.upload.primary.advanced.boundary.selection": a(1851), "image.upload.primary.advanced.boundary.primary": a(328), "image.upload.source.file.tooltip": a(369), "image.upload.mode.file.label": "文件", "image.upload.mode.layer.label": "图层", "image.upload.mode.canvas.label": "画布", "image.upload.source.layer.tooltip": "使用当前图层", "image.upload.source.canvas.tooltip": a(2036), "image.upload.dropHint": "拖拽图片到此处松开完成上传", "image.upload.tooltip.clear_action": a(848), "image.upload.status.layer.short_named": a(2698), "image.upload.status.layer.short": "图层", "image.upload.status.file.short": a(2202), "image.upload.status.canvas.short": "画布", "image.upload.status.file.active": a(695), "image.upload.status.file.resetHint": a(1861), "image.upload.status.mask.resetHint": a(919), "image.upload.status.mask.modified": a(2835), "image.upload.status.boundary.resetHint": "点击恢复默认边界", "image.upload.status.boundary.modified": a(2977), "image.upload.status.boundary.docMismatch": a(1228), "image.upload.mask.button": "选区遮罩", "image.upload.mask.selection": a(1193), "image.upload.mask.layer": a(1383), "image.upload.remove_slot": a(2299), "image.upload.add_slot": "新增槽位", "video.local.button": "本地视频", "video.local.empty": a(2455), "video.local.remove": a(291), "source.source": "来源", "source.content": "内容", "source.boundary": "范围", "source.mask": "遮罩", "source.disk": "磁盘", "source.remote": "远端", "source.unknown": "未知", "source.ps_image": "PS图片", "source.ps_mask": "PS遮罩", "source.canvas": a(1091), "source.current_layer": a(923), "source.selection": "选区", "source.quality_percent": "质量{{percent}}%", "source.crop.positive": "正向裁剪", "source.crop.negative": "反向裁剪", "source.reverse": "反转", "send_images.create_document": a(346), "send_images.create_document_failed": a(1559), "photoshop.no_active_document": "没有活动文档", "photoshop.rectangle_coordinates_required": a(1299), "photoshop.create_guide_frame": a(2253), "photoshop.clear_guide_frame": a(2318), "photoshop.invalid_action": "无效操作: {{action}}", "photoshop.file_not_found": "文件未找到: {{path}}", "photoshop.failed_to_open_file_as_document": a(1200), "photoshop.invalid_boundary": a(724), "photoshop.failed_to_open_image_file": a(411), "photoshop.open_images_from_file": a(1768), "photoshop.failed_to_create_document_from_file": a(427), "google.field.image_input": a(1116), "google.field.prompt": a(2515), "google.field.batch_count": a(1523), "google.field.images_per_batch": a(2770), "google.status.success": "成功", "google.status.failed": "失败", "google.status.generating": a(2760), "google.apikey_placeholder": "请输入您的 Google API Key", "google.baseurl_placeholder": a(2664), "google.get_apikey": a(2680), "google.help_tooltip": "Google Gemini 图像生成器", "google.model_name": a(2915), "google.model_label": "模型", "google.model_placeholder": "选择模型", "google.stop": "停止", "google.loading": a(2633), "google.generating": a(2799), "google.generate": "生成", "image.auto_toggle": "自动", "image.import_as_smartobject": "作为智能对象导入", "image.import_as_newdoc": a(1309), "image.boundary": "边界", "image.import_tip": a(2912), "image.import_selection_button": a(548), "image.import_auto_hint": a(2706), "image.import_selection_hint": "使用当前选区边界", "auth.guest_login_success": "访客登录成功", "boundary.canvas": "画布", "boundary.select_boundary": a(1880), "boundary.selection": "选区", "boundary.max_size": a(1003), "boundary.max_size_error": a(1762), "boundary.max_size_hint": a(278), "boundary.max_size_placeholder": a(278), "boundary.no_limit": "不限", "boundary.image_quality": a(541), "boundary.image_quality_required": a(589), "boundary.image_quality_range": a(1787), "boundary.preview_main_image": a(1100), "boundary.preview_select": a(1651), "boundary.preview_alt": a(1652), "boundary.preview_placeholder": a(2491), "boundary.settings": a(1826), "convert widget {0} failed:": a(2142), "document {0} not found": a(2678), "image.document.new": a(776), "image.layer.smart_object": a(2816), "layer not found {0}": a(604), "photoshop.invalid_boundary_type": "无效的边界类型: {{type}}", "photoshop.no_active_layer": a(1276), "auth.login_hint": a(2356), "task.running": a(385), "task.execute": "运行", "task.stop": "停止", "task.importing_image": a(1082), "task.error.send_image_failed": a(905), "task.error.failed_status": a(3037), "taskrouter.template_placeholder": a(338), "taskrouter.balance": a(2050), "taskrouter.recharge": a(1807), "taskrouter.refresh_balance": a(1027), "taskrouter.no_schema": a(2989), "taskrouter.config.base_url": "TaskRouter 服务地址", "taskrouter.config.supabase_url": a(2759), "taskrouter.config.supabase_anon_key": a(1841), "taskrouter.error.remote_config_missing": a(348), "taskrouter.error.client_missing": a(1520), "taskrouter.error.template_missing": "未选择任务模板", "taskrouter.error.upload_provider_incompatible": a(871), "taskrouter.error.deferred_upload_failed": a(2959), "taskrouter.error.upload_control_unsupported": a(2433), "taskrouter.error.upload_resource_missing": a(1736), "taskrouter.error.tenant_unresolved": a(725), "taskrouter.error.supabase_session_failed": a(1607), "taskrouter.status.preparing": a(981), "taskrouter.status.uploading": "上传图片中...", "taskrouter.status.validating": "验证表单中...", "taskrouter.status.creating": a(463), "taskrouter.tab.editor": "运行", "taskrouter.tab.history": a(2671), "taskrouter.history.importing": a(1037), "taskrouter.history.send_failed_resource": a(1092), "taskrouter.history.send_failed_identifier": a(1042), "taskrouter.history.send_success": "图片已导入到画布", "taskrouter.history.select_prompt": "请选择一个历史任务", "taskrouter.history.duration_prefix": "耗时", "taskrouter.history.duration_unit": "秒", "taskrouter.history.createdAt": a(3039), "taskrouter.history.charge": a(1030), "taskrouter.history.charge_value": a(2435), "taskrouter.history.images": a(1266), "taskrouter.history.retry": "重新加载", "taskrouter.history.id": a(2635), "taskrouter.history.message": a(1415), "taskrouter.history.no_images": a(594), "taskrouter.history.client_missing": a(1520), "taskrouter.history.limit_notice": "当前版本限制获取最近10条", "taskrouter.history.refresh": "刷新", "taskrouter.history.detail_title": a(2853), "taskrouter.history.loading": a(735), "taskrouter.history.empty": a(1827), "taskrouter.history.started_at_label": a(924), "taskrouter.history.status.pending": a(1429), "taskrouter.history.status.running": a(766), "taskrouter.history.status.completed": a(682), "taskrouter.history.status.failed": "失败", "taskrouter.history.status.cancelled": a(1463), "plugin.menu.view_logs": "查看日志", "plugin.log.saved": a(1831), "plugin.log.save_failed": a(2900), "dialog.image_source.title": "选择图像来源", "dialog.image_source.primary_canvas": a(2131), "dialog.image_source.primary_curlayer": a(1353), "dialog.image_source.canvas_canvas": a(2533), "dialog.image_source.canvas_curlayer": a(2762), "dialog.image_source.curlayer_canvas": a(2490), "dialog.image_source.curlayer_curlayer": "以当前图层边界获取当前图层", "dialog.image_source.local_file": a(1517), "dialog.simple_source.title": "选择素材来源", "dialog.simple_source.canvas": "画布", "dialog.simple_source.current_layer": "当前图层", "dialog.simple_source.local_file": "选择文件", "dialog.simple_source.no_active_layer": a(2553), "dialog.simple_source.pick_error": a(629) }, ii = { "preview.show": "Show Preview ({{count}} images)", "gateway.select_ai_service": a(1196), "provider.select.title": a(1052), "provider.comfyui.description": a(1065), "provider.replicate.description": a(1585), "provider.runninghub.description": a(704), "provider.google.description": "OpenAI/Google format API", "provider.sdppp_sponsor.description": a(2560), "task.waiting_upload": "Waiting for image upload...", "task.creating_task": a(1362), "task.running_duration": a(389), "task.cancelled": a(1840), "task.cancel_failed": "Task cancel failed: {{error}}", "task.default_name": "AI Generation Task", "comfy.connect": "Connect", "comfy.load_failed": a(1709), "comfy.loading": a(1976), "comfy.channel_connecting": "Channel connecting...", "comfy.server_reconnecting": a(727), "comfy.version_mismatch": "Comfy SDPPP version ({{comfyVersion}}) does not match plugin ({{pluginVersion}}), may cause issues", "comfy.cloud_recommend": a(1949), "comfy.your_workflows": "Your Workflows", "comfy.refresh_workflows": a(1993), "comfy.queue_progress": a(1996), "comfy.save": a(1514), "comfy.refresh": "Refresh", "comfy.stop_cancel_all": a(639), "comfy.stop_auto_run": a(502), "comfy.start_auto_run": a(1017), "comfy.auto_run_status": "Auto-run workflow after changes...", "comfy.run": "Run", "comfy.back": a(325), "comfy.uploading": a(1845), "comfy_simple.refreshing_preview": "Refreshing preview...", "comfy.select_workflow": a(1134), "comfy.task.name": a(1649), "comfy.error.task_cancelled": "Task cancelled", "comfy.task.processing_progress": a(2293), "comfy.help_tooltip": a(1493), "comfy.no_workflow_selected": a(2229), "comfy_simple.missing_url": a(1105), "comfy_simple.loading_webview": a(1505), "comfy_simple.http_error": "Failed to connect to ComfyUI (HTTP {{code}})", "comfy_simple.wait_connect": a(2326), "comfy_simple.loading": a(1614), "comfy_simple.connection_required": "ComfyUI not ready", "comfy_simple.preview_empty": a(1109), "comfy_simple.progress.idle": a(1239), "comfy_simple.auto_run": "Auto", "comfy_simple.workflow_quick": a(936), "comfy_simple.multiplier.X1": "X1", "comfy_simple.multiplier.X2": "X2", "comfy_simple.multiplier.X4": "X4", "comfy_simple.multiplier.X10": "X10", "comfy_simple.prompt_templates.manage_tooltip": a(625), "comfy_simple.prompt_templates.button": a(2668), "comfy_simple.prompt_templates.save_error": a(559), "comfy_simple.prompt_templates.missing_key": a(1436), "comfy_simple.prompt_templates.missing_value": a(954), "comfy_simple.prompt_templates.duplicate_key": a(2713), "comfy_simple.prompt_templates.save_success": a(796), "comfy_simple.prompt_templates.delete_confirm_title": a(1892), "comfy_simple.prompt_templates.delete_confirm_content": a(1914), "comfy_simple.prompt_templates.delete_success": "Template removed.", "comfy_simple.prompt_templates.add_title": a(1474), "comfy_simple.prompt_templates.edit_title": a(1175), "comfy_simple.prompt_templates.modal_title": a(1395), "comfy_simple.prompt_templates.description": a(1900), "comfy_simple.prompt_templates.add_button": a(1687), "comfy_simple.prompt_templates.name_placeholder": a(2551), "comfy_simple.prompt_templates.value_placeholder": "Prompt content", "comfy_simple.fallback.title": "More Settings", "comfy_simple.fallback.button": "More Settings", "comfy_simple.prompt_templates.positive_label": "Positive Prompt", "comfy_simple.prompt_templates.negative_label": a(414), "comfy_simple.prompt_templates.negative_placeholder": a(2587), "comfy_simple.prompt_templates.negative_empty": a(2154), "comfy_simple.prompt_templates.default_section": a(2083), "comfy_simple.prompt_templates.default_empty": a(2168), "comfy_simple.prompt_templates.default_tag": a(830), "comfy_simple.prompt_templates.custom_section": "My Templates", "comfy_simple.prompt_templates.custom_empty": a(584), "comfy_simple.prompt_templates.applied_success": a(1909), "comfy_simple.prompt_templates.applied_failed": a(1015), "comfy_simple.prompt_templates.apply_unavailable": a(2552), "comfy_simple.prompt_templates.apply_failed_missing_binding": a(1364), "comfy_simple.prompt_templates.apply_failed_caller_unavailable": "Failed to update the {{part}} prompt: ComfyUI connection is not ready.", "comfy_simple.prompt_templates.apply_failed_set_error": a(1304), "common.delete": "Delete", "comfy_simple.preview_click_to_send": a(947), "comfy_simple.workflow_select.empty": a(2192), "comfy_simple.workflow_select.select": a(2042), "comfy_simple.workflow_select.selected": a(1234), "comfy_simple.workflow_select.current": "Current", "comfy_simple.workflow_select.load_failed": a(2638), "comfy_simple.workflow_select.members_only": a(2339), "boundary.title": a(494), "boundary.tooltip": a(1555), "boundary.current_canvas": "Entire Canvas", "boundary.current_layer": a(739), "boundary.current_selection": "Current Selection", "boundary.set_as_canvas": "Set as Canvas", "boundary.set_as_layer": a(1391), "boundary.set_as_selection": "Set as Current Selection", "http.404": a(2480), "http.401": "Unauthorized (401)", "http.403": a(2882), "http.408": a(2730), "http.500": a(2862), "http.501": a(2813), "http.502": a(749), "http.503": a(1404), "http.504": a(2852), "http.unknown": a(907), "runninghub.get_apikey": "Click to get RunningHub APIKey", "runninghub.apikey_placeholder": a(2941), "runninghub.app_id": a(1118), "runninghub.webapp_id_placeholder": a(1552), "runninghub.open_app": "Press Enter to open app: {{appName}}", "runninghub.execute": a(2934), "runninghub.running": a(442), "runninghub.rh_coins": "RH Coins:", "runninghub.current_tasks": a(2227), "runninghub.help_tooltip": a(1493), "runninghub.stop_all": a(553), "runninghub.status.waiting": "Waiting in queue", "runninghub.status.running": a(1473), "runninghub.status.failed": a(3043), "runninghub.status.success": a(468), "image.auto_refetch": "Auto repick from PS", "local_resource.selection.images": a(874), "runninghub.error.get_result_failed": "Failed to get result: {{error}}", "runninghub.error.task_failed": a(2473), "runninghub.error.task_incomplete": a(1733), "runninghub.error.account_status_http": a(1211), "runninghub.error.account_status_reason_unknown": a(284), "runninghub.error.account_status_failed": "getAccountStatus API failed - {{reason}}", "runninghub.error.form_data_http": a(1472), "runninghub.error.form_data_reason_unknown": a(2143), "runninghub.error.form_data_failed": "getNodes API failed - {{reason}}", "runninghub.error.node_info_missing": "run API failed - nodeInfoList unavailable. Please call getNodes() first.", "runninghub.error.run_http": a(307), "runninghub.error.run_reason_default": a(2301), "runninghub.error.run_failed": a(2787), "runninghub.error.status_http": a(2985), "runninghub.error.status_reason_unknown": a(2112), "runninghub.error.status_failed": a(635), "runninghub.error.outputs_http": a(2359), "runninghub.error.outputs_failed": a(1516), "runninghub.task.title": "RunningHub - {{webappId}}", "runninghub.error.upload_http": a(499), "runninghub.error.upload_reason_unknown": a(1398), "runninghub.error.upload_failed": a(1680), "runninghub.error.services_unavailable": a(2412), "customapi.error.no_image_returned": a(1184), "customapi.error.openai_api": "OpenAI API error", "customapi.error.input_required": a(1569), "customapi.error.generation_failed": a(2360), "customapi.error.model_required": a(1879), "customapi.task.name.google": "Google Gemini - Image Generation", "customapi.task.name.openai": a(3045), "customapi.error.unsupported_image_input": a(1572), "replicate.get_apikey": "How to get APIKey", "replicate.apikey_placeholder": a(2549), "replicate.execute": "Execute", "replicate.model_placeholder": a(1287), "replicate.help_tooltip": a(1493), "replicate.loading": "Loading...", "replicate.running": a(442), "replicate.stop": "Stop", "replicate.error.result_fetch_failed": "Result fetch failed", "liblib.get_apikey": a(1744), "liblib.execute": a(2934), "common.close": a(321), "common.save": a(1514), "common.save_and_run": a(814), "common.loading": a(1288), "common.list_separator": ", ", "common.error": a(1459), "common.error.unknown": "Unknown error", "common.error.task_creation_aborted": a(2441), "common.error.status_check_aborted": "Status check aborted", "common.error.result_fetch_aborted": "Result fetch aborted", "common.error.upload_aborted": "Upload aborted", "common.success": a(468), "common.failed": "Failed", "common.generating": a(2485), "common.cancel": a(2093), "common.confirm": a(673), "common.options": a(504), "common.options_separator": a(1040), "upload_pass.error.unsupported_type": a(1754), "upload_pass.error.uploader_missing": a(2880), webviewInForeground: "PS shortcuts may be blocked by plugin...", webviewInForeground2: a(2430), "auth.login_success": "Login Successful", "auth.username_label": a(685), "auth.email_label": a(1072), "auth.logout": a(2047), "auth.login_required": a(1576), "image.send.select_position": a(2725), "image.send.sending": a(2931), "image.layer.new": a(2138), "image.layer.current": a(739), "image.layer.fit_to_current": a(1308), "image.layer.fit_to_selection": a(719), "image.layer.fit_to_canvas": a(2563), "image.shortcut_auth_required": a(2169), "image.shortcut_focus_required": a(1469), "image.get.select_image": a(2451), "image.get.entire_canvas": a(1925), "image.get.canvas": a(617), "image.get.current_layer": a(739), "image.get.current_layer_bounds": "Current layer bounds only", "image.get.selection_bounds": a(743), "image.get.canvas_bounds": a(2181), "image.crop_by_selection": a(1372), "image.limit_size": "Limit image size", "image.crop.none": a(2965), "image.crop.inpaint": a(1864), "image.crop.outpaint": a(2925), "image.send_all": "Send all", "image.save_all": "Save all", "image.save_current": a(2244), "image.delete_current": a(1365), "image.more_actions": "More actions", "image.jump_to_last": a(910), "image.clear_all": a(2393), "image.send_to_ps": "Send to PS", "image.download": a(1087), "image.copy": a(2969), "image.sending": a(2370), "image.sending_all": a(306), "mask.get.select_mask": a(1591), "mask.selection": a(1382), "mask.current_layer_bounds": a(2761), "mask.all": "All", "mask.selection_exclude": "Exclude selection", "mask.current_layer_exclude": a(2163), "mask.empty": a(2154), "widgetable.photoshop.deprecated_node": a(1347), "work_boundary.error.empty_selection_mask": a(2005), "work_boundary.error.primary_resource_missing": a(1580), "work_boundary.error.mask_resource_missing": "Mask resource is missing", "work_boundary.error.mask_apply_empty": a(920), "document {{0}} not found": a(523), "create document for preview": a(2420), "resize document for preview": a(1702), "create document for sent images": a(2482), "show sent images": "Show sent images", "create layer failed": "Create layer failed", "layer not found {{0}}": a(556), "layer not found: {{0}}": "Layer not found: {{0}}", "layer {{0}} is not a group": a(2023), "no linked layer for {{0}}": "No linked layer for {{0}}", "no first related layer in {{0}}": a(1848), "merge group failed": a(2610), "get content of layer {{0}}": a(785), "get layer info": a(1806), "get_layer_info: layer_identify required": a(2190), "get pixel of {{0}} failed": "Get pixel of {{0}} failed", "get selection failed": a(2057), "invalid name: {{0}}": a(2675), "desire bounds is null": a(2889), "intersect or scaledDesire is null": "Intersect or scaledDesire is null", 'only layer kind "TEXT" is supported, invalid layer: {{0}}': a(2156), "select layer": a(607), "run Photoshop Action": a(2891), "Action {{0}} not found": a(1970), "Action set {{0}} not found": a(2061), "set text to layer": a(308), "ComfyManager not found, cannot reboot": a(2795), "Failed to reboot ComfyUI": a(2901), "image.upload.from_canvas": a(617), "image.upload.from_curlayer": a(739), "image.upload.from_selection": a(1382), "image.upload.from_harddisk": a(1330), "image.upload.clear": a(1421), "image.upload.uploading": "Uploading, if the image too large, may be lag...", "image.upload.syncing": a(1930), "image.upload.no_images": a(1197), "image.upload.error": a(461), "image.upload.tooltip.alt.crop": a(1817), "image.upload.tooltip.alt.reverse": a(729), "image.upload.tooltip.image.canvas": a(2191), "image.upload.tooltip.image.curlayer": a(2636), "image.upload.tooltip.mask.canvas": a(2838), "image.upload.tooltip.mask.curlayer": "Get mask from Current Layer", "image.upload.tooltip.mask.selection": a(387), "image.upload.tooltip.cut_action": a(1939), "image.upload.tooltip.scan_action": a(2615), "image.upload.tooltip.autosync.on": a(572), "image.upload.tooltip.autosync.off": a(1419), "image.upload.tooltip.sync_action": "Sync current content", "image.upload.tooltip.more_options_hint": "Hold Shift for more options; Ctrl for single fetch", "image.upload.tooltip.current.canvas": "Current selection: Canvas", "image.upload.tooltip.current.layer": a(3047), "image.upload.tooltip.current.layer_named": a(1692), "image.upload.tooltip.current.file": "Current option: File", "image.upload.autosync.fetching": a(292), "image.upload.autosync.status.enabled": a(1876), "image.upload.autosync.status.disabled": a(2859), "image.upload.retry": "Retry", "image.pack.local.button": "Local image pack", "image.pack.local.empty": "No images yet", "image.auto_send_enabled": a(1132), "image.auto_send_disabled": a(1860), "image.upload.primary.auto": a(292), "image.upload.primary.manual": "Get Image", "image.upload.primary.cut": a(1622), "image.upload.primary.scan": a(2224), "image.upload.primary.hint": "This node defaults to current layer + mask", "image.upload.primary.hint.line1": "Defaults using", "image.upload.primary.hint.line2": a(2467), "workflow.output.destination.title": a(2694), "workflow.output.destination.canvas": a(699), "image.upload.primary.advanced": a(356), "image.upload.primary.advanced.modify": "Modify", "image.upload.primary.advanced.reset": a(2341), "image.upload.primary.advanced.local_file": "Local file", "image.upload.primary.advanced.content.canvas": a(617), "image.upload.primary.advanced.content.curlayer": a(1152), "image.upload.primary.advanced.content.selection": a(1382), "image.upload.primary.advanced.boundary.canvas": a(1205), "image.upload.primary.advanced.boundary.curlayer": a(1261), "image.upload.primary.advanced.boundary.selection": a(508), "image.upload.primary.advanced.boundary.primary": a(733), "image.upload.mode.file.label": a(1862), "image.upload.mode.layer.label": a(344), "image.upload.mode.canvas.label": "Canvas", "image.upload.source.file.tooltip": a(263), "image.upload.source.layer.tooltip": "Use current layer", "image.upload.source.canvas.tooltip": "Use entire canvas", "image.upload.dropHint": "Drag images here and release to upload", "image.upload.tooltip.clear_action": a(2991), "image.upload.status.layer.short_named": "Layer {{layerName}}", "image.upload.status.layer.short": "Layer", "image.upload.status.file.short": a(2581), "image.upload.status.canvas.short": a(617), "image.upload.status.file.active": a(1911), "image.upload.status.file.resetHint": "Click to remove local file", "image.upload.status.mask.resetHint": a(326), "image.upload.status.mask.modified": a(3008), "image.upload.status.boundary.resetHint": a(3015), "image.upload.status.boundary.modified": "Rescoped", "image.upload.status.boundary.docMismatch": a(2902), "image.upload.mask.button": a(1320), "image.upload.mask.selection": a(1320), "image.upload.mask.layer": "Layer mask", "image.upload.remove_slot": a(881), "image.upload.add_slot": a(1168), "video.local.button": "Local video", "video.local.empty": "No videos yet", "video.local.remove": "Remove video", "source.source": a(1417), "source.content": a(2150), "source.boundary": a(806), "source.mask": a(2973), "source.disk": a(1330), "source.remote": a(1704), "source.unknown": a(1670), "source.ps_image": "PS", "source.ps_mask": "PS", "source.canvas": a(617), "source.current_layer": a(677), "source.selection": a(1382), "source.quality_percent": a(2282), "source.crop.positive": "Positive Crop", "source.crop.negative": "Negative Crop", "source.reverse": a(2007), "send_images.create_document": a(336), "send_images.create_document_failed": "Create document failed", "photoshop.no_active_document": a(929), "photoshop.rectangle_coordinates_required": a(2289), "photoshop.create_guide_frame": a(1499), "photoshop.clear_guide_frame": "Clear guide frame", "photoshop.invalid_action": a(1297), "photoshop.file_not_found": a(2681), "photoshop.failed_to_open_file_as_document": a(1933), "photoshop.invalid_boundary": a(1217), "photoshop.failed_to_open_image_file": a(1967), "photoshop.open_images_from_file": a(2525), "photoshop.failed_to_create_document_from_file": a(446), "google.field.image_input": a(1154), "google.field.prompt": a(887), "google.field.batch_count": "Batch Count", "google.field.images_per_batch": a(1468), "google.status.success": a(468), "google.status.failed": a(3043), "google.status.generating": a(2611), "google.apikey_placeholder": "Enter Google API Key", "google.get_apikey": "Get API Key", "google.baseurl_placeholder": a(1964), "google.help_tooltip": a(670), "google.model_name": a(647), "google.model_label": a(2151), "google.model_placeholder": "Select a model", "google.stop": a(1963), "google.loading": a(1288), "google.generating": a(2485), "google.generate": a(631), "image.auto_toggle": a(2234), "image.import_as_smartobject": a(2358), "image.import_as_newdoc": a(1713), "image.boundary": a(546), "image.import_tip": "Hold Shift key to import as new document", "image.import_selection_button": "Send to Selection", "image.import_auto_hint": a(1944), "image.import_selection_hint": "Use current selection boundary", "auth.guest_login_success": a(1743), "boundary.canvas": "Canvas", "boundary.select_boundary": a(472), "boundary.selection": a(1382), "boundary.max_size": "Max size (px)", "boundary.max_size_error": a(373), "boundary.max_size_hint": a(1821), "boundary.max_size_placeholder": a(1821), "boundary.no_limit": a(2922), "boundary.image_quality": a(686), "boundary.image_quality_required": a(970), "boundary.image_quality_range": "Range 1-100", "boundary.preview_main_image": "Output to", "boundary.preview_select": a(2371), "boundary.preview_alt": a(3035), "boundary.preview_placeholder": "Click to use current selection", "boundary.settings": a(1011), "convert widget {0} failed:": "Failed to convert widget {0}:", "document {0} not found": "Document {0} not found", "image.document.new": "New Document", "image.layer.smart_object": a(363), "layer not found {0}": a(359), "photoshop.invalid_boundary_type": a(2278), "photoshop.no_active_layer": a(2019), "auth.login_hint": "Please click Login in the top-right corner.", "task.running": "Running...", "task.execute": "Run", "task.stop": "Stop", "task.importing_image": a(329), "task.error.send_image_failed": "Failed to send image {{index}}: {{error}}", "task.error.failed_status": a(2120), "taskrouter.template_placeholder": a(1121), "taskrouter.balance": a(691), "taskrouter.recharge": "Sponsor", "taskrouter.refresh_balance": a(2502), "taskrouter.no_schema": a(1172), "taskrouter.config.base_url": a(2609), "taskrouter.config.supabase_url": "Supabase URL", "taskrouter.config.supabase_anon_key": a(2425), "taskrouter.error.remote_config_missing": "Missing TaskRouter remote config: {{missing}}. Please check the remote config and try again.", "taskrouter.error.client_missing": "TaskRouter client is not initialized", "taskrouter.error.template_missing": a(1761), "taskrouter.error.upload_provider_incompatible": a(2410), "taskrouter.error.deferred_upload_failed": a(462), "taskrouter.error.upload_control_unsupported": "Upload controls are not supported for TaskRouter", "taskrouter.error.upload_resource_missing": a(2536), "taskrouter.error.tenant_unresolved": a(1690), "taskrouter.error.supabase_session_failed": a(2418), "taskrouter.status.preparing": "Preparing...", "taskrouter.status.uploading": a(1102), "taskrouter.status.validating": a(2003), "taskrouter.status.creating": "Creating task...", "taskrouter.tab.editor": "Run", "taskrouter.tab.history": a(506), "taskrouter.history.importing": a(1849), "taskrouter.history.send_failed_resource": a(2634), "taskrouter.history.send_failed_identifier": a(270), "taskrouter.history.send_success": "Image imported to canvas", "taskrouter.history.select_prompt": a(2470), "taskrouter.history.duration_prefix": a(951), "taskrouter.history.duration_unit": "sec", "taskrouter.history.createdAt": "Created At", "taskrouter.history.charge": a(1511), "taskrouter.history.charge_value": "-{{value}} points", "taskrouter.history.images": a(2287), "taskrouter.history.retry": a(613), "taskrouter.history.id": a(2746), "taskrouter.history.message": a(2446), "taskrouter.history.no_images": a(2051), "taskrouter.history.client_missing": a(1438), "taskrouter.history.limit_notice": a(403), "taskrouter.history.refresh": a(2153), "taskrouter.history.detail_title": a(1790), "taskrouter.history.loading": a(2196), "taskrouter.history.empty": "No history tasks", "taskrouter.history.started_at_label": a(1140), "taskrouter.history.status.pending": a(1673), "taskrouter.history.status.running": a(1473), "taskrouter.history.status.completed": a(347), "taskrouter.history.status.failed": "Failed", "taskrouter.history.status.cancelled": "Cancelled", "plugin.menu.view_logs": "View Logs", "plugin.log.saved": a(517), "plugin.log.save_failed": "Failed to write log file:", "dialog.image_source.title": a(911), "dialog.image_source.primary_canvas": a(2496), "dialog.image_source.primary_curlayer": a(723), "dialog.image_source.canvas_canvas": a(2702), "dialog.image_source.canvas_curlayer": a(2448), "dialog.image_source.curlayer_canvas": "Fetch canvas with current-layer boundary", "dialog.image_source.curlayer_curlayer": a(711), "dialog.image_source.local_file": a(2829), "dialog.simple_source.title": "Select Source", "dialog.simple_source.canvas": "Canvas", "dialog.simple_source.current_layer": a(739), "dialog.simple_source.local_file": a(1553), "dialog.simple_source.no_active_layer": a(1097), "dialog.simple_source.pick_error": a(1636) }, be = (o) => typeof o === a(2028), J0 = () => { const o = a; let x, t; const r = new Promise((e, s) => { x = e, t = s; }); - return r[o(2457)] = x, r.reject = t, r; -}, za = (o) => o == null ? "" : "" + o, di = (o, x, t) => { - o.forEach((r) => { - x[r] && (t[r] = x[r]); + return r[o(855)] = x, r[o(965)] = t, r; +}, za = (o) => o == null ? "" : "" + o, ci = (o, x, t) => { + o[a(430)]((e) => { + x[e] && (t[e] = x[e]); }); -}, hi = /###/g, Ha = (o) => o && o.indexOf(a(668)) > -1 ? o[a(1521)](hi, ".") : o, Va = (o) => !o || be(o), ex = (o, x, t) => { - const r = a, e = be(x) ? x[r(3263)](".") : x; - let s = 0; - for (; s < e[r(2710)] - 1; ) { +}, ui = /###/g, Ha = (o) => o && o[a(2273)]("###") > -1 ? o[a(1252)](ui, ".") : o, Va = (o) => !o || be(o), Y0 = (o, x, t) => { + const r = be(x) ? x.split(".") : x; + let e = 0; + for (; e < r.length - 1; ) { if (Va(o)) return {}; - const n = Ha(e[s]); - !o[n] && t && (o[n] = new t()), Object[r(2587)][r(1315)][r(1522)](o, n) ? o = o[n] : o = {}, ++s; + const s = Ha(r[e]); + !o[s] && t && (o[s] = new t()), Object.prototype.hasOwnProperty.call(o, s) ? o = o[s] : o = {}, ++e; } - return Va(o) ? {} : { obj: o, k: Ha(e[s]) }; + return Va(o) ? {} : { obj: o, k: Ha(r[e]) }; }, Ba = (o, x, t) => { - const r = a, { obj: e, k: s } = ex(o, x, Object); - if (e !== void 0 || x[r(2710)] === 1) { + const r = a, { obj: e, k: s } = Y0(o, x, Object); + if (e !== void 0 || x[r(1148)] === 1) { e[s] = t; return; } - let n = x[x[r(2710)] - 1], i = x[r(1387)](0, x[r(2710)] - 1), c = ex(o, i, Object); - for (; c[r(2147)] === void 0 && i.length; ) - n = i[i[r(2710)] - 1] + "." + n, i = i[r(1387)](0, i[r(2710)] - 1), c = ex(o, i, Object), c != null && c[r(2147)] && typeof c[r(2147)][c.k + "." + n] < "u" && (c[r(2147)] = void 0); - c.obj[c.k + "." + n] = t; -}, pi = (o, x, t, r) => { - const e = a, { obj: s, k: n } = ex(o, x, Object); - s[n] = s[n] || [], s[n][e(3062)](t); -}, _x = (o, x) => { - const t = a, { obj: r, k: e } = ex(o, x); - if (r && Object[t(2587)][t(1315)].call(r, e)) + let n = x[x[r(1148)] - 1], i = x[r(1908)](0, x[r(1148)] - 1), c = Y0(o, i, Object); + for (; c[r(2505)] === void 0 && i[r(1148)]; ) + n = i[i[r(1148)] - 1] + "." + n, i = i.slice(0, i[r(1148)] - 1), c = Y0(o, i, Object), c != null && c[r(2505)] && typeof c[r(2505)][c.k + "." + n] < "u" && (c[r(2505)] = void 0); + c[r(2505)][c.k + "." + n] = t; +}, di = (o, x, t, r) => { + const e = a, { obj: s, k: n } = Y0(o, x, Object); + s[n] = s[n] || [], s[n][e(3019)](t); +}, Fx = (o, x) => { + const t = a, { obj: r, k: e } = Y0(o, x); + if (r && Object[t(1706)][t(1446)].call(r, e)) return r[e]; -}, mi = (o, x, t) => { - const r = _x(o, t); - return r !== void 0 ? r : _x(x, t); -}, Ks = (o, x, t) => { - for (const r in x) - r !== "__proto__" && r !== "constructor" && (r in o ? be(o[r]) || o[r] instanceof String || be(x[r]) || x[r] instanceof String ? t && (o[r] = x[r]) : Ks(o[r], x[r], t) : o[r] = x[r]); +}, li = (o, x, t) => { + const r = Fx(o, t); + return r !== void 0 ? r : Fx(x, t); +}, Vs = (o, x, t) => { + const r = a; + for (const e in x) + e !== r(2806) && e !== r(1230) && (e in o ? be(o[e]) || o[e] instanceof String || be(x[e]) || x[e] instanceof String ? t && (o[e] = x[e]) : Vs(o[e], x[e], t) : o[e] = x[e]); return o; -}, U0 = (o) => o[a(1521)](/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); -var bi = { "&": a(932), "<": "<", ">": ">", '"': a(2886), "'": a(963), "/": a(1331) }; -const gi = (o) => be(o) ? o.replace(/[&<>"'\/]/g, (x) => bi[x]) : o; -class yi { +}, $0 = (o) => o[a(1252)](/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, a(537)); +var fi = { "&": a(456), "<": a(1008), ">": a(710), '"': """, "'": a(2058), "/": a(503) }; +const hi = (o) => be(o) ? o.replace(/[&<>"'\/]/g, (x) => fi[x]) : o; +class pi { constructor(x) { const t = a; - this[t(2772)] = x, this[t(1132)] = /* @__PURE__ */ new Map(), this[t(2861)] = []; + this[t(2228)] = x, this[t(2696)] = /* @__PURE__ */ new Map(), this[t(2133)] = []; } getRegExp(x) { - const t = a, r = this.regExpMap[t(674)](x); + const t = a, r = this.regExpMap[t(1507)](x); if (r !== void 0) return r; const e = new RegExp(x); - return this[t(2861)][t(2710)] === this.capacity && this.regExpMap.delete(this[t(2861)][t(1263)]()), this.regExpMap[t(780)](x, e), this[t(2861)][t(3062)](x), e; + return this[t(2133)][t(1148)] === this[t(2228)] && this[t(2696)].delete(this[t(2133)].shift()), this[t(2696)][t(823)](x, e), this.regExpQueue[t(3019)](x), e; } } -const vi = [" ", ",", "?", "!", ";"], wi = new yi(20), Si = (o, x, t) => { +const mi = [" ", ",", "?", "!", ";"], bi = new pi(20), gi = (o, x, t) => { const r = a; x = x || "", t = t || ""; - const e = vi[r(2581)]((i) => x[r(2436)](i) < 0 && t.indexOf(i) < 0); + const e = mi.filter((i) => x.indexOf(i) < 0 && t[r(2273)](i) < 0); if (e.length === 0) return !0; - const s = wi[r(2907)]("(" + e[r(1930)]((i) => i === "?" ? "\\?" : i)[r(1592)]("|") + ")"); - let n = !s[r(2346)](o); + const s = bi[r(432)]("(" + e[r(2739)]((i) => i === "?" ? "\\?" : i).join("|") + ")"); + let n = !s[r(1531)](o); if (!n) { - const i = o.indexOf(t); - i > 0 && !s[r(2346)](o[r(672)](0, i)) && (n = !0); + const i = o[r(2273)](t); + i > 0 && !s[r(1531)](o[r(2888)](0, i)) && (n = !0); } return n; }, Jt = (o, x, t = ".") => { const r = a; if (!o) return; if (o[x]) - return Object[r(2587)][r(1315)][r(1522)](o, x) ? o[x] : void 0; - const e = x.split(t); + return Object[r(1706)].hasOwnProperty[r(2689)](o, x) ? o[x] : void 0; + const e = x[r(1958)](t); let s = o; - for (let n = 0; n < e[r(2710)]; ) { - if (!s || typeof s !== r(1304)) return; + for (let n = 0; n < e[r(1148)]; ) { + if (!s || typeof s !== r(2220)) return; let i, c = ""; - for (let u = n; u < e[r(2710)]; ++u) + for (let u = n; u < e.length; ++u) if (u !== n && (c += t), c += e[u], i = s[c], i !== void 0) { - if (["string", "number", r(3106)].indexOf(typeof i) > -1 && u < e[r(2710)] - 1) continue; + if ([r(2028), r(867), "boolean"][r(2273)](typeof i) > -1 && u < e.length - 1) continue; n += u - n + 1; break; } s = i; } return s; -}, nx = (o) => o == null ? void 0 : o[a(1521)]("_", "-"), ki = { type: a(2303), log(o) { +}, sx = (o) => o == null ? void 0 : o[a(1252)]("_", "-"), yi = { type: a(872), log(o) { const x = a; - this[x(1121)](x(1635), o); + this.output(x(2127), o); }, warn(o) { - const x = a; - this[x(1121)](x(1114), o); + this[a(1749)]("warn", o); }, error(o) { this.output("error", o); }, output(o, x) { var t, r; (r = (t = console == null ? void 0 : console[o]) == null ? void 0 : t.apply) == null || r.call(t, console, x); } }; -class Fx { +class _x { constructor(x, t = {}) { - this[a(1775)](x, t); + this.init(x, t); } - [a(1775)](x, t = {}) { + [a(2462)](x, t = {}) { const r = a; - this.prefix = t[r(632)] || r(3182), this.logger = x || ki, this[r(2876)] = t, this.debug = t[r(3158)]; + this[r(1004)] = t[r(1004)] || "i18next:", this[r(872)] = x || yi, this[r(1341)] = t, this[r(819)] = t.debug; } - [a(1635)](...x) { + log(...x) { const t = a; - return this.forward(x, t(1635), "", !0); + return this[t(1160)](x, t(2127), "", !0); } - [a(1114)](...x) { + [a(2618)](...x) { const t = a; - return this[t(1494)](x, t(1114), "", !0); + return this[t(1160)](x, t(2618), "", !0); } - [a(490)](...x) { - return this[a(1494)](x, "error", ""); + error(...x) { + return this[a(1160)](x, "error", ""); } - [a(1925)](...x) { + [a(1009)](...x) { const t = a; - return this.forward(x, t(1114), t(1090), !0); + return this[t(1160)](x, "warn", t(1714), !0); } - [a(1494)](x, t, r, e) { + forward(x, t, r, e) { const s = a; - return e && !this[s(3158)] ? null : (be(x[0]) && (x[0] = "" + r + this[s(632)] + " " + x[0]), this[s(2303)][t](x)); + return e && !this.debug ? null : (be(x[0]) && (x[0] = "" + r + this[s(1004)] + " " + x[0]), this[s(872)][t](x)); } - [a(1602)](x) { + create(x) { const t = a; - return new Fx(this[t(2303)], { prefix: this[t(632)] + ":" + x + ":", ...this[t(2876)] }); + return new _x(this[t(872)], { prefix: this[t(1004)] + ":" + x + ":", ...this[t(1341)] }); } - [a(2472)](x) { + [a(820)](x) { const t = a; - return x = x || this.options, x[t(632)] = x[t(632)] || this[t(632)], new Fx(this[t(2303)], x); + return x = x || this[t(1341)], x[t(1004)] = x[t(1004)] || this[t(1004)], new _x(this[t(872)], x); } } -var d0 = new Fx(); +var f0 = new _x(); class Ax { constructor() { const x = a; - this[x(2279)] = {}; + this[x(2034)] = {}; } on(x, t) { const r = a; - return x.split(" ")[r(2617)]((e) => { + return x.split(" ")[r(430)]((e) => { const s = r; - this.observers[e] || (this[s(2279)][e] = /* @__PURE__ */ new Map()); - const n = this[s(2279)][e].get(t) || 0; - this[s(2279)][e][s(780)](t, n + 1); + this[s(2034)][e] || (this[s(2034)][e] = /* @__PURE__ */ new Map()); + const n = this[s(2034)][e].get(t) || 0; + this[s(2034)][e][s(823)](t, n + 1); }), this; } - [a(2854)](x, t) { + [a(641)](x, t) { const r = a; - if (this[r(2279)][x]) { + if (this[r(2034)][x]) { if (!t) { - delete this[r(2279)][x]; + delete this[r(2034)][x]; return; } - this[r(2279)][x][r(875)](t); + this.observers[x][r(2375)](t); } } - [a(2256)](x, ...t) { + [a(1271)](x, ...t) { const r = a; - this[r(2279)][x] && Array[r(2047)](this[r(2279)][x].entries())[r(2617)](([s, n]) => { + this[r(2034)][x] && Array[r(1546)](this.observers[x][r(1434)]())[r(430)](([s, n]) => { for (let i = 0; i < n; i++) s(...t); - }), this[r(2279)]["*"] && Array[r(2047)](this[r(2279)]["*"][r(2634)]())[r(2617)](([s, n]) => { - for (let i = 0; i < n; i++) - s.apply(s, [x, ...t]); + }), this.observers["*"] && Array[r(1546)](this.observers["*"].entries())[r(430)](([s, n]) => { + const i = r; + for (let c = 0; c < n; c++) + s[i(1046)](s, [x, ...t]); }); } } class Wa extends Ax { - constructor(x, t = { ns: [a(1650)], defaultNS: a(1650) }) { + constructor(x, t = { ns: [a(1747)], defaultNS: "translation" }) { const r = a; - super(), this[r(2663)] = x || {}, this[r(2876)] = t, this[r(2876)][r(1200)] === void 0 && (this[r(2876)][r(1200)] = "."), this.options.ignoreJSONStructure === void 0 && (this[r(2876)][r(2358)] = !0); + super(), this.data = x || {}, this.options = t, this[r(1341)][r(2596)] === void 0 && (this[r(1341)][r(2596)] = "."), this[r(1341)].ignoreJSONStructure === void 0 && (this[r(1341)].ignoreJSONStructure = !0); } - [a(1654)](x) { + [a(999)](x) { const t = a; - this[t(2876)].ns.indexOf(x) < 0 && this[t(2876)].ns[t(3062)](x); + this[t(1341)].ns.indexOf(x) < 0 && this[t(1341)].ns[t(3019)](x); } - [a(667)](x) { - const t = a, r = this[t(2876)].ns[t(2436)](x); - r > -1 && this[t(2876)].ns.splice(r, 1); + removeNamespaces(x) { + const t = a, r = this.options.ns[t(2273)](x); + r > -1 && this.options.ns[t(2176)](r, 1); } - [a(824)](x, t, r, e = {}) { - var f, l; - const s = a, n = e[s(1200)] !== void 0 ? e[s(1200)] : this[s(2876)][s(1200)], i = e[s(2358)] !== void 0 ? e.ignoreJSONStructure : this[s(2876)].ignoreJSONStructure; + [a(381)](x, t, r, e = {}) { + var d, l; + const s = a, n = e.keySeparator !== void 0 ? e[s(2596)] : this[s(1341)][s(2596)], i = e.ignoreJSONStructure !== void 0 ? e[s(2226)] : this[s(1341)][s(2226)]; let c; - x.indexOf(".") > -1 ? c = x.split(".") : (c = [x, t], r && (Array[s(3255)](r) ? c[s(3062)](...r) : be(r) && n ? c.push(...r[s(3263)](n)) : c[s(3062)](r))); - const u = _x(this[s(2663)], c); - return !u && !t && !r && x.indexOf(".") > -1 && (x = c[0], t = c[1], r = c[s(1387)](2)[s(1592)](".")), u || !i || !be(r) ? u : Jt((l = (f = this[s(2663)]) == null ? void 0 : f[x]) == null ? void 0 : l[t], r, n); + x[s(2273)](".") > -1 ? c = x[s(1958)](".") : (c = [x, t], r && (Array[s(500)](r) ? c[s(3019)](...r) : be(r) && n ? c[s(3019)](...r.split(n)) : c[s(3019)](r))); + const u = Fx(this[s(1506)], c); + return !u && !t && !r && x.indexOf(".") > -1 && (x = c[0], t = c[1], r = c.slice(2)[s(896)](".")), u || !i || !be(r) ? u : Jt((l = (d = this[s(1506)]) == null ? void 0 : d[x]) == null ? void 0 : l[t], r, n); } - [a(507)](x, t, r, e, s = { silent: !1 }) { - const n = a, i = s[n(1200)] !== void 0 ? s[n(1200)] : this.options.keySeparator; + [a(2531)](x, t, r, e, s = { silent: !1 }) { + const n = a, i = s.keySeparator !== void 0 ? s.keySeparator : this[n(1341)][n(2596)]; let c = [x, t]; - r && (c = c[n(2700)](i ? r[n(3263)](i) : r)), x[n(2436)](".") > -1 && (c = x[n(3263)]("."), e = t, t = c[1]), this[n(1654)](t), Ba(this[n(2663)], c, e), s[n(938)] || this[n(2256)]("added", x, t, r, e); + r && (c = c.concat(i ? r.split(i) : r)), x[n(2273)](".") > -1 && (c = x[n(1958)]("."), e = t, t = c[1]), this[n(999)](t), Ba(this[n(1506)], c, e), s[n(2122)] || this.emit(n(2516), x, t, r, e); } addResources(x, t, r, e = { silent: !1 }) { const s = a; for (const n in r) - (be(r[n]) || Array[s(3255)](r[n])) && this[s(507)](x, t, n, r[n], { silent: !0 }); - e[s(938)] || this.emit("added", x, t, r); + (be(r[n]) || Array[s(500)](r[n])) && this[s(2531)](x, t, n, r[n], { silent: !0 }); + e.silent || this[s(1271)](s(2516), x, t, r); } - [a(607)](x, t, r, e, s, n = { silent: !1, skipCopy: !1 }) { + [a(1022)](x, t, r, e, s, n = { silent: !1, skipCopy: !1 }) { const i = a; let c = [x, t]; - x[i(2436)](".") > -1 && (c = x.split("."), e = r, r = t, t = c[1]), this[i(1654)](t); - let u = _x(this[i(2663)], c) || {}; - n[i(1469)] || (r = JSON[i(2774)](JSON.stringify(r))), e ? Ks(u, r, s) : u = { ...u, ...r }, Ba(this[i(2663)], c, u), n[i(938)] || this[i(2256)]("added", x, t, r); + x[i(2273)](".") > -1 && (c = x[i(1958)]("."), e = r, r = t, t = c[1]), this.addNamespaces(t); + let u = Fx(this[i(1506)], c) || {}; + n[i(624)] || (r = JSON[i(1598)](JSON[i(3038)](r))), e ? Vs(u, r, s) : u = { ...u, ...r }, Ba(this.data, c, u), n.silent || this[i(1271)](i(2516), x, t, r); } - [a(855)](x, t) { + [a(2205)](x, t) { const r = a; - this[r(1203)](x, t) && delete this[r(2663)][x][t], this.removeNamespaces(t), this[r(2256)](r(1226), x, t); + this[r(2874)](x, t) && delete this[r(1506)][x][t], this[r(530)](t), this[r(1271)](r(2686), x, t); } - hasResourceBundle(x, t) { - return this[a(824)](x, t) !== void 0; + [a(2874)](x, t) { + return this[a(381)](x, t) !== void 0; } - [a(2948)](x, t) { + [a(1482)](x, t) { const r = a; - return t || (t = this[r(2876)][r(1589)]), this.getResource(x, t); + return t || (t = this[r(1341)][r(1674)]), this.getResource(x, t); } - [a(790)](x) { - return this[a(2663)][x]; + [a(501)](x) { + return this[a(1506)][x]; } - [a(3068)](x) { - const t = a, r = this[t(790)](x); - return !!(r && Object[t(2123)](r) || []).find((s) => r[s] && Object[t(2123)](r[s])[t(2710)] > 0); + hasLanguageSomeTranslations(x) { + const t = a, r = this.getDataByLanguage(x); + return !!(r && Object[t(1877)](r) || [])[t(304)]((s) => r[s] && Object[t(1877)](r[s])[t(1148)] > 0); } - [a(1363)]() { - return this[a(2663)]; + [a(1159)]() { + return this[a(1506)]; } } -var Gs = { processors: {}, addPostProcessor(o) { +var Bs = { processors: {}, addPostProcessor(o) { const x = a; - this[x(3234)][o[x(2641)]] = o; + this[x(644)][o[x(1166)]] = o; }, handle(o, x, t, r, e) { const s = a; - return o[s(2617)]((n) => { + return o[s(430)]((n) => { var c; const i = s; - x = ((c = this[i(3234)][n]) == null ? void 0 : c[i(2383)](x, t, r, e)) ?? x; + x = ((c = this[i(644)][n]) == null ? void 0 : c[i(2286)](x, t, r, e)) ?? x; }), x; } }; -const Js = Symbol("i18next/PATH_KEY"); -function Pi() { - const o = a, x = [], t = Object[o(1602)](null); +const Ws = Symbol(a(2911)); +function vi() { + const o = a, x = [], t = Object[o(558)](null); let r; - return t[o(674)] = (e, s) => { + return t[o(1507)] = (e, s) => { var i; const n = o; - return (i = r == null ? void 0 : r[n(1002)]) == null || i.call(r), s === Js ? x : (x.push(s), r = Proxy[n(1205)](e, t), r[n(1355)]); - }, Proxy[o(1205)](Object[o(1602)](null), t)[o(1355)]; + return (i = r == null ? void 0 : r[n(2305)]) == null || i.call(r), s === Ws ? x : (x[n(3019)](s), r = Proxy[n(2590)](e, t), r[n(2207)]); + }, Proxy.revocable(Object[o(558)](null), t).proxy; } function Qt(o, x) { - const t = a, { [Js]: r } = o(Pi()); - return r[t(1592)]((x == null ? void 0 : x[t(1200)]) ?? "."); + const t = a, { [Ws]: r } = o(vi()); + return r[t(896)]((x == null ? void 0 : x[t(2596)]) ?? "."); } -const Za = {}, Zx = (o) => !be(o) && typeof o !== a(3106) && typeof o !== a(2665); -class Tx extends Ax { +const Ka = {}, Kx = (o) => !be(o) && typeof o != "boolean" && typeof o !== a(867); +class Nx extends Ax { constructor(x, t = {}) { const r = a; - super(), di([r(3082), r(1476), "pluralResolver", r(1896), r(1577), r(911), r(2254)], x, this), this.options = t, this.options[r(1200)] === void 0 && (this[r(2876)][r(1200)] = "."), this.logger = d0[r(1602)](r(1781)); + super(), ci([r(1793), r(1416), "pluralResolver", r(3044), "backendConnector", "i18nFormat", r(2182)], x, this), this.options = t, this[r(1341)][r(2596)] === void 0 && (this[r(1341)].keySeparator = "."), this.logger = f0[r(558)](r(2329)); } - [a(759)](x) { + changeLanguage(x) { x && (this.language = x); } - exists(x, t = { interpolation: {} }) { + [a(722)](x, t = { interpolation: {} }) { const r = a, e = { ...t }; if (x == null) return !1; - const s = this[r(2457)](x, e); - if ((s == null ? void 0 : s[r(2475)]) === void 0) return !1; - const n = Zx(s.res); - return !(e[r(984)] === !1 && n); + const s = this[r(855)](x, e); + if ((s == null ? void 0 : s[r(2070)]) === void 0) return !1; + const n = Kx(s.res); + return !(e[r(383)] === !1 && n); } - [a(827)](x, t) { + [a(1412)](x, t) { const r = a; - let e = t.nsSeparator !== void 0 ? t.nsSeparator : this[r(2876)][r(1707)]; + let e = t[r(2916)] !== void 0 ? t[r(2916)] : this[r(1341)][r(2916)]; e === void 0 && (e = ":"); - const s = t[r(1200)] !== void 0 ? t[r(1200)] : this.options[r(1200)]; - let n = t.ns || this.options[r(1589)] || []; - const i = e && x[r(2436)](e) > -1, c = !this.options[r(1204)] && !t[r(1200)] && !this.options[r(1354)] && !t[r(1707)] && !Si(x, e, s); + const s = t.keySeparator !== void 0 ? t[r(2596)] : this.options.keySeparator; + let n = t.ns || this[r(1341)][r(1674)] || []; + const i = e && x.indexOf(e) > -1, c = !this.options[r(836)] && !t.keySeparator && !this.options[r(2899)] && !t[r(2916)] && !gi(x, e, s); if (i && !c) { - const u = x[r(2314)](this[r(1896)].nestingRegexp); - if (u && u[r(2710)] > 0) return { key: x, namespaces: be(n) ? [n] : n }; - const f = x[r(3263)](e); - (e !== s || e === s && this[r(2876)].ns[r(2436)](f[0]) > -1) && (n = f[r(1263)]()), x = f[r(1592)](s); + const u = x[r(789)](this[r(3044)][r(2966)]); + if (u && u[r(1148)] > 0) return { key: x, namespaces: be(n) ? [n] : n }; + const d = x[r(1958)](e); + (e !== s || e === s && this[r(1341)].ns[r(2273)](d[0]) > -1) && (n = d[r(1766)]()), x = d[r(896)](s); } return { key: x, namespaces: be(n) ? [n] : n }; } - [a(1543)](x, t, r) { + [a(2918)](x, t, r) { const e = a; - let s = typeof t === e(1304) ? { ...t } : t; - if (typeof s !== e(1304) && this[e(2876)].overloadTranslationOptionHandler && (s = this[e(2876)][e(2556)](arguments)), typeof s === e(1304) && (s = { ...s }), s || (s = {}), x == null) return ""; - typeof x == "function" && (x = Qt(x, { ...this[e(2876)], ...s })), Array[e(3255)](x) || (x = [String(x)]); - const n = s[e(1766)] !== void 0 ? s[e(1766)] : this[e(2876)].returnDetails, i = s[e(1200)] !== void 0 ? s.keySeparator : this[e(2876)][e(1200)], { key: c, namespaces: u } = this[e(827)](x[x[e(2710)] - 1], s), f = u[u.length - 1]; - let l = s[e(1707)] !== void 0 ? s.nsSeparator : this[e(2876)].nsSeparator; + let s = typeof t === e(2220) ? { ...t } : t; + if (typeof s !== e(2220) && this[e(1341)][e(2262)] && (s = this[e(1341)][e(2262)](arguments)), typeof s === e(2220) && (s = { ...s }), s || (s = {}), x == null) return ""; + typeof x === e(1149) && (x = Qt(x, { ...this[e(1341)], ...s })), Array[e(500)](x) || (x = [String(x)]); + const n = s[e(1693)] !== void 0 ? s[e(1693)] : this[e(1341)][e(1693)], i = s.keySeparator !== void 0 ? s[e(2596)] : this[e(1341)][e(2596)], { key: c, namespaces: u } = this[e(1412)](x[x[e(1148)] - 1], s), d = u[u.length - 1]; + let l = s.nsSeparator !== void 0 ? s.nsSeparator : this[e(1341)][e(2916)]; l === void 0 && (l = ":"); - const d = s[e(3164)] || this[e(3090)], g = s[e(1173)] || this.options[e(1173)]; - if ((d == null ? void 0 : d[e(1945)]()) === "cimode") - return g ? n ? { res: "" + f + l + c, usedKey: c, exactUsedKey: c, usedLng: d, usedNS: f, usedParams: this[e(2555)](s) } : "" + f + l + c : n ? { res: c, usedKey: c, exactUsedKey: c, usedLng: d, usedNS: f, usedParams: this.getUsedParamsDetails(s) } : c; + const f = s[e(2986)] || this.language, g = s[e(1740)] || this.options[e(1740)]; + if ((f == null ? void 0 : f.toLowerCase()) === e(2421)) + return g ? n ? { res: "" + d + l + c, usedKey: c, exactUsedKey: c, usedLng: f, usedNS: d, usedParams: this[e(1179)](s) } : "" + d + l + c : n ? { res: c, usedKey: c, exactUsedKey: c, usedLng: f, usedNS: d, usedParams: this[e(1179)](s) } : c; const h = this.resolve(x, s); - let m = h == null ? void 0 : h[e(2475)]; - const v = (h == null ? void 0 : h[e(527)]) || c, k = (h == null ? void 0 : h[e(2752)]) || c, P = [e(2646), e(1828), e(1769)], T = s.joinArrays !== void 0 ? s[e(2960)] : this[e(2876)][e(2960)], q = !this[e(911)] || this[e(911)][e(1550)], R = s[e(1758)] !== void 0 && !be(s[e(1758)]), E = Tx[e(3193)](s), C = R ? this[e(2041)].getSuffix(d, s[e(1758)], s) : "", A = s[e(3097)] && R ? this[e(2041)].getSuffix(d, s[e(1758)], { ordinal: !1 }) : "", O = R && !s[e(3097)] && s[e(1758)] === 0, M = O && s[e(2074) + this[e(2876)][e(2850)] + e(699)] || s[e(2074) + C] || s[e(2074) + A] || s.defaultValue; - let _ = m; - q && !m && E && (_ = M); - const N = Zx(_), z = Object[e(2587)][e(2732)].apply(_); - if (q && _ && N && P[e(2436)](z) < 0 && !(be(T) && Array[e(3255)](_))) { - if (!s[e(984)] && !this[e(2876)][e(984)]) { - !this[e(2876)][e(2679)] && this[e(2303)][e(1114)](e(2570)); - const U = this[e(2876)][e(2679)] ? this[e(2876)][e(2679)](v, _, { ...s, ns: u }) : e(1942) + c + " (" + this[e(3090)] + e(2166); - return n ? (h.res = U, h[e(525)] = this.getUsedParamsDetails(s), h) : U; + let m = h == null ? void 0 : h.res; + const v = (h == null ? void 0 : h[e(1689)]) || c, k = (h == null ? void 0 : h.exactUsedKey) || c, I = ["[object Number]", e(890), e(2243)], T = s.joinArrays !== void 0 ? s.joinArrays : this[e(1341)][e(1811)], q = !this[e(1002)] || this[e(1002)].handleAsObject, R = s[e(459)] !== void 0 && !be(s[e(459)]), P = Nx[e(802)](s), C = R ? this[e(1025)].getSuffix(f, s[e(459)], s) : "", j = s[e(2008)] && R ? this.pluralResolver.getSuffix(f, s[e(459)], { ordinal: !1 }) : "", D = R && !s[e(2008)] && s[e(459)] === 0, O = D && s[e(1890) + this[e(1341)][e(1870)] + e(852)] || s[e(1890) + C] || s["defaultValue" + j] || s[e(1890)]; + let N = m; + q && !m && P && (N = O); + const _ = Kx(N), z = Object[e(1706)][e(511)].apply(N); + if (q && N && _ && I[e(2273)](z) < 0 && !(be(T) && Array[e(500)](N))) { + if (!s[e(383)] && !this.options[e(383)]) { + !this[e(1341)][e(1319)] && this[e(872)][e(2618)](e(2508)); + const U = this.options[e(1319)] ? this[e(1341)][e(1319)](v, N, { ...s, ns: u }) : "key '" + c + " (" + this[e(1503)] + e(1313); + return n ? (h[e(2070)] = U, h[e(1410)] = this[e(1179)](s), h) : U; } if (i) { - const U = Array[e(3255)](_), H = U ? [] : {}, G = U ? k : v; - for (const re in _) - if (Object[e(2587)][e(1315)].call(_, re)) { - const se = "" + G + i + re; - E && !m ? H[re] = this[e(1543)](se, { ...s, defaultValue: Zx(M) ? M[re] : void 0, joinArrays: !1, ns: u }) : H[re] = this.translate(se, { ...s, joinArrays: !1, ns: u }), H[re] === se && (H[re] = _[re]); + const U = Array.isArray(N), H = U ? [] : {}, G = U ? k : v; + for (const ie in N) + if (Object[e(1706)][e(1446)][e(2689)](N, ie)) { + const ue = "" + G + i + ie; + P && !m ? H[ie] = this[e(2918)](ue, { ...s, defaultValue: Kx(O) ? O[ie] : void 0, joinArrays: !1, ns: u }) : H[ie] = this[e(2918)](ue, { ...s, joinArrays: !1, ns: u }), H[ie] === ue && (H[ie] = N[ie]); } m = H; } - } else if (q && be(T) && Array.isArray(m)) - m = m[e(1592)](T), m && (m = this[e(1700)](m, x, s, r)); + } else if (q && be(T) && Array[e(500)](m)) + m = m[e(896)](T), m && (m = this[e(2136)](m, x, s, r)); else { let U = !1, H = !1; - !this[e(1075)](m) && E && (U = !0, m = M), !this[e(1075)](m) && (H = !0, m = c); - const G = s[e(1729)] || this[e(2876)][e(1729)], re = G && H ? void 0 : m, se = E && M !== m && this[e(2876)][e(2672)]; - if (H || U || se) { - if (this.logger.log(se ? "updateKey" : e(799), d, f, c, se ? M : m), i) { - const Se = this[e(2457)](c, { ...s, keySeparator: !1 }); - Se && Se[e(2475)] && this.logger[e(1114)](e(2321)); + !this[e(2316)](m) && P && (U = !0, m = O), !this[e(2316)](m) && (H = !0, m = c); + const G = s.missingKeyNoValueFallbackToKey || this[e(1341)][e(1726)], ie = G && H ? void 0 : m, ue = P && O !== m && this[e(1341)][e(876)]; + if (H || U || ue) { + if (this[e(872)][e(2127)](ue ? "updateKey" : e(1235), f, d, c, ue ? O : m), i) { + const Pe = this.resolve(c, { ...s, keySeparator: !1 }); + Pe && Pe[e(2070)] && this[e(872)][e(2618)]("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format."); } - let fe = []; - const de = this[e(1476)].getFallbackCodes(this.options[e(1338)], s.lng || this[e(3090)]); - if (this[e(2876)][e(2281)] === e(2575) && de && de[0]) for (let Se = 0; Se < de[e(2710)]; Se++) - fe.push(de[Se]); - else this[e(2876)].saveMissingTo === "all" ? fe = this[e(1476)][e(2825)](s.lng || this[e(3090)]) : fe.push(s.lng || this[e(3090)]); - const le = (Se, _e, Me) => { - var D; - const Fe = e, Je = E && Me !== m ? Me : re; - this[Fe(2876)][Fe(2340)] ? this[Fe(2876)][Fe(2340)](Se, f, _e, Je, se, s) : (D = this[Fe(1577)]) != null && D[Fe(3083)] && this.backendConnector[Fe(3083)](Se, f, _e, Je, se, s), this[Fe(2256)]("missingKey", Se, f, _e, m); + let le = []; + const oe = this[e(1416)][e(1038)](this[e(1341)][e(633)], s[e(2986)] || this[e(1503)]); + if (this[e(1341)].saveMissingTo === e(1311) && oe && oe[0]) for (let Pe = 0; Pe < oe[e(1148)]; Pe++) + le[e(3019)](oe[Pe]); + else this[e(1341)][e(417)] === "all" ? le = this[e(1416)][e(2018)](s[e(2986)] || this[e(1503)]) : le[e(3019)](s.lng || this[e(1503)]); + const fe = (Pe, ye, Le) => { + var A; + const _e = e, Je = P && Le !== m ? Le : ie; + this[_e(1341)][_e(1645)] ? this[_e(1341)][_e(1645)](Pe, d, ye, Je, ue, s) : (A = this[_e(2976)]) != null && A[_e(1332)] && this[_e(2976)].saveMissing(Pe, d, ye, Je, ue, s), this.emit(_e(1235), Pe, d, ye, m); }; - this[e(2876)][e(3083)] && (this[e(2876)][e(673)] && R ? fe[e(2617)]((Se) => { - const _e = e, Me = this[_e(2041)][_e(2033)](Se, s); - O && s[_e(2074) + this[_e(2876)][_e(2850)] + _e(699)] && Me.indexOf(this[_e(2876)].pluralSeparator + _e(699)) < 0 && Me[_e(3062)](this[_e(2876)].pluralSeparator + _e(699)), Me.forEach((Fe) => { - const Je = _e; - le([Se], c + Fe, s[Je(2074) + Fe] || M); + this[e(1341)][e(1332)] && (this[e(1341)].saveMissingPlurals && R ? le[e(430)]((Pe) => { + const ye = e, Le = this[ye(1025)][ye(342)](Pe, s); + D && s[ye(1890) + this[ye(1341)][ye(1870)] + ye(852)] && Le[ye(2273)](this[ye(1341)].pluralSeparator + ye(852)) < 0 && Le[ye(3019)](this.options.pluralSeparator + "zero"), Le[ye(430)]((_e) => { + const Je = ye; + fe([Pe], c + _e, s[Je(1890) + _e] || O); }); - }) : le(fe, c, M)); + }) : fe(le, c, O)); } - m = this[e(1700)](m, x, s, h, r), H && m === c && this[e(2876)][e(2489)] && (m = "" + f + l + c), (H || U) && this[e(2876)][e(3232)] && (m = this[e(2876)].parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? "" + f + l + c : c, U ? m : void 0, s)); + m = this[e(2136)](m, x, s, h, r), H && m === c && this[e(1341)][e(2958)] && (m = "" + d + l + c), (H || U) && this[e(1341)][e(656)] && (m = this.options[e(656)](this.options[e(2958)] ? "" + d + l + c : c, U ? m : void 0, s)); } - return n ? (h[e(2475)] = m, h[e(525)] = this.getUsedParamsDetails(s), h) : m; + return n ? (h[e(2070)] = m, h[e(1410)] = this[e(1179)](s), h) : m; } - [a(1700)](x, t, r, e, s) { - var u, f; + [a(2136)](x, t, r, e, s) { + var u, d; const n = a; - if ((u = this[n(911)]) != null && u.parse) x = this[n(911)].parse(x, { ...this[n(2876)].interpolation[n(1490)], ...r }, r[n(3164)] || this[n(3090)] || e[n(2282)], e.usedNS, e[n(527)], { resolved: e }); - else if (!r.skipInterpolation) { - r[n(1647)] && this.interpolator.init({ ...r, interpolation: { ...this.options.interpolation, ...r[n(1647)] } }); - const l = be(x) && (((f = r == null ? void 0 : r[n(1647)]) == null ? void 0 : f[n(940)]) !== void 0 ? r[n(1647)][n(940)] : this.options.interpolation[n(940)]); - let d; + if ((u = this[n(1002)]) != null && u[n(1598)]) x = this[n(1002)][n(1598)](x, { ...this[n(1341)][n(829)].defaultVariables, ...r }, r[n(2986)] || this.language || e[n(2644)], e[n(2258)], e[n(1689)], { resolved: e }); + else if (!r[n(2939)]) { + r[n(829)] && this[n(3044)].init({ ...r, interpolation: { ...this[n(1341)][n(829)], ...r[n(829)] } }); + const l = be(x) && (((d = r == null ? void 0 : r[n(829)]) == null ? void 0 : d.skipOnVariables) !== void 0 ? r[n(829)][n(309)] : this[n(1341)].interpolation[n(309)]); + let f; if (l) { - const h = x[n(2314)](this[n(1896)][n(2759)]); - d = h && h[n(2710)]; + const h = x[n(789)](this[n(3044)][n(2966)]); + f = h && h[n(1148)]; } - let g = r[n(1521)] && !be(r[n(1521)]) ? r[n(1521)] : r; - if (this[n(2876)].interpolation[n(1490)] && (g = { ...this[n(2876)][n(1647)].defaultVariables, ...g }), x = this[n(1896)][n(2925)](x, g, r[n(3164)] || this[n(3090)] || e.usedLng, r), l) { - const h = x[n(2314)](this[n(1896)][n(2759)]), m = h && h.length; - d < m && (r.nest = !1); + let g = r[n(1252)] && !be(r[n(1252)]) ? r.replace : r; + if (this.options.interpolation[n(1809)] && (g = { ...this[n(1341)][n(829)][n(1809)], ...g }), x = this.interpolator.interpolate(x, g, r[n(2986)] || this[n(1503)] || e[n(2644)], r), l) { + const h = x[n(789)](this[n(3044)].nestingRegexp), m = h && h.length; + f < m && (r[n(1096)] = !1); } - !r.lng && e && e.res && (r[n(3164)] = this[n(3090)] || e[n(2282)]), r[n(1365)] !== !1 && (x = this[n(1896)].nest(x, (...h) => { + !r.lng && e && e.res && (r[n(2986)] = this[n(1503)] || e[n(2644)]), r.nest !== !1 && (x = this[n(3044)][n(1096)](x, (...h) => { const m = n; - return (s == null ? void 0 : s[0]) === h[0] && !r[m(1181)] ? (this.logger.warn("It seems you are nesting recursively key: " + h[0] + m(2048) + t[0]), null) : this[m(1543)](...h, t); - }, r)), r[n(1647)] && this[n(1896)][n(2837)](); + return (s == null ? void 0 : s[0]) === h[0] && !r[m(1780)] ? (this[m(872)].warn(m(1844) + h[0] + m(759) + t[0]), null) : this[m(2918)](...h, t); + }, r)), r.interpolation && this[n(3044)].reset(); } - const i = r[n(2206)] || this[n(2876)][n(2206)], c = be(i) ? [i] : i; - return x != null && (c != null && c[n(2710)]) && r[n(2812)] !== !1 && (x = Gs[n(2655)](c, x, t, this[n(2876)] && this[n(2876)][n(1795)] ? { i18nResolved: { ...e, usedParams: this[n(2555)](r) }, ...r } : r, this)), x; + const i = r[n(2653)] || this[n(1341)][n(2653)], c = be(i) ? [i] : i; + return x != null && (c != null && c[n(1148)]) && r[n(1064)] !== !1 && (x = Bs[n(2703)](c, x, t, this[n(1341)] && this[n(1341)][n(2824)] ? { i18nResolved: { ...e, usedParams: this[n(1179)](r) }, ...r } : r, this)), x; } - [a(2457)](x, t = {}) { - const r = a; - let e, s, n, i, c; - return be(x) && (x = [x]), x[r(2617)]((u) => { - const f = r; - if (this.isValidLookup(e)) return; - const l = this.extractFromKey(u, t), d = l[f(480)]; - s = d; - let g = l[f(2470)]; - this[f(2876)][f(1555)] && (g = g.concat(this.options.fallbackNS)); - const h = t[f(1758)] !== void 0 && !be(t.count), m = h && !t[f(3097)] && t[f(1758)] === 0, v = t.context !== void 0 && (be(t[f(1181)]) || typeof t[f(1181)] === f(2665)) && t[f(1181)] !== "", k = t[f(2941)] ? t[f(2941)] : this[f(1476)][f(2825)](t.lng || this[f(3090)], t[f(1338)]); - g[f(2617)]((P) => { - var q, R; - const T = f; - this[T(1075)](e) || (c = P, !Za[k[0] + "-" + P] && ((q = this.utils) != null && q[T(3254)]) && !((R = this[T(2254)]) != null && R[T(3254)](c)) && (Za[k[0] + "-" + P] = !0, this[T(2303)][T(1114)](T(829) + s + '" for languages "' + k.join(", ") + T(2117) + c + '" was not yet loaded', T(1012))), k[T(2617)]((E) => { - var M; - const C = T; - if (this[C(1075)](e)) return; - i = E; - const A = [d]; - if ((M = this[C(911)]) != null && M[C(2019)]) this[C(911)][C(2019)](A, d, E, P, t); + [a(855)](x, t = {}) { + let r, e, s, n, i; + return be(x) && (x = [x]), x.forEach((c) => { + const u = Z; + if (this[u(2316)](r)) return; + const d = this[u(1412)](c, t), l = d.key; + e = l; + let f = d[u(1938)]; + this[u(1341)][u(2089)] && (f = f[u(1557)](this[u(1341)][u(2089)])); + const g = t[u(459)] !== void 0 && !be(t[u(459)]), h = g && !t[u(2008)] && t[u(459)] === 0, m = t.context !== void 0 && (be(t[u(1780)]) || typeof t.context === u(867)) && t[u(1780)] !== "", v = t[u(354)] ? t.lngs : this[u(1416)][u(2018)](t[u(2986)] || this[u(1503)], t[u(633)]); + f.forEach((k) => { + var T, q; + const I = u; + this.isValidLookup(r) || (i = k, !Ka[v[0] + "-" + k] && ((T = this.utils) != null && T.hasLoadedNamespace) && !((q = this[I(2182)]) != null && q[I(2578)](i)) && (Ka[v[0] + "-" + k] = !0, this[I(872)].warn(I(636) + e + I(1962) + v[I(896)](", ") + I(507) + i + I(1667), I(1403))), v[I(430)]((R) => { + var D; + const P = I; + if (this[P(2316)](r)) return; + n = R; + const C = [l]; + if ((D = this[P(1002)]) != null && D[P(2247)]) this[P(1002)].addLookupKeys(C, l, R, k, t); else { - let _; - h && (_ = this[C(2041)].getSuffix(E, t[C(1758)], t)); - const N = this[C(2876)].pluralSeparator + C(699), z = this[C(2876)].pluralSeparator + C(3097) + this[C(2876)][C(2850)]; - if (h && (t.ordinal && _[C(2436)](z) === 0 && A[C(3062)](d + _[C(1521)](z, this.options.pluralSeparator)), A.push(d + _), m && A[C(3062)](d + N)), v) { - const U = "" + d + (this.options[C(2005)] || "_") + t[C(1181)]; - A.push(U), h && (t[C(3097)] && _[C(2436)](z) === 0 && A.push(U + _[C(1521)](z, this[C(2876)].pluralSeparator)), A[C(3062)](U + _), m && A.push(U + N)); + let O; + g && (O = this[P(1025)][P(2090)](R, t[P(459)], t)); + const N = this[P(1341)].pluralSeparator + "zero", _ = this.options[P(1870)] + P(2008) + this[P(1341)][P(1870)]; + if (g && (t[P(2008)] && O[P(2273)](_) === 0 && C[P(3019)](l + O[P(1252)](_, this[P(1341)].pluralSeparator)), C[P(3019)](l + O), h && C[P(3019)](l + N)), m) { + const z = "" + l + (this[P(1341)][P(716)] || "_") + t.context; + C[P(3019)](z), g && (t[P(2008)] && O.indexOf(_) === 0 && C.push(z + O[P(1252)](_, this.options.pluralSeparator)), C[P(3019)](z + O), h && C[P(3019)](z + N)); } } - let O; - for (; O = A[C(2900)](); ) - !this[C(1075)](e) && (n = O, e = this[C(824)](E, P, O, t)); + let j; + for (; j = C.pop(); ) + !this[P(2316)](r) && (s = j, r = this[P(381)](R, k, j, t)); })); }); - }), { res: e, usedKey: s, exactUsedKey: n, usedLng: i, usedNS: c }; + }), { res: r, usedKey: e, exactUsedKey: s, usedLng: n, usedNS: i }; } isValidLookup(x) { const t = a; - return x !== void 0 && !(!this.options.returnNull && x === null) && !(!this.options[t(2119)] && x === ""); + return x !== void 0 && !(!this[t(1341)][t(1432)] && x === null) && !(!this[t(1341)].returnEmptyString && x === ""); } - [a(824)](x, t, r, e = {}) { + [a(381)](x, t, r, e = {}) { var n; const s = a; - return (n = this[s(911)]) != null && n[s(824)] ? this[s(911)][s(824)](x, t, r, e) : this[s(3082)][s(824)](x, t, r, e); + return (n = this[s(1002)]) != null && n[s(381)] ? this[s(1002)][s(381)](x, t, r, e) : this.resourceStore[s(381)](x, t, r, e); } - [a(2555)](x = {}) { - const t = a, r = [t(2074), t(3097), t(1181), t(1521), t(3164), t(2941), t(1338), "ns", t(1200), t(1707), t(984), t(1766), t(2960), t(2206), "interpolation"], e = x.replace && !be(x[t(1521)]); - let s = e ? x[t(1521)] : x; - if (e && typeof x[t(1758)] !== t(993) && (s[t(1758)] = x[t(1758)]), this.options[t(1647)].defaultVariables && (s = { ...this[t(2876)][t(1647)][t(1490)], ...s }), !e) { + [a(1179)](x = {}) { + const t = a, r = [t(1890), t(2008), t(1780), t(1252), t(2986), t(354), t(633), "ns", "keySeparator", t(2916), t(383), "returnDetails", t(1811), t(2653), t(829)], e = x[t(1252)] && !be(x[t(1252)]); + let s = e ? x.replace : x; + if (e && typeof x[t(459)] !== t(2781) && (s[t(459)] = x.count), this[t(1341)][t(829)].defaultVariables && (s = { ...this[t(1341)][t(829)][t(1809)], ...s }), !e) { s = { ...s }; for (const n of r) delete s[n]; } return s; } - static [a(3193)](x) { - const t = a, r = t(2074); + static hasDefaultValue(x) { + const t = a, r = t(1890); for (const e in x) - if (Object[t(2587)][t(1315)][t(1522)](x, e) && r === e.substring(0, r[t(2710)]) && x[e] !== void 0) return !0; + if (Object[t(1706)][t(1446)][t(2689)](x, e) && r === e.substring(0, r[t(1148)]) && x[e] !== void 0) return !0; return !1; } } -function K(o, x) { - return o = o - 480, yx()[o]; -} -class Ka { +class Za { constructor(x) { const t = a; - this.options = x, this.supportedLngs = this.options.supportedLngs || !1, this[t(2303)] = d0[t(1602)](t(1476)); + this.options = x, this.supportedLngs = this[t(1341)].supportedLngs || !1, this.logger = f0[t(558)](t(1416)); } - [a(701)](x) { + getScriptPartFromCode(x) { const t = a; - if (x = nx(x), !x || x[t(2436)]("-") < 0) return null; - const r = x[t(3263)]("-"); - return r[t(2710)] === 2 || (r[t(2900)](), r[r[t(2710)] - 1][t(1945)]() === "x") ? null : this.formatLanguageCode(r[t(1592)]("-")); + if (x = sx(x), !x || x[t(2273)]("-") < 0) return null; + const r = x[t(1958)]("-"); + return r.length === 2 || (r[t(2906)](), r[r[t(1148)] - 1][t(1119)]() === "x") ? null : this[t(1571)](r.join("-")); } - [a(594)](x) { + [a(2109)](x) { const t = a; - if (x = nx(x), !x || x[t(2436)]("-") < 0) return x; - const r = x[t(3263)]("-"); - return this[t(2453)](r[0]); + if (x = sx(x), !x || x[t(2273)]("-") < 0) return x; + const r = x.split("-"); + return this[t(1571)](r[0]); } formatLanguageCode(x) { const t = a; - if (be(x) && x[t(2436)]("-") > -1) { + if (be(x) && x[t(2273)]("-") > -1) { let r; try { - r = Intl[t(2816)](x)[0]; + r = Intl[t(1513)](x)[0]; } catch { } - return r && this[t(2876)].lowerCaseLng && (r = r[t(1945)]()), r || (this[t(2876)][t(3002)] ? x.toLowerCase() : x); + return r && this[t(1341)][t(2457)] && (r = r[t(1119)]()), r || (this[t(1341)].lowerCaseLng ? x[t(1119)]() : x); } - return this.options[t(1327)] || this[t(2876)][t(3002)] ? x[t(1945)]() : x; + return this[t(1341)][t(2391)] || this.options[t(2457)] ? x[t(1119)]() : x; } - [a(1149)](x) { + [a(2271)](x) { const t = a; - return (this[t(2876)][t(1429)] === "languageOnly" || this.options[t(1397)]) && (x = this.getLanguagePartFromCode(x)), !this[t(2159)] || !this[t(2159)][t(2710)] || this[t(2159)][t(2436)](x) > -1; + return (this[t(1341)][t(451)] === t(697) || this.options[t(274)]) && (x = this[t(2109)](x)), !this[t(1934)] || !this[t(1934)][t(1148)] || this.supportedLngs.indexOf(x) > -1; } - [a(1252)](x) { + [a(1462)](x) { const t = a; if (!x) return null; let r; - return x[t(2617)]((e) => { + return x[t(430)]((e) => { const s = t; if (r) return; - const n = this[s(2453)](e); - (!this[s(2876)][s(2159)] || this[s(1149)](n)) && (r = n); - }), !r && this[t(2876)][t(2159)] && x[t(2617)]((e) => { + const n = this.formatLanguageCode(e); + (!this[s(1341)][s(1934)] || this[s(2271)](n)) && (r = n); + }), !r && this[t(1341)][t(1934)] && x[t(430)]((e) => { const s = t; if (r) return; - const n = this[s(701)](e); - if (this[s(1149)](n)) return r = n; - const i = this[s(594)](e); - if (this[s(1149)](i)) return r = i; - r = this.options[s(2159)][s(3146)]((c) => { + const n = this[s(2130)](e); + if (this[s(2271)](n)) return r = n; + const i = this.getLanguagePartFromCode(e); + if (this[s(2271)](i)) return r = i; + r = this.options[s(1934)].find((c) => { const u = s; if (c === i) return c; - if (!(c[u(2436)]("-") < 0 && i.indexOf("-") < 0) && (c[u(2436)]("-") > 0 && i[u(2436)]("-") < 0 && c[u(672)](0, c[u(2436)]("-")) === i || c[u(2436)](i) === 0 && i[u(2710)] > 1)) + if (!(c[u(2273)]("-") < 0 && i[u(2273)]("-") < 0) && (c[u(2273)]("-") > 0 && i.indexOf("-") < 0 && c[u(2888)](0, c[u(2273)]("-")) === i || c[u(2273)](i) === 0 && i[u(1148)] > 1)) return c; }); - }), r || (r = this.getFallbackCodes(this[t(2876)][t(1338)])[0]), r; + }), r || (r = this[t(1038)](this[t(1341)][t(633)])[0]), r; } - [a(1873)](x, t) { + [a(1038)](x, t) { const r = a; if (!x) return []; - if (typeof x === r(1936) && (x = x(t)), be(x) && (x = [x]), Array.isArray(x)) return x; + if (typeof x === r(1149) && (x = x(t)), be(x) && (x = [x]), Array[r(500)](x)) return x; if (!t) return x.default || []; let e = x[t]; - return e || (e = x[this[r(701)](t)]), e || (e = x[this[r(2453)](t)]), e || (e = x[this[r(594)](t)]), e || (e = x[r(2485)]), e || []; + return e || (e = x[this[r(2130)](t)]), e || (e = x[this[r(1571)](t)]), e || (e = x[this[r(2109)](t)]), e || (e = x.default), e || []; } - [a(2825)](x, t) { - const r = a, e = this[r(1873)]((t === !1 ? [] : t) || this[r(2876)][r(1338)] || [], x), s = [], n = (i) => { + [a(2018)](x, t) { + const r = a, e = this[r(1038)]((t === !1 ? [] : t) || this[r(1341)].fallbackLng || [], x), s = [], n = (i) => { const c = r; - i && (this.isSupportedCode(i) ? s[c(3062)](i) : this[c(2303)][c(1114)](c(2322) + i)); + i && (this[c(2271)](i) ? s[c(3019)](i) : this[c(872)][c(2618)](c(1439) + i)); }; - return be(x) && (x.indexOf("-") > -1 || x[r(2436)]("_") > -1) ? (this.options[r(1429)] !== r(1557) && n(this[r(2453)](x)), this[r(2876)][r(1429)] !== r(1557) && this[r(2876)][r(1429)] !== r(1196) && n(this[r(701)](x)), this[r(2876)][r(1429)] !== r(1196) && n(this[r(594)](x))) : be(x) && n(this[r(2453)](x)), e[r(2617)]((i) => { + return be(x) && (x[r(2273)]("-") > -1 || x[r(2273)]("_") > -1) ? (this[r(1341)][r(451)] !== r(697) && n(this[r(1571)](x)), this[r(1341)][r(451)] !== r(697) && this[r(1341)][r(451)] !== "currentOnly" && n(this[r(2130)](x)), this[r(1341)].load !== r(1959) && n(this.getLanguagePartFromCode(x))) : be(x) && n(this.formatLanguageCode(x)), e[r(430)]((i) => { const c = r; - s.indexOf(i) < 0 && n(this[c(2453)](i)); + s.indexOf(i) < 0 && n(this[c(1571)](i)); }), s; } } -const Ga = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 }, Ja = { select: (o) => a(o === 1 ? 2836 : 2420), resolvedOptions: () => ({ pluralCategories: [a(2836), "other"] }) }; -class Ii { +const Ga = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 }, Ja = { select: (o) => a(o === 1 ? 1318 : 1449), resolvedOptions: () => ({ pluralCategories: [a(1318), a(1449)] }) }; +class wi { constructor(x, t = {}) { const r = a; - this[r(1476)] = x, this[r(2876)] = t, this[r(2303)] = d0[r(1602)](r(2041)), this.pluralRulesCache = {}; + this[r(1416)] = x, this[r(1341)] = t, this.logger = f0[r(558)](r(1025)), this[r(2275)] = {}; } - [a(1288)](x, t) { + [a(1306)](x, t) { const r = a; - this[r(2293)][x] = t; + this[r(1354)][x] = t; } clearCache() { const x = a; - this[x(2782)] = {}; + this[x(2275)] = {}; } - [a(1106)](x, t = {}) { - const r = a, e = nx(x === "dev" ? "en" : x), s = t[r(3097)] ? "ordinal" : r(3105), n = JSON[r(1031)]({ cleanedCode: e, type: s }); - if (n in this[r(2782)]) return this[r(2782)][n]; + [a(1069)](x, t = {}) { + const r = a, e = sx(x === "dev" ? "en" : x), s = t[r(2008)] ? r(2008) : r(2602), n = JSON.stringify({ cleanedCode: e, type: s }); + if (n in this[r(2275)]) return this[r(2275)][n]; let i; try { - i = new Intl[r(1582)](e, { type: s }); + i = new Intl.PluralRules(e, { type: s }); } catch { - if (!Intl) return this.logger[r(490)]("No Intl support, please use an Intl polyfill!"), Ja; - if (!x[r(2314)](/-|_/)) return Ja; - const u = this[r(1476)].getLanguagePartFromCode(x); - i = this.getRule(u, t); + if (!Intl) return this[r(872)][r(1491)]("No Intl support, please use an Intl polyfill!"), Ja; + if (!x[r(789)](/-|_/)) return Ja; + const u = this[r(1416)][r(2109)](x); + i = this[r(1069)](u, t); } - return this[r(2782)][n] = i, i; + return this.pluralRulesCache[n] = i, i; } - [a(2095)](x, t = {}) { + needsPlural(x, t = {}) { const r = a; let e = this.getRule(x, t); - return e || (e = this.getRule(r(1541), t)), (e == null ? void 0 : e[r(1291)]()[r(1900)].length) > 1; + return e || (e = this[r(1069)](r(2052), t)), (e == null ? void 0 : e[r(391)]()[r(868)][r(1148)]) > 1; } - getPluralFormsOfKey(x, t, r = {}) { - return this[a(2033)](x, r).map((s) => "" + t + s); + [a(851)](x, t, r = {}) { + const e = a; + return this[e(342)](x, r)[e(2739)]((s) => "" + t + s); } - [a(2033)](x, t = {}) { + [a(342)](x, t = {}) { const r = a; - let e = this[r(1106)](x, t); - return e || (e = this.getRule(r(1541), t)), e ? e[r(1291)]()[r(1900)][r(841)]((s, n) => Ga[s] - Ga[n]).map((s) => "" + this.options[r(882)] + (t[r(3097)] ? r(3097) + this[r(2876)][r(882)] : "") + s) : []; + let e = this.getRule(x, t); + return e || (e = this[r(1069)](r(2052), t)), e ? e[r(391)]().pluralCategories[r(1534)]((s, n) => Ga[s] - Ga[n])[r(2739)]((s) => "" + this[r(1341)].prepend + (t[r(2008)] ? r(2008) + this[r(1341)].prepend : "") + s) : []; } - [a(2055)](x, t, r = {}) { - const e = a, s = this[e(1106)](x, r); - return s ? "" + this[e(2876)][e(882)] + (r[e(3097)] ? e(3097) + this[e(2876)][e(882)] : "") + s.select(t) : (this[e(2303)][e(1114)](e(3001) + x), this.getSuffix(e(1541), t, r)); + [a(2090)](x, t, r = {}) { + const e = a, s = this.getRule(x, r); + return s ? "" + this.options[e(1937)] + (r[e(2008)] ? e(2008) + this[e(1341)][e(1937)] : "") + s.select(t) : (this.logger[e(2618)](e(859) + x), this.getSuffix(e(2052), t, r)); } } const Qa = (o, x, t, r = ".", e = !0) => { - let s = mi(o, x, t); + let s = li(o, x, t); return !s && e && be(t) && (s = Jt(o, t, r), s === void 0 && (s = Jt(x, t, r))), s; -}, Kx = (o) => o[a(1521)](/\$/g, a(1017)); +}, Zx = (o) => o.replace(/\$/g, "$$$$"); class Xa { constructor(x = {}) { var r; const t = a; - this[t(2303)] = d0[t(1602)]("interpolator"), this[t(2876)] = x, this[t(802)] = ((r = x == null ? void 0 : x.interpolation) == null ? void 0 : r[t(802)]) || ((e) => e), this[t(1775)](x); + this[t(872)] = f0[t(558)](t(3044)), this[t(1341)] = x, this[t(2350)] = ((r = x == null ? void 0 : x.interpolation) == null ? void 0 : r[t(2350)]) || ((e) => e), this.init(x); } - [a(1775)](x = {}) { + [a(2462)](x = {}) { const t = a; - x[t(1647)] || (x[t(1647)] = { escapeValue: !0 }); - const { escape: r, escapeValue: e, useRawValueToEscape: s, prefix: n, prefixEscaped: i, suffix: c, suffixEscaped: u, formatSeparator: f, unescapeSuffix: l, unescapePrefix: d, nestingPrefix: g, nestingPrefixEscaped: h, nestingSuffix: m, nestingSuffixEscaped: v, nestingOptionsSeparator: k, maxReplaces: P, alwaysFormat: T } = x[t(1647)]; - this[t(2133)] = r !== void 0 ? r : gi, this[t(2958)] = e !== void 0 ? e : !0, this[t(1485)] = s !== void 0 ? s : !1, this.prefix = n ? U0(n) : i || "{{", this.suffix = c ? U0(c) : u || "}}", this[t(2426)] = f || ",", this[t(1865)] = l ? "" : d || "-", this[t(2479)] = this[t(1865)] ? "" : l || "", this.nestingPrefix = g ? U0(g) : h || U0("$t("), this[t(2616)] = m ? U0(m) : v || U0(")"), this[t(1735)] = k || ",", this[t(2316)] = P || 1e3, this.alwaysFormat = T !== void 0 ? T : !1, this[t(2179)](); + x[t(829)] || (x.interpolation = { escapeValue: !0 }); + const { escape: r, escapeValue: e, useRawValueToEscape: s, prefix: n, prefixEscaped: i, suffix: c, suffixEscaped: u, formatSeparator: d, unescapeSuffix: l, unescapePrefix: f, nestingPrefix: g, nestingPrefixEscaped: h, nestingSuffix: m, nestingSuffixEscaped: v, nestingOptionsSeparator: k, maxReplaces: I, alwaysFormat: T } = x[t(829)]; + this[t(2494)] = r !== void 0 ? r : hi, this[t(1316)] = e !== void 0 ? e : !0, this[t(1863)] = s !== void 0 ? s : !1, this[t(1004)] = n ? $0(n) : i || "{{", this[t(1176)] = c ? $0(c) : u || "}}", this[t(1291)] = d || ",", this[t(1770)] = l ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = g ? $0(g) : h || $0(t(1018)), this[t(1729)] = m ? $0(m) : v || $0(")"), this[t(693)] = k || ",", this[t(835)] = I || 1e3, this.alwaysFormat = T !== void 0 ? T : !1, this.resetRegExp(); } - [a(2837)]() { + [a(1721)]() { const x = a; - this[x(2876)] && this.init(this[x(2876)]); + this[x(1341)] && this[x(2462)](this[x(1341)]); } resetRegExp() { const x = a, t = (r, e) => { - const s = K; - return (r == null ? void 0 : r.source) === e ? (r[s(1855)] = 0, r) : new RegExp(e, "g"); + const s = Z; + return (r == null ? void 0 : r[s(484)]) === e ? (r[s(2033)] = 0, r) : new RegExp(e, "g"); }; - this.regexp = t(this.regexp, this[x(632)] + x(2810) + this[x(744)]), this[x(2538)] = t(this.regexpUnescape, "" + this.prefix + this[x(1865)] + x(2810) + this.unescapeSuffix + this[x(744)]), this.nestingRegexp = t(this.nestingRegexp, this[x(2864)] + x(818) + this.nestingSuffix); + this[x(1244)] = t(this[x(1244)], this[x(1004)] + x(1984) + this[x(1176)]), this[x(423)] = t(this[x(423)], "" + this[x(1004)] + this[x(1770)] + x(1984) + this[x(441)] + this[x(1176)]), this[x(2966)] = t(this[x(2966)], this.nestingPrefix + x(1568) + this[x(1729)]); } - interpolate(x, t, r, e) { + [a(2718)](x, t, r, e) { var h; const s = a; let n, i, c; - const u = this.options && this[s(2876)].interpolation && this.options[s(1647)][s(1490)] || {}, f = (m) => { + const u = this[s(1341)] && this[s(1341)][s(829)] && this[s(1341)][s(829)].defaultVariables || {}, d = (m) => { const v = s; - if (m.indexOf(this[v(2426)]) < 0) { - const q = Qa(t, u, m, this[v(2876)][v(1200)], this.options[v(2358)]); - return this.alwaysFormat ? this[v(802)](q, void 0, r, { ...e, ...t, interpolationkey: m }) : q; + if (m.indexOf(this[v(1291)]) < 0) { + const q = Qa(t, u, m, this[v(1341)][v(2596)], this[v(1341)][v(2226)]); + return this.alwaysFormat ? this.format(q, void 0, r, { ...e, ...t, interpolationkey: m }) : q; } - const k = m[v(3263)](this[v(2426)]), P = k.shift().trim(), T = k[v(1592)](this[v(2426)])[v(2337)](); - return this.format(Qa(t, u, P, this[v(2876)][v(1200)], this[v(2876)].ignoreJSONStructure), T, r, { ...e, ...t, interpolationkey: P }); + const k = m[v(1958)](this[v(1291)]), I = k[v(1766)]().trim(), T = k[v(896)](this[v(1291)])[v(2845)](); + return this[v(2350)](Qa(t, u, I, this[v(1341)].keySeparator, this[v(1341)][v(2226)]), T, r, { ...e, ...t, interpolationkey: I }); }; - this[s(2179)](); - const l = (e == null ? void 0 : e.missingInterpolationHandler) || this.options.missingInterpolationHandler, d = ((h = e == null ? void 0 : e[s(1647)]) == null ? void 0 : h[s(940)]) !== void 0 ? e.interpolation.skipOnVariables : this[s(2876)][s(1647)][s(940)]; - return [{ regex: this[s(2538)], safeValue: (m) => Kx(m) }, { regex: this.regexp, safeValue: (m) => this[s(2958)] ? Kx(this.escape(m)) : Kx(m) }][s(2617)]((m) => { + this.resetRegExp(); + const l = (e == null ? void 0 : e[s(712)]) || this.options.missingInterpolationHandler, f = ((h = e == null ? void 0 : e[s(829)]) == null ? void 0 : h.skipOnVariables) !== void 0 ? e.interpolation[s(309)] : this[s(1341)][s(829)][s(309)]; + return [{ regex: this[s(423)], safeValue: (m) => Zx(m) }, { regex: this[s(1244)], safeValue: (m) => this[s(1316)] ? Zx(this[s(2494)](m)) : Zx(m) }].forEach((m) => { const v = s; - for (c = 0; n = m[v(2338)].exec(x); ) { - const k = n[1].trim(); - if (i = f(k), i === void 0) - if (typeof l === v(1936)) { + for (c = 0; n = m.regex.exec(x); ) { + const k = n[1][v(2845)](); + if (i = d(k), i === void 0) + if (typeof l === v(1149)) { const T = l(x, n, e); i = be(T) ? T : ""; - } else if (e && Object.prototype[v(1315)].call(e, k)) i = ""; - else if (d) { + } else if (e && Object[v(1706)].hasOwnProperty[v(2689)](e, k)) i = ""; + else if (f) { i = n[0]; continue; - } else this.logger[v(1114)](v(698) + k + v(2537) + x), i = ""; - else !be(i) && !this[v(1485)] && (i = za(i)); - const P = m[v(1271)](i); - if (x = x.replace(n[0], P), d ? (m[v(2338)][v(1855)] += i[v(2710)], m.regex[v(1855)] -= n[0][v(2710)]) : m.regex[v(1855)] = 0, c++, c >= this.maxReplaces) break; + } else this[v(872)][v(2618)](v(1547) + k + v(1781) + x), i = ""; + else !be(i) && !this[v(1863)] && (i = za(i)); + const I = m.safeValue(i); + if (x = x[v(1252)](n[0], I), f ? (m[v(2840)].lastIndex += i.length, m[v(2840)][v(2033)] -= n[0][v(1148)]) : m[v(2840)][v(2033)] = 0, c++, c >= this[v(835)]) break; } }), x; } - [a(1365)](x, t, r = {}) { + [a(1096)](x, t, r = {}) { const e = a; let s, n, i; - const c = (u, f) => { - const l = K, d = this.nestingOptionsSeparator; - if (u.indexOf(d) < 0) return u; - const g = u[l(3263)](new RegExp(d + l(2098))); + const c = (u, d) => { + const l = Z, f = this[l(693)]; + if (u[l(2273)](f) < 0) return u; + const g = u[l(1958)](new RegExp(f + l(1361))); let h = "{" + g[1]; - u = g[0], h = this.interpolate(h, i); - const m = h[l(2314)](/'/g), v = h.match(/"/g); - (((m == null ? void 0 : m[l(2710)]) ?? 0) % 2 === 0 && !v || v[l(2710)] % 2 !== 0) && (h = h[l(1521)](/'/g, '"')); + u = g[0], h = this[l(2718)](h, i); + const m = h[l(789)](/'/g), v = h.match(/"/g); + (((m == null ? void 0 : m[l(1148)]) ?? 0) % 2 === 0 && !v || v[l(1148)] % 2 !== 0) && (h = h[l(1252)](/'/g, '"')); try { - i = JSON[l(2774)](h), f && (i = { ...f, ...i }); + i = JSON[l(1598)](h), d && (i = { ...d, ...i }); } catch (k) { - return this[l(2303)].warn(l(3197) + u, k), "" + u + d + h; + return this.logger[l(2618)](l(560) + u, k), "" + u + f + h; } - return i[l(2074)] && i[l(2074)][l(2436)](this[l(632)]) > -1 && delete i.defaultValue, u; + return i[l(1890)] && i[l(1890)][l(2273)](this[l(1004)]) > -1 && delete i[l(1890)], u; }; - for (; s = this[e(2759)][e(2125)](x); ) { + for (; s = this.nestingRegexp.exec(x); ) { let u = []; - i = { ...r }, i = i[e(1521)] && !be(i[e(1521)]) ? i[e(1521)] : i, i[e(2812)] = !1, delete i.defaultValue; - const f = /{.*}/[e(2346)](s[1]) ? s[1][e(2347)]("}") + 1 : s[1][e(2436)](this[e(2426)]); - if (f !== -1 && (u = s[1][e(1387)](f)[e(3263)](this.formatSeparator).map((l) => l[e(2337)]()).filter(Boolean), s[1] = s[1][e(1387)](0, f)), n = t(c[e(1522)](this, s[1][e(2337)](), i), i), n && s[0] === x && !be(n)) return n; - be(n) || (n = za(n)), !n && (this.logger[e(1114)](e(787) + s[1] + " for nesting " + x), n = ""), u[e(2710)] && (n = u.reduce((l, d) => this[e(802)](l, d, r[e(3164)], { ...r, interpolationkey: s[1][e(2337)]() }), n[e(2337)]())), x = x[e(1521)](s[0], n), this[e(979)].lastIndex = 0; + i = { ...r }, i = i.replace && !be(i[e(1252)]) ? i[e(1252)] : i, i.applyPostProcessor = !1, delete i[e(1890)]; + const d = /{.*}/[e(1531)](s[1]) ? s[1].lastIndexOf("}") + 1 : s[1][e(2273)](this[e(1291)]); + if (d !== -1 && (u = s[1].slice(d)[e(1958)](this[e(1291)])[e(2739)]((l) => l[e(2845)]())[e(362)](Boolean), s[1] = s[1][e(1908)](0, d)), n = t(c[e(2689)](this, s[1][e(2845)](), i), i), n && s[0] === x && !be(n)) return n; + be(n) || (n = za(n)), !n && (this[e(872)][e(2618)](e(2574) + s[1] + " for nesting " + x), n = ""), u.length && (n = u[e(2069)]((l, f) => this[e(2350)](l, f, r[e(2986)], { ...r, interpolationkey: s[1][e(2845)]() }), n.trim())), x = x[e(1252)](s[0], n), this[e(1244)][e(2033)] = 0; } return x; } } -const Ei = (o) => { +const Si = (o) => { const x = a; - let t = o[x(1945)]()[x(2337)](); + let t = o[x(1119)]()[x(2845)](); const r = {}; - if (o[x(2436)]("(") > -1) { - const e = o.split("("); - t = e[0].toLowerCase()[x(2337)](); - const s = e[1][x(672)](0, e[1][x(2710)] - 1); - t === x(1292) && s[x(2436)](":") < 0 ? r[x(1292)] || (r[x(1292)] = s.trim()) : t === x(1637) && s[x(2436)](":") < 0 ? r[x(1671)] || (r.range = s.trim()) : s[x(3263)](";")[x(2617)]((i) => { + if (o.indexOf("(") > -1) { + const e = o[x(1958)]("("); + t = e[0][x(1119)]()[x(2845)](); + const s = e[1][x(2888)](0, e[1][x(1148)] - 1); + t === x(516) && s[x(2273)](":") < 0 ? r[x(516)] || (r[x(516)] = s[x(2845)]()) : t === x(1776) && s[x(2273)](":") < 0 ? r[x(2527)] || (r.range = s.trim()) : s[x(1958)](";").forEach((i) => { const c = x; if (i) { - const [u, ...f] = i.split(":"), l = f[c(1592)](":").trim().replace(/^'+|'+$/g, ""), d = u.trim(); - r[d] || (r[d] = l), l === c(2657) && (r[d] = !1), l === "true" && (r[d] = !0), isNaN(l) || (r[d] = parseInt(l, 10)); + const [u, ...d] = i.split(":"), l = d[c(896)](":")[c(2845)]()[c(1252)](/^'+|'+$/g, ""), f = u.trim(); + r[f] || (r[f] = l), l === c(661) && (r[f] = !1), l === c(671) && (r[f] = !0), isNaN(l) || (r[f] = parseInt(l, 10)); } }); } @@ -3911,494 +3913,494 @@ const Ei = (o) => { }, Ya = (o) => { const x = {}; return (t, r, e) => { - const s = K; + const s = Z; let n = e; - e && e[s(2951)] && e[s(3102)] && e[s(3102)][e.interpolationkey] && e[e[s(2951)]] && (n = { ...n, [e[s(2951)]]: void 0 }); - const i = r + JSON[s(1031)](n); + e && e[s(2219)] && e[s(2439)] && e[s(2439)][e[s(2219)]] && e[e[s(2219)]] && (n = { ...n, [e[s(2219)]]: void 0 }); + const i = r + JSON.stringify(n); let c = x[i]; - return !c && (c = o(nx(r), e), x[i] = c), c(t); + return !c && (c = o(sx(r), e), x[i] = c), c(t); }; -}, Ri = (o) => (x, t, r) => o(nx(t), r)(x); -class Ci { +}, ki = (o) => (x, t, r) => o(sx(t), r)(x); +class Pi { constructor(x = {}) { const t = a; - this.logger = d0[t(1602)](t(1934)), this[t(2876)] = x, this[t(1775)](x); + this[t(872)] = f0[t(558)]("formatter"), this[t(1341)] = x, this.init(x); } - [a(1775)](x, t = { interpolation: {} }) { + [a(2462)](x, t = { interpolation: {} }) { const r = a; - this.formatSeparator = t[r(1647)][r(2426)] || ","; - const e = t.cacheInBuiltFormats ? Ya : Ri; - this[r(3155)] = { number: e((s, n) => { - const i = r, c = new Intl[i(1240)](s, { ...n }); - return (u) => c.format(u); + this.formatSeparator = t.interpolation[r(1291)] || ","; + const e = t[r(903)] ? Ya : ki; + this[r(1882)] = { number: e((s, n) => { + const i = r, c = new Intl[i(888)](s, { ...n }); + return (u) => c[i(2350)](u); }), currency: e((s, n) => { - const i = r, c = new Intl[i(1240)](s, { ...n, style: "currency" }); - return (u) => c[i(802)](u); + const i = r, c = new Intl[i(888)](s, { ...n, style: "currency" }); + return (u) => c[i(2350)](u); }), datetime: e((s, n) => { - const i = r, c = new Intl[i(548)](s, { ...n }); - return (u) => c[i(802)](u); + const i = r, c = new Intl.DateTimeFormat(s, { ...n }); + return (u) => c[i(2350)](u); }), relativetime: e((s, n) => { - const i = r, c = new Intl.RelativeTimeFormat(s, { ...n }); - return (u) => c[i(802)](u, n[i(1671)] || "day"); + const i = r, c = new Intl[i(2599)](s, { ...n }); + return (u) => c[i(2350)](u, n[i(2527)] || "day"); }), list: e((s, n) => { - const i = r, c = new Intl[i(926)](s, { ...n }); - return (u) => c[i(802)](u); + const i = r, c = new Intl.ListFormat(s, { ...n }); + return (u) => c[i(2350)](u); }) }; } - [a(1580)](x, t) { + [a(986)](x, t) { const r = a; - this[r(3155)][x[r(1945)]()[r(2337)]()] = t; + this[r(1882)][x[r(1119)]()[r(2845)]()] = t; } - [a(1402)](x, t) { + [a(1039)](x, t) { const r = a; - this[r(3155)][x[r(1945)]()[r(2337)]()] = Ya(t); + this.formats[x[r(1119)]()[r(2845)]()] = Ya(t); } - [a(802)](x, t, r, e = {}) { - const s = a, n = t[s(3263)](this[s(2426)]); - if (n[s(2710)] > 1 && n[0][s(2436)]("(") > 1 && n[0][s(2436)](")") < 0 && n.find((c) => c[s(2436)](")") > -1)) { - const c = n[s(3162)]((u) => u.indexOf(")") > -1); - n[0] = [n[0], ...n[s(2881)](1, c)][s(1592)](this[s(2426)]); + [a(2350)](x, t, r, e = {}) { + const s = a, n = t.split(this[s(1291)]); + if (n[s(1148)] > 1 && n[0][s(2273)]("(") > 1 && n[0][s(2273)](")") < 0 && n[s(304)]((c) => c[s(2273)](")") > -1)) { + const c = n[s(990)]((u) => u[s(2273)](")") > -1); + n[0] = [n[0], ...n[s(2176)](1, c)][s(896)](this.formatSeparator); } - return n[s(1630)]((c, u) => { + return n[s(2069)]((c, u) => { var g; - const f = s, { formatName: l, formatOptions: d } = Ei(u); - if (this[f(3155)][l]) { + const d = s, { formatName: l, formatOptions: f } = Si(u); + if (this[d(1882)][l]) { let h = c; try { - const m = ((g = e == null ? void 0 : e[f(3102)]) == null ? void 0 : g[e[f(2951)]]) || {}, v = m[f(1225)] || m[f(3164)] || e[f(1225)] || e[f(3164)] || r; - h = this.formats[l](c, v, { ...d, ...e, ...m }); + const m = ((g = e == null ? void 0 : e[d(2439)]) == null ? void 0 : g[e[d(2219)]]) || {}, v = m.locale || m.lng || e[d(1355)] || e[d(2986)] || r; + h = this.formats[l](c, v, { ...f, ...e, ...m }); } catch (m) { - this[f(2303)][f(1114)](m); + this[d(872)].warn(m); } return h; - } else this[f(2303)].warn(f(743) + l); + } else this.logger[d(2618)](d(2116) + l); return c; }, x); } } -const _i = (o, x) => { +const Ii = (o, x) => { const t = a; - o.pending[x] !== void 0 && (delete o[t(514)][x], o.pendingCount--); + o.pending[x] !== void 0 && (delete o.pending[x], o[t(1577)]--); }; -class Fi extends Ax { +class Ei extends Ax { constructor(x, t, r, e = {}) { var n, i; const s = a; - super(), this[s(1231)] = x, this[s(872)] = t, this[s(1791)] = r, this.languageUtils = r.languageUtils, this[s(2876)] = e, this.logger = d0.create("backendConnector"), this[s(1640)] = [], this[s(1894)] = e[s(1894)] || 10, this[s(1933)] = 0, this[s(1579)] = e[s(1579)] >= 0 ? e[s(1579)] : 5, this[s(2344)] = e[s(2344)] >= 1 ? e[s(2344)] : 350, this[s(3122)] = {}, this.queue = [], (i = (n = this[s(1231)]) == null ? void 0 : n[s(1775)]) == null || i.call(n, r, e[s(1231)], e); + super(), this.backend = x, this[s(2788)] = t, this[s(2577)] = r, this[s(1416)] = r[s(1416)], this[s(1341)] = e, this.logger = f0.create(s(2976)), this[s(2460)] = [], this[s(2088)] = e[s(2088)] || 10, this[s(2775)] = 0, this.maxRetries = e[s(1779)] >= 0 ? e[s(1779)] : 5, this[s(366)] = e[s(366)] >= 1 ? e[s(366)] : 350, this[s(1980)] = {}, this[s(2336)] = [], (i = (n = this[s(1479)]) == null ? void 0 : n.init) == null || i.call(n, r, e[s(1479)], e); } - [a(3225)](x, t, r, e) { + [a(1981)](x, t, r, e) { const s = a, n = {}, i = {}, c = {}, u = {}; - return x.forEach((f) => { - let l = !0; - t.forEach((d) => { - const g = K, h = f + "|" + d; - !r[g(1646)] && this[g(872)][g(1203)](f, d) ? this[g(3122)][h] = 2 : this.state[h] < 0 || (this[g(3122)][h] === 1 ? i[h] === void 0 && (i[h] = !0) : (this.state[h] = 1, l = !1, i[h] === void 0 && (i[h] = !0), n[h] === void 0 && (n[h] = !0), u[d] === void 0 && (u[d] = !0))); - }), l || (c[f] = !0); - }), (Object[s(2123)](n).length || Object.keys(i)[s(2710)]) && this[s(2284)][s(3062)]({ pending: i, pendingCount: Object[s(2123)](i)[s(2710)], loaded: {}, errors: [], callback: e }), { toLoad: Object[s(2123)](n), pending: Object[s(2123)](i), toLoadLanguages: Object[s(2123)](c), toLoadNamespaces: Object[s(2123)](u) }; + return x.forEach((d) => { + const l = Z; + let f = !0; + t[l(430)]((g) => { + const h = l, m = d + "|" + g; + !r[h(2232)] && this[h(2788)][h(2874)](d, g) ? this[h(1980)][m] = 2 : this[h(1980)][m] < 0 || (this[h(1980)][m] === 1 ? i[m] === void 0 && (i[m] = !0) : (this[h(1980)][m] = 1, f = !1, i[m] === void 0 && (i[m] = !0), n[m] === void 0 && (n[m] = !0), u[g] === void 0 && (u[g] = !0))); + }), f || (c[d] = !0); + }), (Object[s(1877)](n)[s(1148)] || Object.keys(i).length) && this[s(2336)][s(3019)]({ pending: i, pendingCount: Object[s(1877)](i).length, loaded: {}, errors: [], callback: e }), { toLoad: Object.keys(n), pending: Object[s(1877)](i), toLoadLanguages: Object[s(1877)](c), toLoadNamespaces: Object[s(1877)](u) }; } - [a(1770)](x, t, r) { - const e = a, s = x[e(3263)]("|"), n = s[0], i = s[1]; - t && this[e(2256)](e(1969), n, i, t), !t && r && this[e(872)].addResourceBundle(n, i, r, void 0, void 0, { skipCopy: !0 }), this.state[x] = t ? -1 : 2, t && r && (this[e(3122)][x] = 0); + loaded(x, t, r) { + const e = a, s = x[e(1958)]("|"), n = s[0], i = s[1]; + t && this[e(1271)]("failedLoading", n, i, t), !t && r && this[e(2788)].addResourceBundle(n, i, r, void 0, void 0, { skipCopy: !0 }), this[e(1980)][x] = t ? -1 : 2, t && r && (this[e(1980)][x] = 0); const c = {}; - this[e(2284)][e(2617)]((u) => { - const f = e; - pi(u[f(1770)], [n], i), _i(u, x), t && u[f(2800)][f(3062)](t), u.pendingCount === 0 && !u.done && (Object[f(2123)](u[f(1770)])[f(2617)]((l) => { - const d = f; + this[e(2336)][e(430)]((u) => { + const d = e; + di(u[d(1257)], [n], i), Ii(u, x), t && u.errors[d(3019)](t), u[d(1577)] === 0 && !u.done && (Object[d(1877)](u[d(1257)]).forEach((l) => { + const f = d; c[l] || (c[l] = {}); - const g = u[d(1770)][l]; - g[d(2710)] && g[d(2617)]((h) => { + const g = u[f(1257)][l]; + g.length && g[f(430)]((h) => { c[l][h] === void 0 && (c[l][h] = !0); }); - }), u[f(1463)] = !0, u[f(2800)][f(2710)] ? u[f(3253)](u[f(2800)]) : u[f(3253)]()); - }), this[e(2256)](e(1770), c), this[e(2284)] = this[e(2284)][e(2581)]((u) => !u.done); + }), u.done = !0, u[d(1139)][d(1148)] ? u[d(812)](u[d(1139)]) : u[d(812)]()); + }), this[e(1271)]("loaded", c), this[e(2336)] = this[e(2336)][e(362)]((u) => !u.done); } - [a(953)](x, t, r, e = 0, s = this[a(2344)], n) { + [a(765)](x, t, r, e = 0, s = this[a(366)], n) { const i = a; - if (!x[i(2710)]) return n(null, {}); - if (this.readingCalls >= this[i(1894)]) { - this.waitingReads[i(3062)]({ lng: x, ns: t, fcName: r, tried: e, wait: s, callback: n }); + if (!x[i(1148)]) return n(null, {}); + if (this[i(2775)] >= this.maxParallelReads) { + this[i(2460)][i(3019)]({ lng: x, ns: t, fcName: r, tried: e, wait: s, callback: n }); return; } - this[i(1933)]++; - const c = (f, l) => { - const d = i; - if (this.readingCalls--, this[d(1640)][d(2710)] > 0) { - const g = this[d(1640)][d(1263)](); - this[d(953)](g[d(3164)], g.ns, g[d(1840)], g[d(2009)], g.wait, g[d(3253)]); + this[i(2775)]++; + const c = (d, l) => { + const f = i; + if (this[f(2775)]--, this.waitingReads[f(1148)] > 0) { + const g = this.waitingReads[f(1766)](); + this[f(765)](g[f(2986)], g.ns, g[f(2894)], g[f(1487)], g[f(2682)], g[f(812)]); } - if (f && l && e < this[d(1579)]) { + if (d && l && e < this[f(1779)]) { setTimeout(() => { - this[d(953)].call(this, x, t, r, e + 1, s * 2, n); + const g = f; + this[g(765)][g(2689)](this, x, t, r, e + 1, s * 2, n); }, s); return; } - n(f, l); - }, u = this.backend[r][i(1386)](this[i(1231)]); - if (u[i(2710)] === 2) { + n(d, l); + }, u = this.backend[r].bind(this[i(1479)]); + if (u[i(1148)] === 2) { try { - const f = u(x, t); - f && typeof f[i(2517)] == "function" ? f[i(2517)]((l) => c(null, l))[i(742)](c) : c(null, f); - } catch (f) { - c(f); + const d = u(x, t); + d && typeof d[i(634)] === i(1149) ? d[i(634)]((l) => c(null, l))[i(1045)](c) : c(null, d); + } catch (d) { + c(d); } return; } return u(x, t, c); } - [a(1189)](x, t, r = {}, e) { + prepareLoading(x, t, r = {}, e) { const s = a; - if (!this.backend) return this[s(2303)].warn(s(2637)), e && e(); - be(x) && (x = this.languageUtils.toResolveHierarchy(x)), be(t) && (t = [t]); - const n = this[s(3225)](x, t, r, e); - if (!n[s(2476)][s(2710)]) - return n[s(514)].length || e(), null; - n[s(2476)][s(2617)]((i) => { - this[s(2839)](i); + if (!this.backend) return this.logger[s(2618)](s(1852)), e && e(); + be(x) && (x = this[s(1416)][s(2018)](x)), be(t) && (t = [t]); + const n = this[s(1981)](x, t, r, e); + if (!n[s(2071)][s(1148)]) + return n.pending.length || e(), null; + n.toLoad.forEach((i) => { + this[s(2298)](i); }); } - [a(1429)](x, t, r) { - this[a(1189)](x, t, {}, r); + load(x, t, r) { + this.prepareLoading(x, t, {}, r); } - [a(1646)](x, t, r) { - this[a(1189)](x, t, { reload: !0 }, r); + [a(2232)](x, t, r) { + this.prepareLoading(x, t, { reload: !0 }, r); } - [a(2839)](x, t = "") { - const r = a, e = x[r(3263)]("|"), s = e[0], n = e[1]; - this[r(953)](s, n, r(953), void 0, void 0, (i, c) => { + loadOne(x, t = "") { + const r = a, e = x[r(1958)]("|"), s = e[0], n = e[1]; + this[r(765)](s, n, r(765), void 0, void 0, (i, c) => { const u = r; - i && this[u(2303)][u(1114)](t + "loading namespace " + n + u(998) + s + u(1289), i), !i && c && this.logger[u(1635)](t + u(3210) + n + u(998) + s, c), this[u(1770)](x, i, c); + i && this.logger.warn(t + u(2937) + n + u(1086) + s + " failed", i), !i && c && this[u(872)][u(2127)](t + "loaded namespace " + n + u(1086) + s, c), this[u(1257)](x, i, c); }); } - [a(3083)](x, t, r, e, s, n = {}, i = () => { + [a(1332)](x, t, r, e, s, n = {}, i = () => { }) { - var u, f, l, d, g; + var u, d, l, f, g; const c = a; - if ((f = (u = this.services) == null ? void 0 : u[c(2254)]) != null && f[c(3254)] && !((d = (l = this[c(1791)]) == null ? void 0 : l.utils) != null && d[c(3254)](t))) { - this[c(2303)][c(1114)](c(1390) + r + c(1135) + t + '" was not yet loaded', c(1012)); + if ((d = (u = this[c(2577)]) == null ? void 0 : u[c(2182)]) != null && d[c(2578)] && !((f = (l = this[c(2577)]) == null ? void 0 : l[c(2182)]) != null && f[c(2578)](t))) { + this[c(872)][c(2618)]('did not save key "' + r + c(869) + t + c(1667), c(1403)); return; } if (!(r == null || r === "")) { - if ((g = this[c(1231)]) != null && g.create) { - const h = { ...n, isUpdate: s }, m = this[c(1231)].create[c(1386)](this[c(1231)]); - if (m[c(2710)] < 6) try { + if ((g = this.backend) != null && g[c(558)]) { + const h = { ...n, isUpdate: s }, m = this.backend[c(558)][c(2764)](this[c(1479)]); + if (m[c(1148)] < 6) try { let v; - m[c(2710)] === 5 ? v = m(x, t, r, e, h) : v = m(x, t, r, e), v && typeof v[c(2517)] === c(1936) ? v.then((k) => i(null, k))[c(742)](i) : i(null, v); + m[c(1148)] === 5 ? v = m(x, t, r, e, h) : v = m(x, t, r, e), v && typeof v[c(634)] == "function" ? v[c(634)]((k) => i(null, k))[c(1045)](i) : i(null, v); } catch (v) { i(v); } else m(x, t, r, e, i, h); } - !x || !x[0] || this[c(872)][c(507)](x[0], t, r, e); + !x || !x[0] || this[c(2788)][c(2531)](x[0], t, r, e); } } } -const er = () => ({ debug: !1, initAsync: !0, ns: [a(1650)], defaultNS: ["translation"], fallbackLng: ["dev"], fallbackNS: !1, supportedLngs: !1, nonExplicitSupportedLngs: !1, load: a(1096), preload: !1, simplifyPluralSuffix: !0, keySeparator: ".", nsSeparator: ":", pluralSeparator: "_", contextSeparator: "_", partialBundledLanguages: !1, saveMissing: !1, updateMissing: !1, saveMissingTo: "fallback", saveMissingPlurals: !0, missingKeyHandler: !1, missingInterpolationHandler: !1, postProcess: !1, postProcessPassResolved: !1, returnNull: !1, returnEmptyString: !0, returnObjects: !1, joinArrays: !1, returnedObjectHandler: !1, parseMissingKeyHandler: !1, appendNamespaceToMissingKey: !1, appendNamespaceToCIMode: !1, overloadTranslationOptionHandler: (o) => { +const er = () => ({ debug: !1, initAsync: !0, ns: [a(1747)], defaultNS: [a(1747)], fallbackLng: [a(2052)], fallbackNS: !1, supportedLngs: !1, nonExplicitSupportedLngs: !1, load: a(2497), preload: !1, simplifyPluralSuffix: !0, keySeparator: ".", nsSeparator: ":", pluralSeparator: "_", contextSeparator: "_", partialBundledLanguages: !1, saveMissing: !1, updateMissing: !1, saveMissingTo: "fallback", saveMissingPlurals: !0, missingKeyHandler: !1, missingInterpolationHandler: !1, postProcess: !1, postProcessPassResolved: !1, returnNull: !1, returnEmptyString: !0, returnObjects: !1, joinArrays: !1, returnedObjectHandler: !1, parseMissingKeyHandler: !1, appendNamespaceToMissingKey: !1, appendNamespaceToCIMode: !1, overloadTranslationOptionHandler: (o) => { const x = a; let t = {}; - if (typeof o[1] == "object" && (t = o[1]), be(o[1]) && (t[x(2074)] = o[1]), be(o[2]) && (t[x(2756)] = o[2]), typeof o[2] === x(1304) || typeof o[3] === x(1304)) { + if (typeof o[1] === x(2220) && (t = o[1]), be(o[1]) && (t[x(1890)] = o[1]), be(o[2]) && (t.tDescription = o[2]), typeof o[2] === x(2220) || typeof o[3] === x(2220)) { const r = o[3] || o[2]; - Object[x(2123)](r).forEach((e) => { + Object[x(1877)](r)[x(430)]((e) => { t[e] = r[e]; }); } return t; -}, interpolation: { escapeValue: !0, format: (o) => o, prefix: "{{", suffix: "}}", formatSeparator: ",", unescapePrefix: "-", nestingPrefix: "$t(", nestingSuffix: ")", nestingOptionsSeparator: ",", maxReplaces: 1e3, skipOnVariables: !0 }, cacheInBuiltFormats: !0 }), xr = (o) => { +}, interpolation: { escapeValue: !0, format: (o) => o, prefix: "{{", suffix: "}}", formatSeparator: ",", unescapePrefix: "-", nestingPrefix: a(1018), nestingSuffix: ")", nestingOptionsSeparator: ",", maxReplaces: 1e3, skipOnVariables: !0 }, cacheInBuiltFormats: !0 }), xr = (o) => { var t, r; const x = a; - return be(o.ns) && (o.ns = [o.ns]), be(o[x(1338)]) && (o[x(1338)] = [o.fallbackLng]), be(o[x(1555)]) && (o[x(1555)] = [o[x(1555)]]), ((r = (t = o[x(2159)]) == null ? void 0 : t.indexOf) == null ? void 0 : r.call(t, x(2789))) < 0 && (o.supportedLngs = o[x(2159)][x(2700)]([x(2789)])), typeof o[x(772)] === x(3106) && (o.initAsync = o[x(772)]), o; + return be(o.ns) && (o.ns = [o.ns]), be(o[x(633)]) && (o[x(633)] = [o[x(633)]]), be(o.fallbackNS) && (o.fallbackNS = [o[x(2089)]]), ((r = (t = o[x(1934)]) == null ? void 0 : t[x(2273)]) == null ? void 0 : r.call(t, x(2421))) < 0 && (o.supportedLngs = o[x(1934)][x(1557)]([x(2421)])), typeof o[x(413)] === x(2903) && (o.initAsync = o[x(413)]), o; }, px = () => { -}, Ti = (o) => { +}, Ri = (o) => { const x = a; - Object.getOwnPropertyNames(Object[x(1209)](o))[x(2617)]((r) => { + Object.getOwnPropertyNames(Object[x(554)](o)).forEach((r) => { const e = x; - typeof o[r] === e(1936) && (o[r] = o[r][e(1386)](o)); + typeof o[r] === e(1149) && (o[r] = o[r][e(2764)](o)); }); }; -class xx extends Ax { +class ex extends Ax { constructor(x = {}, t) { const r = a; - if (super(), this.options = xr(x), this[r(1791)] = {}, this[r(2303)] = d0, this[r(852)] = { external: [] }, Ti(this), t && !this[r(3029)] && !x[r(873)]) { - if (!this[r(2876)][r(1719)]) return this.init(x, t), this; + if (super(), this[r(1341)] = xr(x), this[r(2577)] = {}, this[r(872)] = f0, this.modules = { external: [] }, Ri(this), t && !this[r(1932)] && !x[r(1853)]) { + if (!this.options[r(312)]) return this[r(2462)](x, t), this; setTimeout(() => { - this[r(1775)](x, t); + this[r(2462)](x, t); }, 0); } } - [a(1775)](x = {}, t) { + init(x = {}, t) { const r = a; - this[r(1614)] = !0, typeof x == "function" && (t = x, x = {}), x[r(1589)] == null && x.ns && (be(x.ns) ? x[r(1589)] = x.ns : x.ns[r(2436)](r(1650)) < 0 && (x[r(1589)] = x.ns[0])); + this.isInitializing = !0, typeof x === r(1149) && (t = x, x = {}), x[r(1674)] == null && x.ns && (be(x.ns) ? x[r(1674)] = x.ns : x.ns[r(2273)](r(1747)) < 0 && (x[r(1674)] = x.ns[0])); const e = er(); - this[r(2876)] = { ...e, ...this[r(2876)], ...xr(x) }, this[r(2876)][r(1647)] = { ...e[r(1647)], ...this[r(2876)].interpolation }, x[r(1200)] !== void 0 && (this.options[r(1204)] = x[r(1200)]), x.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = x[r(1707)]); - const s = (f) => { + this[r(1341)] = { ...e, ...this.options, ...xr(x) }, this[r(1341)][r(829)] = { ...e[r(829)], ...this[r(1341)][r(829)] }, x.keySeparator !== void 0 && (this.options[r(836)] = x[r(2596)]), x[r(2916)] !== void 0 && (this[r(1341)][r(2899)] = x[r(2916)]); + const s = (d) => { const l = r; - return f ? typeof f === l(1936) ? new f() : f : null; + return d ? typeof d === l(1149) ? new d() : d : null; }; - if (!this[r(2876)][r(873)]) { - this[r(852)].logger ? d0.init(s(this[r(852)][r(2303)]), this[r(2876)]) : d0.init(null, this.options); - let f; - this[r(852)].formatter ? f = this[r(852)][r(1934)] : f = Ci; - const l = new Ka(this[r(2876)]); - this[r(872)] = new Wa(this[r(2876)].resources, this[r(2876)]); - const d = this[r(1791)]; - d[r(2303)] = d0, d[r(3082)] = this[r(872)], d[r(1476)] = l, d[r(2041)] = new Ii(l, { prepend: this[r(2876)][r(2850)], simplifyPluralSuffix: this.options[r(2942)] }), this[r(2876)][r(1647)][r(802)] && this[r(2876)][r(1647)].format !== e[r(1647)][r(802)] && this.logger[r(1925)](r(1566)), f && (!this.options[r(1647)][r(802)] || this[r(2876)][r(1647)][r(802)] === e.interpolation[r(802)]) && (d.formatter = s(f), d.formatter[r(1775)] && d[r(1934)][r(1775)](d, this[r(2876)]), this.options.interpolation[r(802)] = d.formatter.format.bind(d[r(1934)])), d[r(1896)] = new Xa(this[r(2876)]), d[r(2254)] = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, d.backendConnector = new Fi(s(this.modules[r(1231)]), d[r(3082)], d, this[r(2876)]), d.backendConnector.on("*", (h, ...m) => { - this[r(2256)](h, ...m); - }), this[r(852)][r(3114)] && (d[r(3114)] = s(this.modules[r(3114)]), d[r(3114)][r(1775)] && d.languageDetector[r(1775)](d, this[r(2876)].detection, this[r(2876)])), this[r(852)][r(911)] && (d.i18nFormat = s(this[r(852)].i18nFormat), d[r(911)][r(1775)] && d[r(911)].init(this)), this.translator = new Tx(this[r(1791)], this[r(2876)]), this[r(1781)].on("*", (h, ...m) => { - this[r(2256)](h, ...m); - }), this[r(852)][r(1734)][r(2617)]((h) => { + if (!this.options.isClone) { + this.modules[r(872)] ? f0[r(2462)](s(this[r(1250)].logger), this[r(1341)]) : f0[r(2462)](null, this.options); + let d; + this.modules[r(831)] ? d = this[r(1250)][r(831)] : d = Pi; + const l = new Za(this[r(1341)]); + this[r(2788)] = new Wa(this[r(1341)].resources, this[r(1341)]); + const f = this.services; + f[r(872)] = f0, f[r(1793)] = this[r(2788)], f.languageUtils = l, f.pluralResolver = new wi(l, { prepend: this[r(1341)][r(1870)], simplifyPluralSuffix: this[r(1341)].simplifyPluralSuffix }), this[r(1341)].interpolation[r(2350)] && this.options[r(829)][r(2350)] !== e[r(829)][r(2350)] && this[r(872)].deprecate(r(2809)), d && (!this.options[r(829)].format || this.options[r(829)][r(2350)] === e.interpolation[r(2350)]) && (f[r(831)] = s(d), f[r(831)].init && f[r(831)][r(2462)](f, this[r(1341)]), this[r(1341)].interpolation[r(2350)] = f[r(831)][r(2350)][r(2764)](f[r(831)])), f.interpolator = new Xa(this.options), f.utils = { hasLoadedNamespace: this[r(2578)].bind(this) }, f.backendConnector = new Ei(s(this[r(1250)][r(1479)]), f[r(1793)], f, this[r(1341)]), f[r(2976)].on("*", (h, ...m) => { + this[r(1271)](h, ...m); + }), this.modules[r(1750)] && (f.languageDetector = s(this[r(1250)][r(1750)]), f.languageDetector[r(2462)] && f[r(1750)].init(f, this[r(1341)].detection, this.options)), this.modules[r(1002)] && (f[r(1002)] = s(this.modules[r(1002)]), f.i18nFormat[r(2462)] && f[r(1002)][r(2462)](this)), this[r(2329)] = new Nx(this.services, this.options), this[r(2329)].on("*", (h, ...m) => { + this[r(1271)](h, ...m); + }), this[r(1250)][r(1719)][r(430)]((h) => { const m = r; - h[m(1775)] && h[m(1775)](this); + h[m(2462)] && h[m(2462)](this); }); } - if (this.format = this[r(2876)][r(1647)][r(802)], t || (t = px), this[r(2876)].fallbackLng && !this[r(1791)][r(3114)] && !this[r(2876)].lng) { - const f = this[r(1791)].languageUtils[r(1873)](this[r(2876)].fallbackLng); - f[r(2710)] > 0 && f[0] !== r(1541) && (this[r(2876)].lng = f[0]); + if (this[r(2350)] = this[r(1341)][r(829)].format, t || (t = px), this[r(1341)][r(633)] && !this[r(2577)][r(1750)] && !this[r(1341)].lng) { + const d = this[r(2577)][r(1416)][r(1038)](this.options[r(633)]); + d.length > 0 && d[0] !== r(2052) && (this[r(1341)][r(2986)] = d[0]); } - !this.services[r(3114)] && !this[r(2876)][r(3164)] && this[r(2303)][r(1114)]("init: no languageDetector is used and no lng is defined"), [r(824), "hasResourceBundle", r(2948), "getDataByLanguage"][r(2617)]((f) => { - const l = r; - this[f] = (...d) => this[l(872)][f](...d); - }), ["addResource", "addResources", r(607), r(855)][r(2617)]((f) => { - this[f] = (...l) => (this[K(872)][f](...l), this); + !this.services[r(1750)] && !this.options[r(2986)] && this[r(872)][r(2618)]("init: no languageDetector is used and no lng is defined"), [r(381), r(2874), r(1482), r(501)].forEach((d) => { + this[d] = (...l) => this.store[d](...l); + }), [r(2531), r(512), r(1022), "removeResourceBundle"][r(430)]((d) => { + this[d] = (...l) => (this.store[d](...l), this); }); - const c = Q0(), u = () => { - const f = r, l = (d, g) => { - const h = K; - this[h(1614)] = !1, this[h(3029)] && !this[h(547)] && this.logger[h(1114)](h(1001)), this.isInitialized = !0, this[h(2876)].isClone || this[h(2303)][h(1635)](h(2683), this.options), this[h(2256)](h(2683), this[h(2876)]), c[h(2457)](g), t(d, g); + const c = J0(), u = () => { + const d = r, l = (f, g) => { + const h = Z; + this.isInitializing = !1, this[h(1932)] && !this.initializedStoreOnce && this.logger.warn(h(897)), this[h(1932)] = !0, this.options[h(1853)] || this.logger[h(2127)]("initialized", this[h(1341)]), this[h(1271)](h(1584), this[h(1341)]), c[h(855)](g), t(f, g); }; - if (this.languages && !this.isInitialized) return l(null, this.t[f(1386)](this)); - this[f(759)](this[f(2876)][f(3164)], l); + if (this.languages && !this.isInitialized) return l(null, this.t[d(2764)](this)); + this[d(1180)](this[d(1341)][d(2986)], l); }; - return this[r(2876)][r(1673)] || !this[r(2876)].initAsync ? u() : setTimeout(u, 0), c; + return this.options[r(1813)] || !this.options[r(312)] ? u() : setTimeout(u, 0), c; } - [a(1264)](x, t = px) { + [a(1254)](x, t = px) { var n, i; const r = a; let e = t; - const s = be(x) ? x : this[r(3090)]; - if (typeof x === r(1936) && (e = x), !this[r(2876)][r(1673)] || this[r(2876)][r(2964)]) { - if ((s == null ? void 0 : s[r(1945)]()) === r(2789) && (!this[r(2876)][r(1125)] || this.options[r(1125)][r(2710)] === 0)) return e(); - const c = [], u = (f) => { + const s = be(x) ? x : this[r(1503)]; + if (typeof x === r(1149) && (e = x), !this[r(1341)][r(1813)] || this.options[r(2292)]) { + if ((s == null ? void 0 : s.toLowerCase()) === r(2421) && (!this[r(1341)][r(2309)] || this[r(1341)][r(2309)].length === 0)) return e(); + const c = [], u = (d) => { const l = r; - if (!f || f === l(2789)) return; - this[l(1791)][l(1476)][l(2825)](f)[l(2617)]((g) => { + if (!d || d === "cimode") return; + this.services[l(1416)][l(2018)](d)[l(430)]((g) => { const h = l; - g !== "cimode" && c.indexOf(g) < 0 && c[h(3062)](g); + g !== h(2421) && c[h(2273)](g) < 0 && c[h(3019)](g); }); }; - s ? u(s) : this[r(1791)][r(1476)][r(1873)](this[r(2876)].fallbackLng)[r(2617)]((l) => u(l)), (i = (n = this.options[r(1125)]) == null ? void 0 : n[r(2617)]) == null || i.call(n, (f) => u(f)), this.services[r(1577)][r(1429)](c, this.options.ns, (f) => { + s ? u(s) : this[r(2577)][r(1416)].getFallbackCodes(this[r(1341)][r(633)])[r(430)]((l) => u(l)), (i = (n = this.options.preload) == null ? void 0 : n[r(430)]) == null || i.call(n, (d) => u(d)), this[r(2577)][r(2976)].load(c, this.options.ns, (d) => { const l = r; - !f && !this[l(1049)] && this[l(3090)] && this[l(723)](this[l(3090)]), e(f); + !d && !this[l(1161)] && this.language && this[l(2124)](this.language), e(d); }); } else e(null); } - [a(1008)](x, t, r) { - const e = a, s = Q0(); - return typeof x == "function" && (r = x, x = void 0), typeof t === e(1936) && (r = t, t = void 0), x || (x = this[e(1056)]), t || (t = this.options.ns), r || (r = px), this[e(1791)][e(1577)].reload(x, t, (n) => { - s[e(2457)](), r(n); + [a(2801)](x, t, r) { + const e = a, s = J0(); + return typeof x === e(1149) && (r = x, x = void 0), typeof t == "function" && (r = t, t = void 0), x || (x = this[e(658)]), t || (t = this[e(1341)].ns), r || (r = px), this[e(2577)][e(2976)].reload(x, t, (n) => { + s.resolve(), r(n); }), s; } - [a(1728)](x) { + [a(1202)](x) { const t = a; if (!x) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()"); - if (!x[t(2076)]) throw new Error(t(2734)); - return x[t(2076)] === "backend" && (this[t(852)][t(1231)] = x), (x.type === t(2303) || x[t(1635)] && x[t(1114)] && x[t(490)]) && (this.modules[t(2303)] = x), x[t(2076)] === t(3114) && (this[t(852)][t(3114)] = x), x.type === t(911) && (this[t(852)].i18nFormat = x), x[t(2076)] === t(2992) && Gs[t(2349)](x), x[t(2076)] === t(1934) && (this[t(852)][t(1934)] = x), x.type === t(1175) && this[t(852)].external[t(3062)](x), this; + if (!x[t(2291)]) throw new Error(t(1384)); + return x[t(2291)] === t(1479) && (this[t(1250)][t(1479)] = x), (x[t(2291)] === t(872) || x[t(2127)] && x.warn && x[t(1491)]) && (this[t(1250)][t(872)] = x), x[t(2291)] === t(1750) && (this[t(1250)].languageDetector = x), x.type === t(1002) && (this[t(1250)][t(1002)] = x), x[t(2291)] === t(1972) && Bs[t(2137)](x), x[t(2291)] === t(831) && (this[t(1250)].formatter = x), x[t(2291)] === t(1658) && this[t(1250)][t(1719)][t(3019)](x), this; } - [a(723)](x) { + setResolvedLanguage(x) { const t = a; - if (!(!x || !this.languages) && !([t(2789), "dev"][t(2436)](x) > -1)) { - for (let r = 0; r < this[t(1056)][t(2710)]; r++) { - const e = this[t(1056)][r]; - if (!([t(2789), t(1541)].indexOf(e) > -1) && this[t(872)].hasLanguageSomeTranslations(e)) { - this[t(1049)] = e; + if (!(!x || !this[t(658)]) && !([t(2421), t(2052)].indexOf(x) > -1)) { + for (let r = 0; r < this[t(658)][t(1148)]; r++) { + const e = this[t(658)][r]; + if (!([t(2421), "dev"].indexOf(e) > -1) && this[t(2788)][t(1031)](e)) { + this[t(1161)] = e; break; } } - !this[t(1049)] && this.languages[t(2436)](x) < 0 && this.store[t(3068)](x) && (this[t(1049)] = x, this[t(1056)][t(1162)](x)); + !this[t(1161)] && this[t(658)][t(2273)](x) < 0 && this[t(2788)].hasLanguageSomeTranslations(x) && (this[t(1161)] = x, this[t(658)].unshift(x)); } } - changeLanguage(x, t) { + [a(1180)](x, t) { const r = a; - this.isLanguageChangingTo = x; - const e = Q0(); - this[r(2256)]("languageChanging", x); + this[r(2030)] = x; + const e = J0(); + this.emit(r(2216), x); const s = (c) => { const u = r; - this.language = c, this.languages = this[u(1791)][u(1476)][u(2825)](c), this[u(1049)] = void 0, this[u(723)](c); + this[u(1503)] = c, this[u(658)] = this[u(2577)][u(1416)][u(2018)](c), this[u(1161)] = void 0, this.setResolvedLanguage(c); }, n = (c, u) => { - const f = r; - u ? this.isLanguageChangingTo === x && (s(u), this[f(1781)][f(759)](u), this[f(1391)] = void 0, this.emit("languageChanged", u), this[f(2303)][f(1635)](f(638), u)) : this[f(1391)] = void 0, e[f(2457)]((...l) => this.t(...l)), t && t(c, (...l) => this.t(...l)); + const d = r; + u ? this.isLanguageChangingTo === x && (s(u), this[d(2329)][d(1180)](u), this[d(2030)] = void 0, this[d(1271)](d(1408), u), this[d(872)][d(2127)]("languageChanged", u)) : this[d(2030)] = void 0, e[d(855)]((...l) => this.t(...l)), t && t(c, (...l) => this.t(...l)); }, i = (c) => { - var d, g; + var f, g; const u = r; - !x && !c && this[u(1791)][u(3114)] && (c = []); - const f = be(c) ? c : c && c[0], l = this[u(872)][u(3068)](f) ? f : this.services.languageUtils[u(1252)](be(c) ? [c] : c); - l && (!this[u(3090)] && s(l), this.translator[u(3090)] || this[u(1781)][u(759)](l), (g = (d = this[u(1791)][u(3114)]) == null ? void 0 : d[u(1274)]) == null || g.call(d, l)), this[u(1264)](l, (h) => { + !x && !c && this[u(2577)][u(1750)] && (c = []); + const d = be(c) ? c : c && c[0], l = this.store[u(1031)](d) ? d : this[u(2577)][u(1416)][u(1462)](be(c) ? [c] : c); + l && (!this[u(1503)] && s(l), this.translator[u(1503)] || this[u(2329)][u(1180)](l), (g = (f = this[u(2577)].languageDetector) == null ? void 0 : f[u(1791)]) == null || g.call(f, l)), this[u(1254)](l, (h) => { n(h, l); }); }; - return !x && this[r(1791)][r(3114)] && !this.services[r(3114)].async ? i(this[r(1791)][r(3114)][r(1088)]()) : !x && this[r(1791)][r(3114)] && this.services[r(3114)][r(2416)] ? this.services[r(3114)][r(1088)][r(2710)] === 0 ? this[r(1791)][r(3114)][r(1088)]()[r(2517)](i) : this[r(1791)].languageDetector[r(1088)](i) : i(x), e; + return !x && this[r(2577)][r(1750)] && !this[r(2577)][r(1750)][r(2538)] ? i(this[r(2577)][r(1750)][r(1541)]()) : !x && this[r(2577)].languageDetector && this[r(2577)][r(1750)][r(2538)] ? this[r(2577)][r(1750)][r(1541)].length === 0 ? this[r(2577)][r(1750)][r(1541)]()[r(634)](i) : this[r(2577)].languageDetector[r(1541)](i) : i(x), e; } - [a(3101)](x, t, r) { + [a(568)](x, t, r) { const e = a, s = (n, i, ...c) => { - const u = K; - let f; - typeof i !== u(1304) ? f = this.options[u(2556)]([n, i][u(2700)](c)) : f = { ...i }, f[u(3164)] = f[u(3164)] || s[u(3164)], f[u(2941)] = f[u(2941)] || s[u(2941)], f.ns = f.ns || s.ns, f[u(1073)] !== "" && (f[u(1073)] = f[u(1073)] || r || s[u(1073)]); - const l = this[u(2876)].keySeparator || "."; + const u = Z; let d; - return f[u(1073)] && Array[u(3255)](n) ? d = n[u(1930)]((g) => { + typeof i !== u(2220) ? d = this[u(1341)][u(2262)]([n, i][u(1557)](c)) : d = { ...i }, d[u(2986)] = d[u(2986)] || s[u(2986)], d[u(354)] = d[u(354)] || s.lngs, d.ns = d.ns || s.ns, d[u(2691)] !== "" && (d[u(2691)] = d[u(2691)] || r || s[u(2691)]); + const l = this[u(1341)][u(2596)] || "."; + let f; + return d[u(2691)] && Array[u(500)](n) ? f = n.map((g) => { const h = u; - return typeof g === h(1936) && (g = Qt(g, { ...this.options, ...i })), "" + f[h(1073)] + l + g; - }) : (typeof n === u(1936) && (n = Qt(n, { ...this[u(2876)], ...i })), d = f[u(1073)] ? "" + f[u(1073)] + l + n : n), this.t(d, f); + return typeof g === h(1149) && (g = Qt(g, { ...this[h(1341)], ...i })), "" + d.keyPrefix + l + g; + }) : (typeof n == "function" && (n = Qt(n, { ...this[u(1341)], ...i })), f = d[u(2691)] ? "" + d[u(2691)] + l + n : n), this.t(f, d); }; - return be(x) ? s[e(3164)] = x : s[e(2941)] = x, s.ns = t, s[e(1073)] = r, s; + return be(x) ? s[e(2986)] = x : s[e(354)] = x, s.ns = t, s[e(2691)] = r, s; } t(...x) { var r; const t = a; - return (r = this[t(1781)]) == null ? void 0 : r[t(1543)](...x); + return (r = this[t(2329)]) == null ? void 0 : r[t(2918)](...x); } - [a(1842)](...x) { + [a(722)](...x) { var r; - return (r = this[a(1781)]) == null ? void 0 : r.exists(...x); + return (r = this[a(2329)]) == null ? void 0 : r.exists(...x); } - [a(2999)](x) { + [a(2355)](x) { const t = a; - this[t(2876)][t(1589)] = x; + this[t(1341)][t(1674)] = x; } - [a(3254)](x, t = {}) { + hasLoadedNamespace(x, t = {}) { const r = a; - if (!this[r(3029)]) return this[r(2303)][r(1114)](r(2006), this[r(1056)]), !1; - if (!this[r(1056)] || !this[r(1056)][r(2710)]) return this[r(2303)][r(1114)](r(961), this[r(1056)]), !1; - const e = t[r(3164)] || this[r(1049)] || this[r(1056)][0], s = this[r(2876)] ? this[r(2876)].fallbackLng : !1, n = this[r(1056)][this.languages.length - 1]; - if (e.toLowerCase() === "cimode") return !0; + if (!this[r(1932)]) return this[r(872)].warn(r(975), this[r(658)]), !1; + if (!this[r(658)] || !this.languages.length) return this[r(872)][r(2618)](r(296), this[r(658)]), !1; + const e = t.lng || this[r(1161)] || this[r(658)][0], s = this[r(1341)] ? this[r(1341)].fallbackLng : !1, n = this[r(658)][this[r(658)][r(1148)] - 1]; + if (e.toLowerCase() === r(2421)) return !0; const i = (c, u) => { - const f = r, l = this[f(1791)][f(1577)].state[c + "|" + u]; + const d = r, l = this[d(2577)][d(2976)].state[c + "|" + u]; return l === -1 || l === 0 || l === 2; }; - if (t[r(2806)]) { - const c = t.precheck(this, i); + if (t[r(1537)]) { + const c = t[r(1537)](this, i); if (c !== void 0) return c; } - return !!(this.hasResourceBundle(e, x) || !this[r(1791)].backendConnector[r(1231)] || this.options[r(1673)] && !this[r(2876)].partialBundledLanguages || i(e, x) && (!s || i(n, x))); + return !!(this[r(2874)](e, x) || !this.services.backendConnector[r(1479)] || this[r(1341)].resources && !this[r(1341)][r(2292)] || i(e, x) && (!s || i(n, x))); } - [a(585)](x, t) { - const r = a, e = Q0(); - return this.options.ns ? (be(x) && (x = [x]), x[r(2617)]((s) => { + [a(551)](x, t) { + const r = a, e = J0(); + return this.options.ns ? (be(x) && (x = [x]), x[r(430)]((s) => { const n = r; - this[n(2876)].ns.indexOf(s) < 0 && this[n(2876)].ns[n(3062)](s); - }), this[r(1264)]((s) => { + this[n(1341)].ns.indexOf(s) < 0 && this[n(1341)].ns[n(3019)](s); + }), this.loadResources((s) => { e.resolve(), t && t(s); - }), e) : (t && t(), Promise.resolve()); + }), e) : (t && t(), Promise[r(855)]()); } - [a(1477)](x, t) { - const r = a, e = Q0(); + [a(2506)](x, t) { + const r = a, e = J0(); be(x) && (x = [x]); - const s = this[r(2876)].preload || [], n = x[r(2581)]((i) => s[r(2436)](i) < 0 && this[r(1791)][r(1476)][r(1149)](i)); - return n[r(2710)] ? (this[r(2876)][r(1125)] = s[r(2700)](n), this[r(1264)]((i) => { - e.resolve(), t && t(i); - }), e) : (t && t(), Promise.resolve()); + const s = this.options[r(2309)] || [], n = x[r(362)]((i) => s[r(2273)](i) < 0 && this[r(2577)].languageUtils[r(2271)](i)); + return n[r(1148)] ? (this[r(1341)][r(2309)] = s[r(1557)](n), this[r(1254)]((i) => { + e[r(855)](), t && t(i); + }), e) : (t && t(), Promise[r(855)]()); } - [a(2335)](x) { + [a(728)](x) { var s, n; const t = a; - if (x || (x = this.resolvedLanguage || (((s = this[t(1056)]) == null ? void 0 : s[t(2710)]) > 0 ? this[t(1056)][0] : this[t(3090)])), !x) return t(880); + if (x || (x = this[t(1161)] || (((s = this[t(658)]) == null ? void 0 : s.length) > 0 ? this.languages[0] : this.language)), !x) return t(3003); try { - const i = new Intl[t(2711)](x); - if (i && i[t(2063)]) { - const c = i[t(2063)](); - if (c && c[t(2443)]) return c[t(2443)]; + const i = new Intl[t(1854)](x); + if (i && i[t(2756)]) { + const c = i.getTextInfo(); + if (c && c[t(406)]) return c.direction; } } catch { } - const r = ["ar", "shu", t(554), "ssh", t(1957), t(2721), "yud", t(971), t(745), t(1238), "acm", t(2469), "acw", t(700), t(2382), t(2572), t(2336), t(3091), t(831), "afb", t(2326), "apc", t(962), "arb", "arq", t(2500), t(1834), "arz", t(1569), t(2750), t(3112), "ayl", t(1972), t(1980), "bbz", "pga", "he", "iw", "ps", "pbt", t(2291), t(1349), t(1339), t(1480), "ug", "ur", t(2971), t(2070), t(3063), "ji", "yi", t(3034), t(964), t(1510), "fa", t(1763), t(3226), t(1407), t(1876), "dv", t(2299), t(616)], e = ((n = this[t(1791)]) == null ? void 0 : n.languageUtils) || new Ka(er()); - return x[t(1945)]()[t(2436)](t(1444)) > 1 ? t(2364) : r[t(2436)](e[t(594)](x)) > -1 || x[t(1945)]()[t(2436)]("-arab") > 1 ? t(880) : "ltr"; + const r = ["ar", t(2885), "sqr", t(2198), t(1393), t(642), t(591), t(1573), t(751), t(2173), t(1210), "acq", t(2044), t(2246), t(2416), t(2920), t(2501), t(300), "aec", "afb", t(1076), t(466), t(2550), t(1587), t(1106), t(1488), t(1753), t(526), "auz", t(775), "ayh", t(2129), t(330), t(2235), t(993), t(2185), "he", "iw", "ps", "pbt", "pbu", "pst", t(2452), t(2239), "ug", "ur", t(2929), t(1307), t(1127), "ji", "yi", t(1169), t(1231), t(2053), "fa", t(756), t(1988), t(491), t(1755), "dv", t(692), t(1812)], e = ((n = this[t(2577)]) == null ? void 0 : n[t(1416)]) || new Za(er()); + return x.toLowerCase()[t(2273)]("-latn") > 1 ? "ltr" : r[t(2273)](e.getLanguagePartFromCode(x)) > -1 || x[t(1119)]()[t(2273)]("-arab") > 1 ? t(3003) : "ltr"; } - static [a(775)](x = {}, t) { - const r = a, e = new xx(x, t); - return e[r(775)] = xx.createInstance, e; + static [a(2930)](x = {}, t) { + const r = a, e = new ex(x, t); + return e[r(2930)] = ex[r(2930)], e; } - [a(2345)](x = {}, t = px) { - const r = a, e = x[r(1515)]; - e && delete x[r(1515)]; - const s = { ...this[r(2876)], ...x, isClone: !0 }, n = new xx(s); - if ((x[r(3158)] !== void 0 || x[r(632)] !== void 0) && (n.logger = n.logger[r(2472)](x)), ["store", r(1791), r(3090)][r(2617)]((c) => { + [a(1216)](x = {}, t = px) { + const r = a, e = x[r(335)]; + e && delete x[r(335)]; + const s = { ...this[r(1341)], ...x, isClone: !0 }, n = new ex(s); + if ((x[r(819)] !== void 0 || x[r(1004)] !== void 0) && (n[r(872)] = n.logger[r(820)](x)), [r(2788), r(2577), r(1503)][r(430)]((c) => { n[c] = this[c]; - }), n.services = { ...this[r(1791)] }, n[r(1791)][r(2254)] = { hasLoadedNamespace: n.hasLoadedNamespace[r(1386)](n) }, e) { - const c = Object.keys(this[r(872)][r(2663)])[r(1630)]((u, f) => { + }), n.services = { ...this.services }, n[r(2577)].utils = { hasLoadedNamespace: n.hasLoadedNamespace.bind(n) }, e) { + const c = Object[r(1877)](this[r(2788)].data)[r(2069)]((u, d) => { const l = r; - return u[f] = { ...this[l(872)][l(2663)][f] }, u[f] = Object[l(2123)](u[f])[l(1630)]((d, g) => (d[g] = { ...u[f][g] }, d), u[f]), u; + return u[d] = { ...this[l(2788)][l(1506)][d] }, u[d] = Object.keys(u[d])[l(2069)]((f, g) => (f[g] = { ...u[d][g] }, f), u[d]), u; }, {}); - n[r(872)] = new Wa(c, s), n[r(1791)].resourceStore = n[r(872)]; + n[r(2788)] = new Wa(c, s), n.services[r(1793)] = n[r(2788)]; } - return x.interpolation && (n[r(1791)][r(1896)] = new Xa(s)), n.translator = new Tx(n[r(1791)], s), n[r(1781)].on("*", (c, ...u) => { - n[r(2256)](c, ...u); - }), n[r(1775)](s, t), n[r(1781)][r(2876)] = s, n[r(1781)][r(1577)][r(1791)][r(2254)] = { hasLoadedNamespace: n.hasLoadedNamespace[r(1386)](n) }, n; + return x[r(829)] && (n[r(2577)][r(3044)] = new Xa(s)), n[r(2329)] = new Nx(n[r(2577)], s), n[r(2329)].on("*", (c, ...u) => { + n.emit(c, ...u); + }), n[r(2462)](s, t), n.translator.options = s, n.translator[r(2976)][r(2577)][r(2182)] = { hasLoadedNamespace: n[r(2578)].bind(n) }, n; } - [a(1363)]() { + toJSON() { const x = a; - return { options: this[x(2876)], store: this[x(872)], language: this[x(3090)], languages: this.languages, resolvedLanguage: this.resolvedLanguage }; + return { options: this.options, store: this[x(2788)], language: this.language, languages: this[x(658)], resolvedLanguage: this[x(1161)] }; } } -const Xe = xx.createInstance(); -Xe[a(775)], Xe.dir, Xe[a(1775)], Xe[a(1264)], Xe.reloadResources, Xe[a(1728)], Xe.changeLanguage, Xe[a(3101)], Xe.t, Xe.exists, Xe[a(2999)], Xe.hasLoadedNamespace, Xe.loadNamespaces, Xe[a(1477)]; -function Ni() { +const Xe = ex.createInstance(); +Xe.createInstance, Xe[a(728)], Xe.init, Xe[a(1254)], Xe[a(2801)], Xe.use, Xe.changeLanguage, Xe[a(568)], Xe.t, Xe[a(722)], Xe[a(2355)], Xe.hasLoadedNamespace, Xe.loadNamespaces, Xe[a(2506)]; +function Ci() { const o = a; - if (typeof navigator !== o(993) && navigator[o(3090)]) return navigator[o(3090)] === o(707) ? "zh-CN" : o(2260); + if (typeof navigator !== o(2781) && navigator[o(1503)]) return navigator[o(1503)] === o(1528) ? "zh-CN" : o(2650); try { - const x = typeof require < "u" ? require : void 0; + const x = typeof require !== o(2781) ? require : void 0; if (x) - return x(o(2062))[o(746)][o(1353)][o(760)]("zh") ? o(707) : o(2260); + return x(o(1020))[o(779)][o(1586)][o(1654)]("zh") ? "zh-CN" : o(2650); } catch { } return "en-US"; } -let Qs = Ni(); -const qi = { "zh-CN": {}, "en-US": {} }; +let Ks = Ci(); +const Fi = { "zh-CN": {}, "en-US": {} }; function Xt(o) { - const x = o === "zh-CN" ? fi : li, t = qi[o]; - return { ...x, ...t }; + const x = a, t = o === x(1528) ? oi : ii, r = Fi[o]; + return { ...t, ...r }; } -function Ai() { - return Qs; +function _i() { + return Ks; } function Yt(o, x = {}) { const t = a; - let e = Xt(Qs)[o]; - return e ? typeof e === t(1361) ? e[t(1521)](/\{\{(\w+)\}\}/g, (s, n) => x[n] !== void 0 ? String(x[n]) : s) : e : o; + let e = Xt(Ks)[o]; + return e ? typeof e === t(2028) ? e[t(1252)](/\{\{(\w+)\}\}/g, (s, n) => x[n] !== void 0 ? String(x[n]) : s) : e : o; } -const Oi = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Di = { "&": "&", "&": "&", "<": "<", "<": "<", ">": ">", ">": ">", "'": "'", "'": "'", """: '"', """: '"', " ": " ", " ": " ", "©": "©", "©": "©", "®": "®", "®": "®", "…": "…", "…": "…", "/": "/", "/": "/" }, ji = (o) => Di[o], Mi = (o) => o[a(1521)](Oi, ji); -let tr = { bindI18n: a(638), bindI18nStore: "", transEmptyNodeValue: "", transSupportBasicHtmlNodes: !0, transWrapTextNodes: "", transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"], useSuspense: !0, unescape: Mi }; -const Li = (o = {}) => { +const Ni = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Ti = { "&": "&", "&": "&", "<": "<", "<": "<", ">": ">", ">": ">", "'": "'", "'": "'", """: '"', """: '"', " ": " ", " ": " ", "©": "©", "©": "©", "®": "®", "®": "®", "…": "…", "…": "…", "/": "/", "/": "/" }, qi = (o) => Ti[o], Ai = (o) => o[a(1252)](Ni, qi); +let tr = { bindI18n: a(1408), bindI18nStore: "", transEmptyNodeValue: "", transSupportBasicHtmlNodes: !0, transWrapTextNodes: "", transKeepBasicHtmlNodesFor: ["br", a(482), "i", "p"], useSuspense: !0, unescape: Ai }; +const Oi = (o = {}) => { tr = { ...tr, ...o }; -}, $i = { type: a(1175), init(o) { - const x = a; - Li(o[x(2876)][x(770)]); +}, Di = { type: a(1658), init(o) { + Oi(o.options.react); } }; -!Xe.isInitialized && Xe[a(1728)]($i).init({ resources: { "zh-CN": { translation: Xt(a(707)) }, "en-US": { translation: Xt(a(2260)) } }, lng: Ai(), fallbackLng: a(2260), interpolation: { escapeValue: !1 } }); -globalThis[a(3093)] = globalThis[a(3093)] || {}; -const tx = globalThis[a(3093)], _0 = []; -tx[a(1561)] = tx[a(1561)] || {}, tx[a(1561)].add = function(o, x) { +!Xe[a(1932)] && Xe.use(Di)[a(2462)]({ resources: { "zh-CN": { translation: Xt(a(1528)) }, "en-US": { translation: Xt(a(2650)) } }, lng: _i(), fallbackLng: "en-US", interpolation: { escapeValue: !1 } }); +globalThis.sdpppX2 = globalThis[a(438)] || {}; +const xx = globalThis.sdpppX2, F0 = []; +xx.widgetable = xx[a(1901)] || {}, xx[a(1901)][a(986)] = function(o, x) { const t = a; - typeof x == "function" ? _0[t(3062)]([o, { formatter: x, setter: null }]) : _0[t(3062)]([o, x]); + typeof x === t(1149) ? F0[t(3019)]([o, { formatter: x, setter: null }]) : F0[t(3019)]([o, x]); }; -function Ui(o, x, t) { +function ji(o, x, t) { var c; - const r = a, e = _0.find(([u]) => u == K(1297)), s = _0[r(3146)](([u]) => ia(u, o[r(2076)])) || e; + const r = a, e = F0[r(304)](([u]) => u == r(479)), s = F0[r(304)](([u]) => ia(u, o[r(2291)])) || e; let n = !1; if (s) { - const u = s[1][r(1153)]; + const u = s[1][r(429)]; u && (n = !!u(o, x, t)); } - !n && (o[r(1816)][x][r(2446)] = t), (c = (Te[r(2542)] || Te[r(1797)].workflow)[r(3176)]) == null || c[r(1534)][r(1091)](); + !n && (o[r(1204)][x][r(935)] = t), (c = (Ne.workflowManager || Ne.extensionManager[r(1774)])[r(1763)]) == null || c[r(2225)][r(754)](); } -function Nx(o) { - const x = a, t = {}, r = _0[x(3146)](([e]) => e == "__DEFAULT__"); - return o.nodes.forEach((e) => { +function Tx(o) { + const x = a, t = {}, r = F0[x(304)](([e]) => e == x(479)); + return o[x(2844)].forEach((e) => { const s = x; - if (!e[s(1816)] || e[s(1816)].length == 0) return; - const n = _0[s(3146)](([i]) => ia(i, e[s(2076)])) || r; + if (!e[s(1204)] || e[s(1204)].length == 0) return; + const n = F0[s(304)](([i]) => ia(i, e.type)) || r; if (n) try { - const i = n[1][s(1934)](e); - i && (t[e.id] = i[s(1816)][s(1930)]((c) => c[s(2446)])); + const i = n[1][s(831)](e); + i && (t[e.id] = i[s(1204)][s(2739)]((c) => c.value)); } catch { t[e.id] = []; } @@ -4408,59 +4410,59 @@ function ea(o, x) { var s, n, i; const t = a; if (!o) return { widgetableID: "", widgetablePath: "", nodes: {}, nodeIndexes: [], options: {}, note: "" }; - const r = o[t(669)][t(1930)]((c) => { + const r = o.nodes[t(2739)]((c) => { const u = t; - if (c[u(1742)] != 0) return; - const f = bx(c); - if (!f || f[u(760)](".") || !c.widgets || c[u(1816)][u(2710)] == 0) return; - let l = _0[u(3146)](([m]) => ia(m, c[u(2076)])); + if (c[u(645)] != 0) return; + const d = bx(c); + if (!d || d[u(1654)](".") || !c[u(1204)] || c[u(1204)][u(1148)] == 0) return; + let l = F0[u(304)](([m]) => ia(m, c[u(2291)])); if (l) try { - const m = l[1][u(1934)](c); - if (m) return m.id = c.id, m.uiWeightSum = m[u(1816)].reduce((v, k) => v + (k[u(1970)] || 12), 0), m; + const m = l[1][u(831)](c); + if (m) return m.id = c.id, m[u(410)] = m[u(1204)][u(2069)]((v, k) => v + (k[u(2269)] || 12), 0), m; } catch (m) { - return { id: c.id, title: f, uiWeightSum: 12, widgets: [{ outputType: u(490), value: Yt(u(2580), l[0]) + (m[u(1044)] || m || ""), name: "", options: {} }] }; + return { id: c.id, title: d, uiWeightSum: 12, widgets: [{ outputType: u(1491), value: Yt(u(2304), l[0]) + (m[u(2461)] || m || ""), name: "", options: {} }] }; } - if (!f.startsWith("#")) return null; - let d = c[u(1816)]; - const g = _0[u(3146)](([m]) => m == "__DEFAULT__"); + if (!d[u(1654)]("#")) return null; + let f = c.widgets; + const g = F0[u(304)](([m]) => m == "__DEFAULT__"); if (g) { - const m = g[1][u(1934)](c); - if (m) return Object.assign(m, { uiWeightSum: m.widgets[u(1630)]((v, k) => v + (k.uiWeight || 12), 0) }); + const m = g[1][u(831)](c); + if (m) return Object[u(2363)](m, { uiWeightSum: m.widgets[u(2069)]((v, k) => v + (k.uiWeight || 12), 0) }); } - const h = { id: c.id, title: f, widgets: d[u(1930)]((m) => ({ name: m.label || m[u(2641)], outputType: m[u(2076)] || "string", value: m[u(2446)], options: m[u(2876)] })) }; - return Object.assign(h, { uiWeightSum: h[u(1816)][u(1630)]((m, v) => m + (v[u(1970)] || 12), 0) }); - })[t(2581)](Boolean)[t(841)]((c, u) => { - const f = t; - let l = bx(c), d = bx(u); - return l = l[f(760)]("#") ? l[f(1387)](1)[f(2337)]() : l.trim(), d = d[f(760)]("#") ? d[f(1387)](1)[f(2337)]() : d[f(2337)](), l.localeCompare(d); - }), e = ((n = (s = o.nodes.find((c) => c.type == t(1960) && c.title.match(/SD-?PPP/i))) == null ? void 0 : s[t(1816)][0]) == null ? void 0 : n[t(2446)]) || ""; - return { widgetablePath: ((i = x[t(3266)].extra) == null ? void 0 : i.sdppp_workflow_alias) || x[t(2474)], widgetableID: x.activeState.id, nodes: r.reduce((c, u) => (c[u.id] = u, c), {}), note: e, nodeIndexes: r.map((c) => c.id), options: {} }; + const h = { id: c.id, title: d, widgets: f[u(2739)]((m) => ({ name: m.label || m[u(1166)], outputType: m[u(2291)] || u(2028), value: m.value, options: m[u(1341)] })) }; + return Object[u(2363)](h, { uiWeightSum: h[u(1204)][u(2069)]((m, v) => m + (v.uiWeight || 12), 0) }); + })[t(362)](Boolean)[t(1534)]((c, u) => { + const d = t; + let l = bx(c), f = bx(u); + return l = l.startsWith("#") ? l[d(1908)](1)[d(2845)]() : l[d(2845)](), f = f[d(1654)]("#") ? f[d(1908)](1)[d(2845)]() : f[d(2845)](), l.localeCompare(f); + }), e = ((n = (s = o.nodes.find((c) => c[t(2291)] == "Note" && c[t(2673)][t(789)](/SD-?PPP/i))) == null ? void 0 : s[t(1204)][0]) == null ? void 0 : n[t(935)]) || ""; + return { widgetablePath: ((i = x[t(2617)].extra) == null ? void 0 : i[t(1162)]) || x[t(648)], widgetableID: x.activeState.id, nodes: r[t(2069)]((c, u) => (c[u.id] = u, c), {}), note: e, nodeIndexes: r[t(2739)]((c) => c.id), options: {} }; } function ia(o, x) { - const t = a, r = o.replace(/[.+^${}()|[\]\\]/g, t(898)).replace(/\*/g, ".*").replace(/\?/g, "."); - return new RegExp("^" + r + "$")[t(2346)](x); + const t = a, r = o.replace(/[.+^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*")[t(1252)](/\?/g, "."); + return new RegExp("^" + r + "$")[t(1531)](x); } function bx(o, x = "") { var e; const t = a; - let r = x || o[t(2141)] || ""; - return o.setProperty && (r[t(760)]("#") || r.startsWith(".")) ? o.setProperty(t(2502), r) : r = ((e = o[t(3005)]) == null ? void 0 : e[t(2502)]) || r, r; + let r = x || o.title || ""; + return o[t(2836)] && (r[t(1654)]("#") || r.startsWith(".")) ? o.setProperty(t(289), r) : r = ((e = o.properties) == null ? void 0 : e[t(289)]) || r, r; } -tx[a(2049)] = bx; -const xa = ix[a(919)]("mesh:workflow"), ar = /* @__PURE__ */ new Set(); -Ie.implementAction(a(622), async (o) => { +xx[a(833)] = bx; +const xa = ox[a(1735)](a(956)), ar = /* @__PURE__ */ new Set(); +Ee[a(1748)](a(1456), async (o) => { const x = a; - return requestAnimationFrame(Pn), o[x(3237)][x(2617)](({ nodeID: t, widgetIndex: r, value: e }) => { - const s = x, n = Te[s(1843)][s(669)].find((i) => i.id == t); - Ui(n, r, e); + return requestAnimationFrame(vn), o[x(922)].forEach(({ nodeID: t, widgetIndex: r, value: e }) => { + const s = x, n = Ne[s(2603)][s(2844)][s(304)]((i) => i.id == t); + ji(n, r, e); }), { success: !0 }; -}), Ie.implementAction("openWorkflow", async (o) => { - const x = a, { workflow_path: t } = o, r = !ar[x(2348)](t), e = o[x(2837)] || r; - ar.add(t); - const s = Te.extensionManager[x(538)] || Te[x(2542)], n = s[x(3236)][x(3146)]((c) => c[x(1057)] === t || c[x(2474)] === t || c.path === x(1032) + t); +}), Ee[a(1748)](a(1089), async (o) => { + const x = a, { workflow_path: t } = o, r = !ar.has(t), e = o[x(1721)] || r; + ar[x(986)](t); + const s = Ne[x(1108)][x(1774)] || Ne[x(878)], n = s[x(1874)][x(304)]((c) => c[x(1422)] === t || c[x(648)] === t || c[x(648)] === x(1483) + t); if (!e) { - const c = await zi(s, n); - if (xa("reset=false but needsReset: " + c), c) await Gx(s, n); + const c = await Li(s, n); + if (xa(x(1133) + c), c) await Gx(s, n); else try { await i(s, n); } catch { @@ -4470,929 +4472,924 @@ Ie.implementAction(a(622), async (o) => { } return await Gx(s, n), { success: !0 }; async function i(c, u) { - const f = x; - xa(f(3194) + u.path, u[f(837)]), Te.workflowManager == c ? await u[f(1429)]() : (await c[f(2249)](u), await Te[f(3053)](JSON[f(2774)](JSON.stringify(u[f(837)])), !0, !0, u, {})); + const d = x; + xa("openWorkflow: " + u[d(648)], u[d(2710)]), Ne[d(878)] == c ? await u.load() : (await c[d(1089)](u), await Ne[d(437)](JSON[d(1598)](JSON[d(3038)](u.initialState)), !0, !0, u, {})); } -}), Ie.implementAction(a(3049), async function(o) { +}), Ee[a(1748)](a(2987), async function(o) { const x = a; let { workflow_content: t, workflow_path: r } = o; - return t.extra = { ...t.extra || {}, sdppp_workflow_alias: r }, await Te[x(3053)](t), { success: !0 }; -}), Ie.implementAction(a(1045), async (o) => { + return t.extra = { ...t[x(2769)] || {}, sdppp_workflow_alias: r }, await Ne[x(437)](t), { success: !0 }; +}), Ee[a(1748)]("listWorkflows", async (o) => { var s; - const x = a, t = Te[x(2542)] || Te[x(1797)].workflow; - (s = t.syncWorkflows) == null || s.call(t), await new Promise((n) => requestAnimationFrame(n)); - let e = t[x(3236)][x(1930)]((n) => n[x(2474)][x(1521)](x(1032), "")); + const x = a, t = Ne.workflowManager || Ne[x(1108)].workflow; + (s = t[x(615)]) == null || s.call(t), await new Promise((n) => requestAnimationFrame(n)); + let e = t.workflows[x(2739)]((n) => n[x(648)][x(1252)]("workflows/", "")); try { - const n = new Headers(), i = localStorage[x(2215)](x(900)); - i && n[x(780)]("comfy-user", i); - const c = await fetch(x(3138), { headers: n }); + const n = new Headers(), i = localStorage[x(2157)]("Comfy.userId"); + i && n[x(823)](x(1293), i); + const c = await fetch("./api/userdata/workflows%2F.index.json", { headers: n }); let u = []; - c.ok && (u = (await c[x(1207)]())[x(2986)][x(1930)]((l) => l.replace(x(1032), ""))), e.sort((f, l) => { - const d = x, g = u.includes(f), h = u[d(2978)](l); - return g && !h ? -1 : !g && h ? 1 : f[d(925)](l); + c.ok && (u = (await c[x(780)]())[x(1128)][x(2739)]((l) => l.replace(x(1483), ""))), e.sort((d, l) => { + const f = x, g = u[f(555)](d), h = u.includes(l); + return g && !h ? -1 : !g && h ? 1 : d.localeCompare(l); }); } catch { } return { workflows: e, error: "" }; -}), Ie[a(2922)]("saveWorkflow", async (o) => { +}), Ee.implementAction(a(2626), async (o) => { var n; - const x = a, { workflow_path: t, from_sid: r } = o, e = Te.workflowManager || Te[x(1797)][x(538)], s = e[x(3236)][x(3146)]((i) => i[x(1057)] === t || i[x(2474)] === t || i.path === x(1032) + t); - if (!s) throw new Error(x(2173)); - return ((n = e[x(3176)]) == null ? void 0 : n.id) != s.id && await Te[x(2249)](t, r, !1), s[x(1534)][x(1091)](), await e.saveWorkflow(s), { success: !0 }; + const x = a, { workflow_path: t, from_sid: r } = o, e = Ne.workflowManager || Ne[x(1108)].workflow, s = e[x(1874)][x(304)]((i) => i.fullFilename === t || i.path === t || i[x(648)] === x(1483) + t); + if (!s) throw new Error(x(433)); + return ((n = e[x(1763)]) == null ? void 0 : n.id) != s.id && await Ne[x(1089)](t, r, !1), s.changeTracker[x(754)](), await e[x(2626)](s), { success: !0 }; }); -async function zi(o, x) { +async function Li(o, x) { var e, s, n; const t = a; - if (!x || !(((e = o[t(3176)]) == null ? void 0 : e.id) === x.id)) return !1; - if ((s = x.changeTracker) != null && s[t(1091)]) try { - x.changeTracker[t(1091)](); + if (!x || !(((e = o[t(1763)]) == null ? void 0 : e.id) === x.id)) return !1; + if ((s = x.changeTracker) != null && s[t(754)]) try { + x[t(2225)][t(754)](); } catch (i) { - console[t(1114)]("Failed to check workflow changeTracker state:", i); + console[t(2618)](t(2152), i); } try { - const i = (n = Te.graph) == null ? void 0 : n[t(3043)](), c = x[t(3266)]; + const i = (n = Ne.graph) == null ? void 0 : n[t(1803)](), c = x[t(2617)]; if (!i || !c) return !1; - const u = JSON[t(1031)](i), f = JSON.stringify(c); - return u !== f; + const u = JSON[t(3038)](i), d = JSON[t(3038)](c); + return u !== d; } catch (i) { - return console[t(1114)](t(2828), i), !1; + return console[t(2618)](t(2081), i), !1; } } async function Gx(o, x) { var e; const t = a; - xa(t(3150) + x[t(2474)]); + xa(t(3002) + x[t(648)]); async function r(s, n) { const i = t; - Te.workflowManager == s ? await n[i(1429)]() : (await s[i(2249)](n), await Te.loadGraphData(JSON[i(2774)](JSON.stringify(n[i(3266)])), !0, !0, n, {})); + Ne[i(878)] == s ? await n[i(451)]() : (await s.openWorkflow(n), await Ne[i(437)](JSON[i(1598)](JSON[i(3038)](n.activeState)), !0, !0, n, {})); } - if ((x[t(2917)] || (e = o[t(2917)]) != null && e.call(o, x)) && o.openWorkflows[t(2710)] === 1) { - const s = o.createTemporary(); - o[t(2249)](s); - } else await r(o, o[t(910)][0] == x ? o.openWorkflows[1] : o[t(910)][0]); - await o[t(1246)](x, !1), await new Promise((s) => requestAnimationFrame(s)), await r(o, x); + if ((x[t(736)] || (e = o[t(736)]) != null && e.call(o, x)) && o.openWorkflows[t(1148)] === 1) { + const s = o[t(828)](); + o[t(1089)](s); + } else await r(o, o.openWorkflows[0] == x ? o.openWorkflows[1] : o[t(799)][0]); + await o[t(976)](x, !1), await new Promise((s) => requestAnimationFrame(s)), await r(o, x); } -const ox = ix[a(919)](a(2584)), j0 = /* @__PURE__ */ new Map(); +const nx = ox[a(1735)]("workflow-run"), j0 = /* @__PURE__ */ new Map(); let qx = []; const Jx = { hijacked: !1, originalQueuePrompt: null }; -function Hi(o, x) { - const t = a, r = j0[t(674)](o); - ox(t(2801), o, x, r, j0), r && r[t(1751)](x); +function Mi(o, x) { + const t = a, r = j0[t(1507)](o); + nx(t(2863), o, x, r, j0), r && r.resolveImage(x); } -Ie[a(2922)]("stopAll", async () => { +Ee[a(1748)](a(2466), async () => { const o = a; - await Te.api[o(2090)](o(2284)), await Te[o(706)].interrupt(); - const x = Array[o(2047)](j0.values()); - j0.clear(); + await Ne[o(2753)][o(341)](o(2336)), await Ne[o(2753)].interrupt(); + const x = Array[o(1546)](j0[o(922)]()); + j0[o(277)](); for (const t of x) try { - t[o(916)](new Error(o(954))); + t[o(1843)](new Error(o(319))); } catch { } return { success: !0 }; -}), Ie.implementAction(a(2565), async function* (o) { +}), Ee[a(1748)](a(1343), async function* (o) { const x = a; - Vi(), qx = []; - const t = o[x(846)]; - Ie[x(872)].setState({ lastError: "", widgetableErrors: {} }); - const r = await Zi(t, o.mode); - ox(x(1507), r[x(2717)], r[x(1111)], x(660), r.promptIds), Gi(r), yield* Ji(r[x(789)]); + $i(), qx = []; + const t = o[x(2108)]; + Ee.store[x(734)]({ lastError: "", widgetableErrors: {} }); + const r = await Hi(t, o[x(645)]); + nx(x(2992), r.hasError, r[x(1060)], x(1170), r[x(690)]), Bi(r), yield* Wi(r.promptIds); }); -function Vi() { +function $i() { const o = a; - if (Jx.hijacked) return; - const x = R0[o(2664)]; - Jx[o(586)] = x, R0[o(2664)] = async (...t) => { + if (Jx[o(2714)]) return; + const x = R0[o(2573)]; + Jx[o(1298)] = x, R0[o(2573)] = async (...t) => { const r = o; try { - const e = await x[r(1522)](R0, ...t), s = e == null ? void 0 : e.prompt_id; - return s && Ki(s), qx[r(3062)]({ error: null, result: e, prompt_id: e[r(931)] }), e; + const e = await x[r(2689)](R0, ...t), s = e == null ? void 0 : e[r(2712)]; + return s && Vi(s), qx[r(3019)]({ error: null, result: e, prompt_id: e[r(2712)] }), e; } catch (e) { - throw qx[r(3062)]({ error: e, result: null, prompt_id: "" }), e; + throw qx[r(3019)]({ error: e, result: null, prompt_id: "" }), e; } - }, Jx[o(1367)] = !0; + }, Jx[o(2714)] = !0; } -async function Bi(o) { - await Te.queuePrompt(1, o); +async function Ui(o) { + await Ne[a(2573)](1, o); } -async function Wi(o) { - const x = a, t = await Te[x(2178)](Te[x(1843)]); +async function zi(o) { + const x = a, t = await Ne[x(1950)](Ne[x(2603)]); for (let r = 0; r < o; r++) - await R0[x(2664)](1, t); + await R0.queuePrompt(1, t); } -async function Zi(o, x = a(2012)) { +async function Hi(o, x = a(2837)) { var e, s; const t = a, r = { promptIds: [], hasError: !1, generalError: "", nodeErrors: {} }; try { - x === t(706) ? await Wi(o) : await Bi(o); + x === t(2753) ? await zi(o) : await Ui(o); for (const n of qx) - if (n[t(490)]) r[t(2717)] = !0, r[t(1111)] = n[t(490)][t(2963)] ? Qi(n[t(490)][t(2963)][t(3241)]) : {}, Object[t(661)](r[t(1111)], { "-1": ((s = (e = n[t(490)][t(2963)]) == null ? void 0 : e.error) == null ? void 0 : s[t(1044)]) || n[t(490)][t(1044)] }); + if (n[t(1491)]) r[t(1498)] = !0, r[t(1060)] = n[t(1491)][t(2819)] ? Ki(n[t(1491)][t(2819)][t(2368)]) : {}, Object[t(2363)](r[t(1060)], { "-1": ((s = (e = n.error[t(2819)]) == null ? void 0 : e[t(1491)]) == null ? void 0 : s[t(2461)]) || n[t(1491)][t(2461)] }); else { - const i = n[t(676)][t(931)]; - r[t(789)][t(3062)](i); + const i = n[t(2468)][t(2712)]; + r[t(690)][t(3019)](i); } } catch (n) { - ox(t(2631), n.stack), r[t(2717)] = !0, r[t(1111)] = { "-1": n[t(1044)] || n[t(2732)]() }; + nx(t(2241), n.stack), r[t(1498)] = !0, r[t(1060)] = { "-1": n[t(2461)] || n.toString() }; } return r; } -function Ki(o) { +function Vi(o) { const x = a; let t, r; const e = new Promise((s, n) => { t = s, r = n; }); - j0[x(780)](o, { promise: e, resolveImage: t, rejectImage: r }); + j0[x(823)](o, { promise: e, resolveImage: t, rejectImage: r }); } -function Gi({ hasError: o, generalError: x, nodeErrors: t }) { +function Bi({ hasError: o, generalError: x, nodeErrors: t }) { const r = a; - o && (x ? Ie.store[r(738)]({ lastError: x }) : Ie[r(872)][r(738)]({ widgetableErrors: t })); + o && (x ? Ee[r(2788)][r(734)]({ lastError: x }) : Ee[r(2788)][r(734)]({ widgetableErrors: t })); } -async function* Ji(o) { +async function* Wi(o) { const x = a, t = /* @__PURE__ */ new Map(); for (const r of o) { - const e = j0[x(674)](r); - e && t[x(780)](r, e[x(810)]); + const e = j0[x(1507)](r); + e && t[x(823)](r, e[x(2828)]); } if (t.size !== 0) - for (ox(x(1789)); t[x(846)] > 0; ) { - const r = Array[x(2047)](t.entries()), e = r[x(1930)](([i, c]) => c[x(2517)]((u) => ({ prompt_id: i, images: u }))), { prompt_id: s, images: n } = await Promise.race(e); - ox(x(2127), s), t.delete(s), j0[x(875)](s), yield { success: !0, prompt_ids: [s], images: n }; + for (nx(x(1237)); t.size > 0; ) { + const r = Array[x(1546)](t.entries()), e = r[x(2739)](([i, c]) => c[x(634)]((u) => ({ prompt_id: i, images: u }))), { prompt_id: s, images: n } = await Promise[x(992)](e); + nx(x(948), s), t.delete(s), j0[x(2375)](s), yield { success: !0, prompt_ids: [s], images: n }; } } -function Qi(o) { +function Ki(o) { const x = a, t = {}; - return Object[x(2123)](o)[x(2617)]((r) => { - const e = x, s = r[e(3263)](":")[0], n = Te[e(1843)].nodes[e(3146)]((i) => i.id == s); - t[s] = "[" + ((n == null ? void 0 : n[e(2141)]) || s) + "]" + o[r][e(2800)][e(1930)](JSON[e(1031)])[e(1592)](` + return Object[x(1877)](o)[x(430)]((r) => { + const e = x, s = r.split(":")[0], n = Ne[e(2603)][e(2844)].find((i) => i.id == s); + t[s] = "[" + ((n == null ? void 0 : n[e(2673)]) || s) + "]" + o[r][e(1139)][e(2739)](JSON.stringify)[e(896)](` `); }), t; } -const Xi = ix[a(919)](a(2406)); -Ie[a(2922)](a(1586), async (o) => { +const Zi = ox[a(1735)]("actions:util"); +Ee.implementAction(a(2647), async (o) => { const x = a; - return o != null && o[x(2040)] && Xi(x(2765), o[x(2040)]), { comfyVersion: x(1319), hostVersion: (o == null ? void 0 : o.hostVersion) ?? "" }; -}), Ie[a(2922)](a(965), async (o) => { - const x = a, { node_id: t, title: r } = o, e = Te[x(1843)][x(669)][x(3146)]((s) => s.id == t); - if (!e) throw new Error(x(2504)); - return e[x(2141)] = r, e[x(2946)](x(2502), r), { success: !0 }; -}), Ie[a(2922)](a(1570), async () => { - const o = a, x = await fetch(o(1374)); - return x[o(1227)] == 404 ? { error: Yt(o(1074)), success: !1 } : x[o(1227)] == 200 ? { success: !0 } : { error: Yt(o(3006)) + x[o(757)], success: !1 }; -}), Ie[a(2922)](a(2775), async (o) => { + return o != null && o.hostVersion && Zi(x(877), o[x(1816)]), { comfyVersion: x(2507), hostVersion: (o == null ? void 0 : o.hostVersion) ?? "" }; +}), Ee[a(1748)]("setNodeTitle", async (o) => { + const x = a, { node_id: t, title: r } = o, e = Ne.graph[x(2844)][x(304)]((s) => s.id == t); + if (!e) throw new Error(x(2935)); + return e[x(2673)] = r, e[x(2836)](x(289), r), { success: !0 }; +}), Ee[a(1748)](a(1246), async () => { + const o = a, x = await fetch(o(527)); + return x[o(1071)] == 404 ? { error: Yt(o(2267)), success: !1 } : x[o(1071)] == 200 ? { success: !0 } : { error: Yt(o(1048)) + x[o(2074)], success: !1 }; +}), Ee[a(1748)]("setComfyOrgAPIKey", async (o) => { const x = a, { api_key: t } = o; - return localStorage.setItem(x(729), t), location[x(1646)](), { success: !0 }; -}), Ie[a(2922)]("logout", async () => { + return localStorage[x(1618)](x(1475), t), location[x(2232)](), { success: !0 }; +}), Ee[a(1748)](a(827), async () => { const o = a; - return document[o(1126)](".pi-sign-out")[o(2157)][o(1433)](), { success: !0 }; + return document.querySelector(o(2436))[o(2177)][o(1206)](), { success: !0 }; }); -function Yi(o) { - const x = a, t = atob(o), r = t.length, e = new Uint8Array(r); - for (let s = 0; s < r; s++) - e[s] = t[x(901)](s); - return e; +function Gi(o) { + const x = atob(o), t = x.length, r = new Uint8Array(t); + for (let e = 0; e < t; e++) + r[e] = x.charCodeAt(e); + return r; } -Ie[a(2922)]("uploadComfyImageFromUXP", async (o, x, t) => { - const r = a, { fileName: e, overwrite: s = !0, mimeType: n = r(1682), dataBase64: i } = o; - if (t != null && t[r(896)]) throw new DOMException(r(969), r(2749)); - const c = Yi(i), u = new Blob([c], { type: n }), f = new FormData(); - f.append(r(705), u), f.append("filename", e), f[r(2289)](r(2608), r(s ? 727 : 2657)); - const l = await fetch(r(680), { method: "POST", body: f, signal: t }); - if (!l.ok) throw new Error(r(1454) + l[r(757)]); - const d = await l.json(); - return { name: d[r(1563)] + "/" + d[r(2641)] }; +Ee.implementAction(a(980), async (o, x, t) => { + const r = a, { fileName: e, overwrite: s = !0, mimeType: n = r(2660), dataBase64: i } = o; + if (t != null && t[r(1363)]) throw new DOMException("Upload aborted", r(1340)); + const c = Gi(i), u = new Blob([c], { type: n }), d = new FormData(); + d[r(2872)](r(2009), u), d[r(2872)](r(1896), e), d[r(2872)](r(1886), s ? "true" : r(661)); + const l = await fetch(r(1567), { method: r(399), body: d, signal: t }); + if (!l.ok) throw new Error(r(2620) + l[r(2074)]); + const f = await l.json(); + return { name: f[r(783)] + "/" + f[r(1166)] }; }); -const Xs = a(1479), ec = [Xs, "2025-03-26", "2024-11-05", a(3143)], Ox = a(2804), Ys = Ve([b(), W()[a(2755)]()]), en = b(), xc = S({ progressToken: B(Ys) })[a(1307)](), r0 = S({ _meta: B(xc) }).passthrough(), x0 = S({ method: b(), params: B(r0) }), cx = S({ _meta: B(S({})[a(1307)]()) })[a(1307)](), m0 = S({ method: b(), params: B(cx) }), s0 = S({ _meta: B(S({})[a(1307)]()) })[a(1307)](), Dx = Ve([b(), W().int()]), xn = S({ jsonrpc: xe(Ox), id: Dx }).merge(x0)[a(1116)](), tc = (o) => xn[a(3098)](o)[a(3031)], tn = S({ jsonrpc: xe(Ox) })[a(1779)](m0).strict(), ac = (o) => tn.safeParse(o)[a(3031)], an = S({ jsonrpc: xe(Ox), id: Dx, result: s0 })[a(1116)](), rr = (o) => an[a(3098)](o).success; +const Zs = a(1186), Ji = [Zs, a(2415), "2024-11-05", a(2860)], Ox = "2.0", Gs = Ve([b(), W()[a(2021)]()]), Js = b(), Qi = S({ progressToken: B(Gs) }).passthrough(), r0 = S({ _meta: B(Qi) }).passthrough(), x0 = S({ method: b(), params: B(r0) }), ix = S({ _meta: B(S({}).passthrough()) })[a(933)](), m0 = S({ method: b(), params: B(ix) }), s0 = S({ _meta: B(S({})[a(933)]()) }).passthrough(), Dx = Ve([b(), W()[a(2021)]()]), Qs = S({ jsonrpc: xe(Ox), id: Dx }).merge(x0).strict(), Xi = (o) => Qs[a(1110)](o)[a(2186)], Xs = S({ jsonrpc: xe(Ox) }).merge(m0).strict(), Yi = (o) => Xs[a(1110)](o)[a(2186)], Ys = S({ jsonrpc: xe(Ox), id: Dx, result: s0 }).strict(), rr = (o) => Ys[a(1110)](o)[a(2186)]; var v0; (function(o) { const x = a; - o[o[x(1247)] = -32e3] = x(1247), o[o.RequestTimeout = -32001] = "RequestTimeout", o[o[x(892)] = -32700] = "ParseError", o[o.InvalidRequest = -32600] = x(3202), o[o[x(3120)] = -32601] = "MethodNotFound", o[o[x(2557)] = -32602] = x(2557), o[o[x(2898)] = -32603] = "InternalError"; + o[o[x(2631)] = -32e3] = x(2631), o[o.RequestTimeout = -32001] = x(1077), o[o.ParseError = -32700] = x(1619), o[o[x(1918)] = -32600] = x(1918), o[o[x(1352)] = -32601] = x(1352), o[o[x(1485)] = -32602] = x(1485), o[o.InternalError = -32603] = x(614); })(v0 || (v0 = {})); -const rn = S({ jsonrpc: xe(Ox), id: Dx, error: S({ code: W()[a(2755)](), message: b(), data: B(k0()) }) })[a(1116)](), rc = (o) => rn[a(3098)](o)[a(3031)]; -Ve([xn, tn, an, rn]); -const ta = s0[a(1116)](), aa = m0[a(919)]({ method: xe(a(1924)), params: cx[a(919)]({ requestId: Dx, reason: b().optional() }) }), ux = S({ name: b(), title: B(b()) })[a(1307)](), sn = ux[a(919)]({ version: b() }), sc = S({ experimental: B(S({}).passthrough()), sampling: B(S({})[a(1307)]()), elicitation: B(S({})[a(1307)]()), roots: B(S({ listChanged: B(Q()) }).passthrough()) }).passthrough(), nn = x0.extend({ method: xe(a(3104)), params: r0[a(919)]({ protocolVersion: b(), capabilities: sc, clientInfo: sn }) }), nc = S({ experimental: B(S({})[a(1307)]()), logging: B(S({})[a(1307)]()), completions: B(S({}).passthrough()), prompts: B(S({ listChanged: B(Q()) })[a(1307)]()), resources: B(S({ subscribe: B(Q()), listChanged: B(Q()) })[a(1307)]()), tools: B(S({ listChanged: B(Q()) })[a(1307)]()) })[a(1307)](), oc = s0[a(919)]({ protocolVersion: b(), capabilities: nc, serverInfo: sn, instructions: B(b()) }), on = m0.extend({ method: xe(a(3217)) }), ra = x0[a(919)]({ method: xe(a(2509)) }), ic = S({ progress: W(), total: B(W()), message: B(b()) })[a(1307)](), sa = m0[a(919)]({ method: xe(a(3179)), params: cx[a(1779)](ic)[a(919)]({ progressToken: Ys }) }), jx = x0[a(919)]({ params: r0[a(919)]({ cursor: B(en) })[a(2478)]() }), Mx = s0[a(919)]({ nextCursor: B(en) }), cn = S({ uri: b(), mimeType: B(b()), _meta: B(S({}).passthrough()) })[a(1307)](), un = cn[a(919)]({ text: b() }), fn = cn[a(919)]({ blob: b()[a(3046)]() }), ln = ux[a(919)]({ uri: b(), description: B(b()), mimeType: B(b()), _meta: B(S({})[a(1307)]()) }), cc = ux[a(919)]({ uriTemplate: b(), description: B(b()), mimeType: B(b()), _meta: B(S({}).passthrough()) }), uc = jx[a(919)]({ method: xe("resources/list") }), fc = Mx[a(919)]({ resources: we(ln) }), lc = jx[a(919)]({ method: xe(a(2847)) }), dc = Mx[a(919)]({ resourceTemplates: we(cc) }), hc = x0[a(919)]({ method: xe(a(952)), params: r0[a(919)]({ uri: b() }) }), pc = s0.extend({ contents: we(Ve([un, fn])) }), mc = m0.extend({ method: xe(a(1629)) }), bc = x0[a(919)]({ method: xe(a(2611)), params: r0.extend({ uri: b() }) }), gc = x0[a(919)]({ method: xe(a(2276)), params: r0[a(919)]({ uri: b() }) }), yc = m0[a(919)]({ method: xe("notifications/resources/updated"), params: cx[a(919)]({ uri: b() }) }), vc = S({ name: b(), description: B(b()), required: B(Q()) })[a(1307)](), wc = ux[a(919)]({ description: B(b()), arguments: B(we(vc)), _meta: B(S({})[a(1307)]()) }), Sc = jx[a(919)]({ method: xe(a(1396)) }), kc = Mx[a(919)]({ prompts: we(wc) }), Pc = x0[a(919)]({ method: xe(a(1143)), params: r0[a(919)]({ name: b(), arguments: B(qe(b())) }) }), ca = S({ type: xe("text"), text: b(), _meta: B(S({})[a(1307)]()) }).passthrough(), ua = S({ type: xe(a(705)), data: b()[a(3046)](), mimeType: b(), _meta: B(S({}).passthrough()) })[a(1307)](), fa = S({ type: xe(a(2188)), data: b().base64(), mimeType: b(), _meta: B(S({})[a(1307)]()) }).passthrough(), Ic = S({ type: xe(a(2988)), resource: Ve([un, fn]), _meta: B(S({})[a(1307)]()) })[a(1307)](), Ec = ln[a(919)]({ type: xe(a(689)) }), dn = Ve([ca, ua, fa, Ec, Ic]), Rc = S({ role: Pe(["user", a(678)]), content: dn })[a(1307)](), Cc = s0[a(919)]({ description: B(b()), messages: we(Rc) }), _c = m0.extend({ method: xe("notifications/prompts/list_changed") }), Fc = S({ title: B(b()), readOnlyHint: B(Q()), destructiveHint: B(Q()), idempotentHint: B(Q()), openWorldHint: B(Q()) })[a(1307)](), Tc = ux[a(919)]({ description: B(b()), inputSchema: S({ type: xe(a(1304)), properties: B(S({})[a(1307)]()), required: B(we(b())) })[a(1307)](), outputSchema: B(S({ type: xe("object"), properties: B(S({}).passthrough()), required: B(we(b())) })[a(1307)]()), annotations: B(Fc), _meta: B(S({})[a(1307)]()) }), Nc = jx.extend({ method: xe(a(2744)) }), qc = Mx[a(919)]({ tools: we(Tc) }), hn = s0[a(919)]({ content: we(dn)[a(2485)]([]), structuredContent: S({})[a(1307)]()[a(2478)](), isError: B(Q()) }); -hn.or(s0.extend({ toolResult: k0() })); -const Ac = x0[a(919)]({ method: xe(a(2769)), params: r0[a(919)]({ name: b(), arguments: B(qe(k0())) }) }), Oc = m0[a(919)]({ method: xe(a(1600)) }), pn = Pe([a(3158), a(1241), a(2417), a(1245), a(490), a(980), "alert", a(1140)]), Dc = x0[a(919)]({ method: xe(a(3014)), params: r0.extend({ level: pn }) }), jc = m0.extend({ method: xe(a(989)), params: cx[a(919)]({ level: pn, logger: B(b()), data: k0() }) }), Mc = S({ name: b()[a(2478)]() })[a(1307)](), Lc = S({ hints: B(we(Mc)), costPriority: B(W()[a(521)](0)[a(753)](1)), speedPriority: B(W()[a(521)](0)[a(753)](1)), intelligencePriority: B(W()[a(521)](0)[a(753)](1)) })[a(1307)](), $c = S({ role: Pe([a(1747), "assistant"]), content: Ve([ca, ua, fa]) }).passthrough(), Uc = x0[a(919)]({ method: xe(a(2180)), params: r0[a(919)]({ messages: we($c), systemPrompt: B(b()), includeContext: B(Pe([a(2833), "thisServer", a(1379)])), temperature: B(W()), maxTokens: W()[a(2755)](), stopSequences: B(we(b())), metadata: B(S({})[a(1307)]()), modelPreferences: B(Lc) }) }), mn = s0[a(919)]({ model: b(), stopReason: B(Pe(["endTurn", a(839), a(918)]).or(b())), role: Pe(["user", a(678)]), content: Vs("type", [ca, ua, fa]) }), zc = S({ type: xe(a(3106)), title: B(b()), description: B(b()), default: B(Q()) })[a(1307)](), Hc = S({ type: xe(a(1361)), title: B(b()), description: B(b()), minLength: B(W()), maxLength: B(W()), format: B(Pe([a(2255), a(776), a(1591), a(1313)])) })[a(1307)](), Vc = S({ type: Pe([a(2665), "integer"]), title: B(b()), description: B(b()), minimum: B(W()), maximum: B(W()) })[a(1307)](), Bc = S({ type: xe("string"), title: B(b()), description: B(b()), enum: we(b()), enumNames: B(we(b())) })[a(1307)](), Wc = Ve([zc, Hc, Vc, Bc]), Zc = x0[a(919)]({ method: xe(a(1206)), params: r0[a(919)]({ message: b(), requestedSchema: S({ type: xe(a(1304)), properties: qe(b(), Wc), required: B(we(b())) })[a(1307)]() }) }), bn = s0.extend({ action: Pe([a(995), a(1504), "cancel"]), content: B(qe(b(), k0())) }), Kc = S({ type: xe(a(1731)), uri: b() })[a(1307)](), Gc = S({ type: xe(a(2429)), name: b() })[a(1307)](), Jc = x0[a(919)]({ method: xe(a(1502)), params: r0[a(919)]({ ref: Ve([Gc, Kc]), argument: S({ name: b(), value: b() })[a(1307)](), context: B(S({ arguments: B(qe(b(), b())) })) }) }), Qc = s0.extend({ completion: S({ values: we(b())[a(753)](100), total: B(W()[a(2755)]()), hasMore: B(Q()) })[a(1307)]() }), Xc = S({ uri: b()[a(760)]("file://"), name: B(b()), _meta: B(S({}).passthrough()) }).passthrough(), Yc = x0[a(919)]({ method: xe(a(2089)) }), gn = s0[a(919)]({ roots: we(Xc) }), e2 = m0[a(919)]({ method: xe(a(597)) }); -Ve([ra, nn, Jc, Dc, Pc, Sc, uc, lc, hc, bc, gc, Ac, Nc]), Ve([aa, sa, on, e2]), Ve([ta, mn, bn, gn]), Ve([ra, Uc, Zc, Yc]), Ve([aa, sa, jc, yc, mc, Oc, _c]), Ve([ta, oc, Qc, Cc, kc, fc, dc, pc, hn, qc]); +const en = S({ jsonrpc: xe(Ox), id: Dx, error: S({ code: W()[a(2021)](), message: b(), data: B(k0()) }) })[a(2716)](), e2 = (o) => en[a(1110)](o)[a(2186)]; +Ve([Qs, Xs, Ys, en]); +const ta = s0[a(2716)](), aa = m0[a(1735)]({ method: xe(a(1273)), params: ix[a(1735)]({ requestId: Dx, reason: b().optional() }) }), cx = S({ name: b(), title: B(b()) })[a(933)](), xn = cx.extend({ version: b() }), x2 = S({ experimental: B(S({})[a(933)]()), sampling: B(S({})[a(933)]()), elicitation: B(S({}).passthrough()), roots: B(S({ listChanged: B(Q()) }).passthrough()) })[a(933)](), tn = x0[a(1735)]({ method: xe(a(862)), params: r0[a(1735)]({ protocolVersion: b(), capabilities: x2, clientInfo: xn }) }), t2 = S({ experimental: B(S({})[a(933)]()), logging: B(S({})[a(933)]()), completions: B(S({}).passthrough()), prompts: B(S({ listChanged: B(Q()) })[a(933)]()), resources: B(S({ subscribe: B(Q()), listChanged: B(Q()) })[a(933)]()), tools: B(S({ listChanged: B(Q()) })[a(933)]()) }).passthrough(), a2 = s0[a(1735)]({ protocolVersion: b(), capabilities: t2, serverInfo: xn, instructions: B(b()) }), an = m0[a(1735)]({ method: xe("notifications/initialized") }), ra = x0[a(1735)]({ method: xe(a(2666)) }), r2 = S({ progress: W(), total: B(W()), message: B(b()) })[a(933)](), sa = m0.extend({ method: xe(a(885)), params: ix.merge(r2)[a(1735)]({ progressToken: Gs }) }), jx = x0[a(1735)]({ params: r0[a(1735)]({ cursor: B(Js) }).optional() }), Lx = s0[a(1735)]({ nextCursor: B(Js) }), rn = S({ uri: b(), mimeType: B(b()), _meta: B(S({})[a(933)]()) })[a(933)](), sn = rn.extend({ text: b() }), nn = rn[a(1735)]({ blob: b()[a(1997)]() }), on = cx.extend({ uri: b(), description: B(b()), mimeType: B(b()), _meta: B(S({})[a(933)]()) }), s2 = cx.extend({ uriTemplate: b(), description: B(b()), mimeType: B(b()), _meta: B(S({})[a(933)]()) }), n2 = jx[a(1735)]({ method: xe(a(2016)) }), o2 = Lx[a(1735)]({ resources: Se(on) }), i2 = jx[a(1735)]({ method: xe(a(884)) }), c2 = Lx[a(1735)]({ resourceTemplates: Se(s2) }), u2 = x0.extend({ method: xe(a(742)), params: r0[a(1735)]({ uri: b() }) }), d2 = s0.extend({ contents: Se(Ve([sn, nn])) }), l2 = m0[a(1735)]({ method: xe(a(961)) }), f2 = x0.extend({ method: xe(a(557)), params: r0.extend({ uri: b() }) }), h2 = x0[a(1735)]({ method: xe(a(2265)), params: r0[a(1735)]({ uri: b() }) }), p2 = m0[a(1735)]({ method: xe("notifications/resources/updated"), params: ix[a(1735)]({ uri: b() }) }), m2 = S({ name: b(), description: B(b()), required: B(Q()) })[a(933)](), b2 = cx[a(1735)]({ description: B(b()), arguments: B(Se(m2)), _meta: B(S({})[a(933)]()) }), g2 = jx.extend({ method: xe(a(1869)) }), y2 = Lx[a(1735)]({ prompts: Se(b2) }), v2 = x0[a(1735)]({ method: xe(a(1213)), params: r0[a(1735)]({ name: b(), arguments: B(qe(b())) }) }), ca = S({ type: xe(a(1633)), text: b(), _meta: B(S({}).passthrough()) })[a(933)](), ua = S({ type: xe(a(2009)), data: b().base64(), mimeType: b(), _meta: B(S({}).passthrough()) })[a(933)](), da = S({ type: xe(a(2332)), data: b()[a(1997)](), mimeType: b(), _meta: B(S({})[a(933)]()) })[a(933)](), w2 = S({ type: xe(a(2559)), resource: Ve([sn, nn]), _meta: B(S({}).passthrough()) })[a(933)](), S2 = on[a(1735)]({ type: xe(a(1495)) }), cn = Ve([ca, ua, da, S2, w2]), k2 = S({ role: Ie([a(772), a(1608)]), content: cn })[a(933)](), P2 = s0[a(1735)]({ description: B(b()), messages: Se(k2) }), I2 = m0.extend({ method: xe(a(1192)) }), E2 = S({ title: B(b()), readOnlyHint: B(Q()), destructiveHint: B(Q()), idempotentHint: B(Q()), openWorldHint: B(Q()) })[a(933)](), R2 = cx[a(1735)]({ description: B(b()), inputSchema: S({ type: xe(a(2220)), properties: B(S({}).passthrough()), required: B(Se(b())) })[a(933)](), outputSchema: B(S({ type: xe(a(2220)), properties: B(S({})[a(933)]()), required: B(Se(b())) }).passthrough()), annotations: B(E2), _meta: B(S({})[a(933)]()) }), C2 = jx[a(1735)]({ method: xe(a(2896)) }), F2 = Lx[a(1735)]({ tools: Se(R2) }), un = s0[a(1735)]({ content: Se(cn)[a(2096)]([]), structuredContent: S({})[a(933)]().optional(), isError: B(Q()) }); +un.or(s0[a(1735)]({ toolResult: k0() })); +const _2 = x0[a(1735)]({ method: xe(a(2979)), params: r0.extend({ name: b(), arguments: B(qe(k0())) }) }), N2 = m0[a(1735)]({ method: xe(a(1920)) }), dn = Ie(["debug", a(1043), a(2481), a(1935), a(1491), "critical", "alert", a(2384)]), T2 = x0[a(1735)]({ method: xe(a(327)), params: r0[a(1735)]({ level: dn }) }), q2 = m0.extend({ method: xe(a(1370)), params: ix[a(1735)]({ level: dn, logger: B(b()), data: k0() }) }), A2 = S({ name: b()[a(2184)]() })[a(933)](), O2 = S({ hints: B(Se(A2)), costPriority: B(W()[a(316)](0)[a(477)](1)), speedPriority: B(W()[a(316)](0)[a(477)](1)), intelligencePriority: B(W()[a(316)](0)[a(477)](1)) })[a(933)](), D2 = S({ role: Ie([a(772), a(1608)]), content: Ve([ca, ua, da]) })[a(933)](), j2 = x0.extend({ method: xe(a(916)), params: r0.extend({ messages: Se(D2), systemPrompt: B(b()), includeContext: B(Ie([a(2087), a(578), a(800)])), temperature: B(W()), maxTokens: W().int(), stopSequences: B(Se(b())), metadata: B(S({}).passthrough()), modelPreferences: B(O2) }) }), ln = s0.extend({ model: b(), stopReason: B(Ie([a(2347), "stopSequence", a(1700)]).or(b())), role: Ie([a(772), a(1608)]), content: $s(a(2291), [ca, ua, da]) }), L2 = S({ type: xe(a(2903)), title: B(b()), description: B(b()), default: B(Q()) }).passthrough(), M2 = S({ type: xe(a(2028)), title: B(b()), description: B(b()), minLength: B(W()), maxLength: B(W()), format: B(Ie([a(1921), a(1542), a(2923), "date-time"])) })[a(933)](), $2 = S({ type: Ie([a(867), a(1999)]), title: B(b()), description: B(b()), minimum: B(W()), maximum: B(W()) }).passthrough(), U2 = S({ type: xe(a(2028)), title: B(b()), description: B(b()), enum: Se(b()), enumNames: B(Se(b())) })[a(933)](), z2 = Ve([L2, M2, $2, U2]), H2 = x0[a(1735)]({ method: xe(a(1543)), params: r0.extend({ message: b(), requestedSchema: S({ type: xe(a(2220)), properties: qe(b(), z2), required: B(Se(b())) })[a(933)]() }) }), fn = s0[a(1735)]({ action: Ie([a(1315), a(2484), a(1242)]), content: B(qe(b(), k0())) }), V2 = S({ type: xe(a(953)), uri: b() })[a(933)](), B2 = S({ type: xe(a(2805)), name: b() })[a(933)](), W2 = x0[a(1735)]({ method: xe("completion/complete"), params: r0[a(1735)]({ ref: Ve([B2, V2]), argument: S({ name: b(), value: b() })[a(933)](), context: B(S({ arguments: B(qe(b(), b())) })) }) }), K2 = s0[a(1735)]({ completion: S({ values: Se(b())[a(477)](100), total: B(W()[a(2021)]()), hasMore: B(Q()) })[a(933)]() }), Z2 = S({ uri: b().startsWith(a(3016)), name: B(b()), _meta: B(S({})[a(933)]()) })[a(933)](), G2 = x0[a(1735)]({ method: xe("roots/list") }), hn = s0[a(1735)]({ roots: Se(Z2) }), J2 = m0[a(1735)]({ method: xe(a(809)) }); +Ve([ra, tn, W2, T2, v2, g2, n2, i2, u2, f2, h2, _2, C2]), Ve([aa, sa, an, J2]), Ve([ta, ln, fn, hn]), Ve([ra, j2, H2, G2]), Ve([aa, sa, q2, p2, l2, N2, I2]), Ve([ta, a2, K2, P2, y2, o2, c2, d2, un, F2]); class q0 extends Error { constructor(x, t, r) { const e = a; - super(e(2129) + x + ": " + t), this.code = x, this[e(2663)] = r, this[e(2641)] = "McpError"; + super("MCP error " + x + ": " + t), this[e(2345)] = x, this[e(1506)] = r, this[e(1166)] = e(1698); } } -const x2 = 6e4; -class t2 { +const Q2 = 6e4; +class X2 { constructor(x) { const t = a; - this[t(1648)] = x, this[t(1556)] = 0, this._requestHandlers = /* @__PURE__ */ new Map(), this._requestHandlerAbortControllers = /* @__PURE__ */ new Map(), this[t(1445)] = /* @__PURE__ */ new Map(), this[t(539)] = /* @__PURE__ */ new Map(), this[t(2086)] = /* @__PURE__ */ new Map(), this._timeoutInfo = /* @__PURE__ */ new Map(), this[t(2135)] = /* @__PURE__ */ new Set(), this[t(1529)](aa, (r) => { - const e = t, s = this[e(1831)].get(r[e(1656)][e(3204)]); - s == null || s[e(1158)](r[e(1656)][e(1371)]); - }), this[t(1529)](sa, (r) => { - this[t(3071)](r); - }), this[t(1219)](ra, (r) => ({})); + this[t(1156)] = x, this[t(2595)] = 0, this[t(2144)] = /* @__PURE__ */ new Map(), this[t(587)] = /* @__PURE__ */ new Map(), this[t(2584)] = /* @__PURE__ */ new Map(), this._responseHandlers = /* @__PURE__ */ new Map(), this[t(1220)] = /* @__PURE__ */ new Map(), this[t(2831)] = /* @__PURE__ */ new Map(), this[t(2383)] = /* @__PURE__ */ new Set(), this[t(566)](aa, (r) => { + const e = t, s = this[e(587)][e(1507)](r.params[e(1508)]); + s == null || s.abort(r[e(434)][e(1433)]); + }), this[t(566)](sa, (r) => { + this[t(1283)](r); + }), this[t(2623)](ra, (r) => ({})); } - [a(3227)](x, t, r, e, s = !1) { + _setupTimeout(x, t, r, e, s = !1) { const n = a; - this[n(1533)].set(x, { timeoutId: setTimeout(e, t), startTime: Date[n(3275)](), timeout: t, maxTotalTimeout: r, resetTimeoutOnProgress: s, onTimeout: e }); + this[n(2831)][n(823)](x, { timeoutId: setTimeout(e, t), startTime: Date.now(), timeout: t, maxTotalTimeout: r, resetTimeoutOnProgress: s, onTimeout: e }); } - [a(3123)](x) { - const t = a, r = this._timeoutInfo[t(674)](x); + [a(580)](x) { + const t = a, r = this._timeoutInfo.get(x); if (!r) return !1; - const e = Date.now() - r[t(1348)]; - if (r[t(2709)] && e >= r[t(2709)]) - throw this[t(1533)][t(875)](x), new q0(v0[t(2160)], t(1441), { maxTotalTimeout: r[t(2709)], totalElapsed: e }); - return clearTimeout(r.timeoutId), r[t(2984)] = setTimeout(r.onTimeout, r[t(973)]), !0; + const e = Date[t(804)]() - r.startTime; + if (r[t(3032)] && e >= r[t(3032)]) + throw this[t(2831)].delete(x), new q0(v0[t(1077)], t(2032), { maxTotalTimeout: r[t(3032)], totalElapsed: e }); + return clearTimeout(r[t(1665)]), r.timeoutId = setTimeout(r[t(2580)], r[t(2025)]), !0; } - _cleanupTimeout(x) { - const t = a, r = this[t(1533)][t(674)](x); - r && (clearTimeout(r[t(2984)]), this[t(1533)][t(875)](x)); + [a(443)](x) { + const t = a, r = this[t(2831)][t(1507)](x); + r && (clearTimeout(r[t(1665)]), this[t(2831)][t(2375)](x)); } - async [a(1645)](x) { + async connect(x) { const t = a; var r, e, s; - this[t(1448)] = x; - const n = (r = this.transport) === null || r === void 0 ? void 0 : r[t(2235)]; - this._transport[t(2235)] = () => { + this._transport = x; + const n = (r = this.transport) === null || r === void 0 ? void 0 : r[t(660)]; + this._transport[t(660)] = () => { const u = t; - n == null || n(), this[u(2250)](); + n == null || n(), this[u(1893)](); }; - const i = (e = this[t(516)]) === null || e === void 0 ? void 0 : e[t(934)]; - this._transport[t(934)] = (u) => { - i == null || i(u), this._onerror(u); + const i = (e = this.transport) === null || e === void 0 ? void 0 : e[t(2917)]; + this[t(1351)].onerror = (u) => { + const d = t; + i == null || i(u), this[d(1331)](u); }; - const c = (s = this._transport) === null || s === void 0 ? void 0 : s[t(1803)]; - this._transport[t(1803)] = (u, f) => { + const c = (s = this[t(1351)]) === null || s === void 0 ? void 0 : s[t(1903)]; + this[t(1351)][t(1903)] = (u, d) => { const l = t; - c == null || c(u, f), rr(u) || rc(u) ? this._onresponse(u) : tc(u) ? this[l(2525)](u, f) : ac(u) ? this[l(1897)](u) : this[l(1931)](new Error(l(939) + JSON[l(1031)](u))); - }, await this[t(1448)][t(1392)](); + c == null || c(u, d), rr(u) || e2(u) ? this[l(1278)](u) : Xi(u) ? this[l(2102)](u, d) : Yi(u) ? this[l(487)](u) : this[l(1331)](new Error("Unknown message type: " + JSON[l(3038)](u))); + }, await this[t(1351)][t(1171)](); } - [a(2250)]() { + [a(1893)]() { const x = a; var t; - const r = this[x(539)]; - this[x(539)] = /* @__PURE__ */ new Map(), this[x(2086)][x(2376)](), this[x(2135)].clear(), this[x(1448)] = void 0, (t = this[x(2235)]) === null || t === void 0 || t[x(1522)](this); - const e = new q0(v0[x(1247)], x(974)); - for (const s of r[x(3237)]()) + const r = this[x(1610)]; + this[x(1610)] = /* @__PURE__ */ new Map(), this[x(1220)].clear(), this[x(2383)].clear(), this[x(1351)] = void 0, (t = this[x(660)]) === null || t === void 0 || t[x(2689)](this); + const e = new q0(v0[x(2631)], x(983)); + for (const s of r[x(922)]()) s(e); } - [a(1931)](x) { + [a(1331)](x) { const t = a; var r; - (r = this.onerror) === null || r === void 0 || r[t(1522)](this, x); + (r = this[t(2917)]) === null || r === void 0 || r[t(2689)](this, x); } - [a(1897)](x) { + _onnotification(x) { const t = a; var r; - const e = (r = this._notificationHandlers.get(x[t(2423)])) !== null && r !== void 0 ? r : this.fallbackNotificationHandler; - e !== void 0 && Promise[t(2457)]().then(() => e(x))[t(742)]((s) => this[t(1931)](new Error(t(1228) + s))); + const e = (r = this[t(2584)][t(1507)](x[t(1802)])) !== null && r !== void 0 ? r : this.fallbackNotificationHandler; + e !== void 0 && Promise[t(855)]()[t(634)](() => e(x))[t(1045)]((s) => this[t(1331)](new Error(t(2014) + s))); } - [a(2525)](x, t) { + _onrequest(x, t) { const r = a; var e, s, n, i; - const c = (e = this[r(3245)][r(674)](x.method)) !== null && e !== void 0 ? e : this[r(1194)]; + const c = (e = this[r(2144)][r(1507)](x.method)) !== null && e !== void 0 ? e : this[r(663)]; if (c === void 0) { - (s = this[r(1448)]) === null || s === void 0 || s[r(1838)]({ jsonrpc: r(2804), id: x.id, error: { code: v0[r(3120)], message: r(2386) } })[r(742)]((l) => this._onerror(new Error("Failed to send an error response: " + l))); + (s = this._transport) === null || s === void 0 || s.send({ jsonrpc: "2.0", id: x.id, error: { code: v0[r(1352)], message: r(1124) } })[r(1045)]((l) => this._onerror(new Error("Failed to send an error response: " + l))); return; } const u = new AbortController(); - this[r(1831)][r(780)](x.id, u); - const f = { signal: u[r(2111)], sessionId: (n = this[r(1448)]) === null || n === void 0 ? void 0 : n[r(520)], _meta: (i = x.params) === null || i === void 0 ? void 0 : i._meta, sendNotification: (l) => this[r(2487)](l, { relatedRequestId: x.id }), sendRequest: (l, d, g) => this.request(l, d, { ...g, relatedRequestId: x.id }), authInfo: t == null ? void 0 : t[r(849)], requestId: x.id, requestInfo: t == null ? void 0 : t[r(1878)] }; - Promise.resolve()[r(2517)](() => c(x, f))[r(2517)]((l) => { - const d = r; + this[r(587)][r(823)](x.id, u); + const d = { signal: u[r(2364)], sessionId: (n = this._transport) === null || n === void 0 ? void 0 : n[r(1376)], _meta: (i = x[r(434)]) === null || i === void 0 ? void 0 : i[r(914)], sendNotification: (l) => this[r(1455)](l, { relatedRequestId: x.id }), sendRequest: (l, f, g) => this[r(1093)](l, f, { ...g, relatedRequestId: x.id }), authInfo: t == null ? void 0 : t.authInfo, requestId: x.id, requestInfo: t == null ? void 0 : t[r(486)] }; + Promise.resolve()[r(634)](() => c(x, d))[r(634)]((l) => { + const f = r; var g; - if (!u[d(2111)][d(896)]) - return (g = this[d(1448)]) === null || g === void 0 ? void 0 : g.send({ result: l, jsonrpc: d(2804), id: x.id }); + if (!u[f(2364)].aborted) + return (g = this[f(1351)]) === null || g === void 0 ? void 0 : g[f(1865)]({ result: l, jsonrpc: f(598), id: x.id }); }, (l) => { - const d = r; + const f = r; var g, h; - if (!u.signal[d(896)]) - return (g = this[d(1448)]) === null || g === void 0 ? void 0 : g[d(1838)]({ jsonrpc: d(2804), id: x.id, error: { code: Number[d(2928)](l[d(2427)]) ? l[d(2427)] : v0[d(2898)], message: (h = l[d(1044)]) !== null && h !== void 0 ? h : d(1328) } }); - })[r(742)]((l) => this[r(1931)](new Error(r(2108) + l)))[r(1284)](() => { - const l = r; - this[l(1831)][l(875)](x.id); + if (!u[f(2364)].aborted) + return (g = this[f(1351)]) === null || g === void 0 ? void 0 : g.send({ jsonrpc: "2.0", id: x.id, error: { code: Number[f(2086)](l[f(2345)]) ? l[f(2345)] : v0[f(614)], message: (h = l[f(2461)]) !== null && h !== void 0 ? h : f(2206) } }); + })[r(1045)]((l) => this._onerror(new Error("Failed to send response: " + l)))[r(1225)](() => { + this[r(587)].delete(x.id); }); } - _onprogress(x) { - const t = a, { progressToken: r, ...e } = x[t(1656)], s = Number(r), n = this[t(2086)][t(674)](s); + [a(1283)](x) { + const t = a, { progressToken: r, ...e } = x[t(434)], s = Number(r), n = this[t(1220)][t(1507)](s); if (!n) { - this[t(1931)](new Error(t(2793) + JSON[t(1031)](x))); + this._onerror(new Error(t(2263) + JSON.stringify(x))); return; } - const i = this[t(539)][t(674)](s), c = this[t(1533)][t(674)](s); - if (c && i && c[t(2309)]) try { - this[t(3123)](s); + const i = this[t(1610)][t(1507)](s), c = this[t(2831)][t(1507)](s); + if (c && i && c[t(2249)]) try { + this[t(580)](s); } catch (u) { i(u); return; } n(e); } - [a(690)](x) { - const t = a, r = Number(x.id), e = this[t(539)][t(674)](r); + [a(1278)](x) { + const t = a, r = Number(x.id), e = this[t(1610)][t(1507)](r); if (e === void 0) { - this[t(1931)](new Error("Received a response for an unknown message ID: " + JSON[t(1031)](x))); + this[t(1331)](new Error("Received a response for an unknown message ID: " + JSON[t(3038)](x))); return; } - if (this._responseHandlers[t(875)](r), this[t(2086)][t(875)](r), this[t(2684)](r), rr(x)) e(x); + if (this[t(1610)][t(2375)](r), this._progressHandlers[t(2375)](r), this._cleanupTimeout(r), rr(x)) e(x); else { - const s = new q0(x.error[t(2427)], x[t(490)][t(1044)], x[t(490)].data); + const s = new q0(x[t(1491)][t(2345)], x.error.message, x.error[t(1506)]); e(s); } } - get [a(516)]() { - return this[a(1448)]; + get transport() { + return this._transport; } async close() { const x = a; var t; - await ((t = this[x(1448)]) === null || t === void 0 ? void 0 : t.close()); + await ((t = this[x(1351)]) === null || t === void 0 ? void 0 : t.close()); } - [a(494)](x, t, r) { + request(x, t, r) { const { relatedRequestId: e, resumptionToken: s, onresumptiontoken: n } = r ?? {}; return new Promise((i, c) => { - const u = K; - var f, l, d, g, h, m; - if (!this[u(1448)]) { - c(new Error(u(2168))); + const u = Z; + var d, l, f, g, h, m; + if (!this[u(1351)]) { + c(new Error(u(2159))); return; } - ((f = this[u(1648)]) === null || f === void 0 ? void 0 : f[u(1928)]) === !0 && this[u(557)](x[u(2423)]), (l = r == null ? void 0 : r.signal) === null || l === void 0 || l.throwIfAborted(); - const v = this[u(1556)]++, k = { ...x, jsonrpc: u(2804), id: v }; - r != null && r.onprogress && (this[u(2086)].set(v, r[u(816)]), k[u(1656)] = { ...x[u(1656)], _meta: { ...((d = x[u(1656)]) === null || d === void 0 ? void 0 : d._meta) || {}, progressToken: v } }); - const P = (R) => { - const E = u; + ((d = this[u(1156)]) === null || d === void 0 ? void 0 : d.enforceStrictCapabilities) === !0 && this[u(957)](x.method), (l = r == null ? void 0 : r[u(2364)]) === null || l === void 0 || l[u(1377)](); + const v = this[u(2595)]++, k = { ...x, jsonrpc: u(598), id: v }; + r != null && r.onprogress && (this[u(1220)][u(823)](v, r[u(2652)]), k[u(434)] = { ...x[u(434)], _meta: { ...((f = x[u(434)]) === null || f === void 0 ? void 0 : f[u(914)]) || {}, progressToken: v } }); + const I = (R) => { + const P = u; var C; - this[E(539)][E(875)](v), this[E(2086)].delete(v), this[E(2684)](v), (C = this[E(1448)]) === null || C === void 0 || C[E(1838)]({ jsonrpc: E(2804), method: E(1924), params: { requestId: v, reason: String(R) } }, { relatedRequestId: e, resumptionToken: s, onresumptiontoken: n })[E(742)]((A) => this._onerror(new Error(E(988) + A))), c(R); + this[P(1610)][P(2375)](v), this._progressHandlers[P(2375)](v), this._cleanupTimeout(v), (C = this[P(1351)]) === null || C === void 0 || C[P(1865)]({ jsonrpc: P(598), method: P(1273), params: { requestId: v, reason: String(R) } }, { relatedRequestId: e, resumptionToken: s, onresumptiontoken: n }).catch((j) => this[P(1331)](new Error(P(480) + j))), c(R); }; - this[u(539)][u(780)](v, (R) => { - const E = u; + this[u(1610)][u(823)](v, (R) => { + const P = u; var C; - if (!(!((C = r == null ? void 0 : r[E(2111)]) === null || C === void 0) && C[E(896)])) { + if (!(!((C = r == null ? void 0 : r[P(2364)]) === null || C === void 0) && C.aborted)) { if (R instanceof Error) return c(R); try { - const A = t.parse(R[E(676)]); - i(A); - } catch (A) { - c(A); + const j = t[P(1598)](R.result); + i(j); + } catch (j) { + c(j); } } - }), (g = r == null ? void 0 : r[u(2111)]) === null || g === void 0 || g[u(731)](u(1158), () => { + }), (g = r == null ? void 0 : r[u(2364)]) === null || g === void 0 || g[u(2322)]("abort", () => { const R = u; - var E; - P((E = r == null ? void 0 : r[R(2111)]) === null || E === void 0 ? void 0 : E.reason); + var P; + I((P = r == null ? void 0 : r.signal) === null || P === void 0 ? void 0 : P[R(1433)]); }); - const T = (h = r == null ? void 0 : r[u(973)]) !== null && h !== void 0 ? h : x2, q = () => P(new q0(v0.RequestTimeout, "Request timed out", { timeout: T })); - this._setupTimeout(v, T, r == null ? void 0 : r[u(2709)], q, (m = r == null ? void 0 : r[u(2309)]) !== null && m !== void 0 ? m : !1), this._transport[u(1838)](k, { relatedRequestId: e, resumptionToken: s, onresumptiontoken: n })[u(742)]((R) => { + const T = (h = r == null ? void 0 : r[u(2025)]) !== null && h !== void 0 ? h : Q2, q = () => I(new q0(v0.RequestTimeout, u(2791), { timeout: T })); + this[u(1545)](v, T, r == null ? void 0 : r[u(3032)], q, (m = r == null ? void 0 : r[u(2249)]) !== null && m !== void 0 ? m : !1), this[u(1351)][u(1865)](k, { relatedRequestId: e, resumptionToken: s, onresumptiontoken: n })[u(1045)]((R) => { this._cleanupTimeout(v), c(R); }); }); } - async [a(2487)](x, t) { + async notification(x, t) { const r = a; var e, s; - if (!this._transport) throw new Error(r(2168)); - if (this[r(2670)](x[r(2423)]), ((s = (e = this[r(1648)]) === null || e === void 0 ? void 0 : e[r(2184)]) !== null && s !== void 0 ? s : []).includes(x[r(2423)]) && !x.params && !(t != null && t[r(1852)])) { - if (this[r(2135)][r(2348)](x[r(2423)])) return; - this._pendingDebouncedNotifications[r(1580)](x[r(2423)]), Promise[r(2457)]()[r(2517)](() => { + if (!this[r(1351)]) throw new Error("Not connected"); + if (this.assertNotificationCapability(x[r(1802)]), ((s = (e = this[r(1156)]) === null || e === void 0 ? void 0 : e[r(2260)]) !== null && s !== void 0 ? s : [])[r(555)](x[r(1802)]) && !x[r(434)] && !(t != null && t[r(2557)])) { + if (this[r(2383)][r(1281)](x.method)) return; + this._pendingDebouncedNotifications.add(x[r(1802)]), Promise[r(855)]()[r(634)](() => { const u = r; - var f; - if (this[u(2135)][u(875)](x[u(2423)]), !this[u(1448)]) return; - const l = { ...x, jsonrpc: u(2804) }; - (f = this._transport) === null || f === void 0 || f[u(1838)](l, t)[u(742)]((d) => this[u(1931)](d)); + var d; + if (this[u(2383)].delete(x[u(1802)]), !this[u(1351)]) return; + const l = { ...x, jsonrpc: u(598) }; + (d = this._transport) === null || d === void 0 || d[u(1865)](l, t)[u(1045)]((f) => this[u(1331)](f)); }); return; } - const c = { ...x, jsonrpc: r(2804) }; - await this[r(1448)][r(1838)](c, t); + const c = { ...x, jsonrpc: r(598) }; + await this[r(1351)].send(c, t); } - [a(1219)](x, t) { - const r = a, e = x[r(1547)][r(2423)][r(2446)]; - this[r(1465)](e), this._requestHandlers[r(780)](e, (s, n) => { - const i = r; - return Promise[i(2457)](t(x[i(2774)](s), n)); - }); + [a(2623)](x, t) { + const r = a, e = x[r(1190)][r(1802)].value; + this[r(1742)](e), this[r(2144)].set(e, (s, n) => Promise.resolve(t(x.parse(s), n))); } - [a(3092)](x) { + [a(2579)](x) { const t = a; - this._requestHandlers[t(875)](x); + this[t(2144)][t(2375)](x); } - [a(1067)](x) { + [a(420)](x) { const t = a; - if (this[t(3245)][t(2348)](x)) throw new Error(t(2011) + x + t(2916)); + if (this[t(2144)][t(1281)](x)) throw new Error("A request handler for " + x + t(1760)); } - [a(1529)](x, t) { + [a(566)](x, t) { const r = a; - this[r(1445)][r(780)](x[r(1547)][r(2423)][r(2446)], (e) => Promise.resolve(t(x[r(2774)](e)))); + this[r(2584)][r(823)](x.shape[r(1802)].value, (e) => Promise[r(855)](t(x.parse(e)))); } - removeNotificationHandler(x) { + [a(856)](x) { const t = a; - this[t(1445)][t(875)](x); + this._notificationHandlers[t(2375)](x); } } -function a2(o, x) { +function Y2(o, x) { const t = a; - return Object[t(2634)](x)[t(1630)]((r, [e, s]) => (s && typeof s == "object" ? r[e] = r[e] ? { ...r[e], ...s } : s : r[e] = s, r), { ...o }); + return Object.entries(x)[t(2069)]((r, [e, s]) => (s && typeof s == "object" ? r[e] = r[e] ? { ...r[e], ...s } : s : r[e] = s, r), { ...o }); } -var Y0 = { exports: {} }, r2 = Y0.exports, sr; -function s2() { +var X0 = { exports: {} }, ec = X0[a(1229)], sr; +function xc() { const o = a; return sr || (sr = 1, (function(x, t) { (function(r, e) { e(t); - })(r2, function(r) { - const e = K; + })(ec, function(r) { + const e = Z; function s() { - const I = K; - for (var p = arguments[I(2710)], y = Array(p), w = 0; w < p; w++) + const E = Z; + for (var p = arguments[E(1148)], y = Array(p), w = 0; w < p; w++) y[w] = arguments[w]; if (y.length > 1) { - y[0] = y[0][I(1387)](0, -1); - for (var L = y[I(2710)] - 1, $ = 1; $ < L; ++$) - y[$] = y[$][I(1387)](1, -1); - return y[L] = y[L].slice(1), y[I(1592)](""); + y[0] = y[0].slice(0, -1); + for (var M = y.length - 1, $ = 1; $ < M; ++$) + y[$] = y[$][E(1908)](1, -1); + return y[M] = y[M][E(1908)](1), y[E(896)](""); } else return y[0]; } - function n(I) { - return K(1442) + I + ")"; + function n(E) { + return "(?:" + E + ")"; } - function i(I) { - const p = K; - return I === void 0 ? p(993) : I === null ? p(1959) : Object[p(2587)][p(2732)].call(I).split(" ")[p(2900)]()[p(3263)]("]")[p(1263)]().toLowerCase(); + function i(E) { + const p = Z; + return E === void 0 ? p(2781) : E === null ? "null" : Object[p(1706)].toString[p(2689)](E)[p(1958)](" ")[p(2906)]()[p(1958)]("]")[p(1766)]()[p(1119)](); } - function c(I) { - return I[K(3013)](); + function c(E) { + return E[Z(1998)](); } - function u(I) { - const p = K; - return I != null ? I instanceof Array ? I : typeof I[p(2710)] != "number" || I.split || I[p(2115)] || I[p(1522)] ? [I] : Array[p(2587)][p(1387)].call(I) : []; + function u(E) { + const p = Z; + return E != null ? E instanceof Array ? E : typeof E[p(1148)] != "number" || E[p(1958)] || E.setInterval || E[p(2689)] ? [E] : Array[p(1706)].slice[p(2689)](E) : []; } - function f(I, p) { - var y = I; + function d(E, p) { + var y = E; if (p) for (var w in p) y[w] = p[w]; return y; } - function l(I) { - const p = K; - var y = p(1922), w = "[0-9]", L = s(w, "[A-Fa-f]"), $ = n(n(p(2054) + L + "%" + L + L + "%" + L + L) + "|" + n(p(2873) + L + "%" + L + L) + "|" + n("%" + L + L)), ie = p(2598), ue = p(3165), Ee = s(ie, ue), je = I ? p(2460) : "[]", Be = I ? p(899) : "[]", Re = s(y, w, p(1983), je); - n(y + s(y, w, p(1450)) + "*"), n(n($ + "|" + s(Re, ue, p(1917))) + "*"); - var De = n(n(p(2735)) + "|" + n(p(1974) + w) + "|" + n("1" + w + w) + "|" + n(p(1868) + w) + p(2253) + w), We = n(De + "\\." + De + "\\." + De + "\\." + De), ge = n(L + p(1881)), $e = n(n(ge + "\\:" + ge) + "|" + We), Ze = n(n(ge + "\\:") + p(1508) + $e), Ue = n(p(3023) + n(ge + "\\:") + "{5}" + $e), I0 = n(n(ge) + p(2323) + n(ge + "\\:") + p(1690) + $e), i0 = n(n(n(ge + "\\:") + p(3056) + ge) + p(2323) + n(ge + "\\:") + p(1014) + $e), c0 = n(n(n(ge + "\\:") + p(2824) + ge) + p(2323) + n(ge + "\\:") + p(1403) + $e), $0 = n(n(n(ge + "\\:") + p(3205) + ge) + p(2323) + ge + "\\:" + $e), T0 = n(n(n(ge + "\\:") + p(3089) + ge) + "?\\:\\:" + $e), t0 = n(n(n(ge + "\\:") + p(1285) + ge) + "?\\:\\:" + ge), u0 = n(n(n(ge + "\\:") + p(913) + ge) + "?\\:\\:"), f0 = n([Ze, Ue, I0, i0, c0, $0, T0, t0, u0][p(1592)]("|")), g0 = n(n(Re + "|" + $) + "+"); - n(p(2262) + L + "+\\." + s(Re, ue, p(1917)) + "+"), n(n($ + "|" + s(Re, ue)) + "*"); - var l0 = n($ + "|" + s(Re, ue, p(2594))); - return n(n($ + "|" + s(Re, ue, p(482))) + "+"), n(n(l0 + "|" + s("[\\/\\?]", Be)) + "*"), { NOT_SCHEME: new RegExp(s(p(2817), y, w, p(1450)), "g"), NOT_USERINFO: new RegExp(s(p(1982), Re, ue), "g"), NOT_HOST: new RegExp(s(p(3274), Re, ue), "g"), NOT_PATH: new RegExp(s("[^\\%\\/\\:\\@]", Re, ue), "g"), NOT_PATH_NOSCHEME: new RegExp(s(p(764), Re, ue), "g"), NOT_QUERY: new RegExp(s(p(1899), Re, ue, p(1471), Be), "g"), NOT_FRAGMENT: new RegExp(s(p(1899), Re, ue, "[\\:\\@\\/\\?]"), "g"), ESCAPE: new RegExp(s("[^]", Re, ue), "g"), UNRESERVED: new RegExp(Re, "g"), OTHER_CHARS: new RegExp(s(p(1899), Re, Ee), "g"), PCT_ENCODED: new RegExp($, "g"), IPV4ADDRESS: new RegExp("^(" + We + ")$"), IPV6ADDRESS: new RegExp(p(2763) + f0 + ")" + n(n("\\%25|\\%(?!" + L + p(636)) + "(" + g0 + ")") + "?\\]?$") }; + function l(E) { + const p = Z; + var y = p(2544), w = "[0-9]", M = s(w, "[A-Fa-f]"), $ = n(n(p(538) + M + "%" + M + M + "%" + M + M) + "|" + n("%[89A-Fa-f]" + M + "%" + M + M) + "|" + n("%" + M + M)), ne = "[\\:\\/\\?\\#\\[\\]\\@]", de = p(2947), Re = s(ne, de), je = E ? p(2709) : "[]", Be = E ? p(2887) : "[]", Ce = s(y, w, p(1458), je); + n(y + s(y, w, p(651)) + "*"), n(n($ + "|" + s(Ce, de, p(2745))) + "*"); + var De = n(n(p(1374)) + "|" + n(p(1317) + w) + "|" + n("1" + w + w) + "|" + n("0?[1-9]" + w) + p(2174) + w), We = n(De + "\\." + De + "\\." + De + "\\." + De), ge = n(M + p(1855)), $e = n(n(ge + "\\:" + ge) + "|" + We), Ke = n(n(ge + "\\:") + "{6}" + $e), Ue = n(p(1784) + n(ge + "\\:") + p(1241) + $e), I0 = n(n(ge) + p(409) + n(ge + "\\:") + p(1873) + $e), i0 = n(n(n(ge + "\\:") + p(1090) + ge) + p(409) + n(ge + "\\:") + "{3}" + $e), c0 = n(n(n(ge + "\\:") + "{0,2}" + ge) + p(409) + n(ge + "\\:") + "{2}" + $e), M0 = n(n(n(ge + "\\:") + "{0,3}" + ge) + p(409) + ge + "\\:" + $e), N0 = n(n(n(ge + "\\:") + p(593) + ge) + p(409) + $e), t0 = n(n(n(ge + "\\:") + "{0,5}" + ge) + "?\\:\\:" + ge), u0 = n(n(n(ge + "\\:") + p(886) + ge) + p(409)), d0 = n([Ke, Ue, I0, i0, c0, M0, N0, t0, u0][p(896)]("|")), g0 = n(n(Ce + "|" + $) + "+"); + n("[vV]" + M + p(2841) + s(Ce, de, p(2745)) + "+"), n(n($ + "|" + s(Ce, de)) + "*"); + var l0 = n($ + "|" + s(Ce, de, p(1518))); + return n(n($ + "|" + s(Ce, de, "[\\@]")) + "+"), n(n(l0 + "|" + s("[\\/\\?]", Be)) + "*"), { NOT_SCHEME: new RegExp(s("[^]", y, w, p(651)), "g"), NOT_USERINFO: new RegExp(s(p(1995), Ce, de), "g"), NOT_HOST: new RegExp(s(p(652), Ce, de), "g"), NOT_PATH: new RegExp(s(p(2697), Ce, de), "g"), NOT_PATH_NOSCHEME: new RegExp(s(p(857), Ce, de), "g"), NOT_QUERY: new RegExp(s(p(2022), Ce, de, p(2040), Be), "g"), NOT_FRAGMENT: new RegExp(s(p(2022), Ce, de, "[\\:\\@\\/\\?]"), "g"), ESCAPE: new RegExp(s("[^]", Ce, de), "g"), UNRESERVED: new RegExp(Ce, "g"), OTHER_CHARS: new RegExp(s(p(2022), Ce, Re), "g"), PCT_ENCODED: new RegExp($, "g"), IPV4ADDRESS: new RegExp("^(" + We + ")$"), IPV6ADDRESS: new RegExp(p(763) + d0 + ")" + n(n("\\%25|\\%(?!" + M + p(1185)) + "(" + g0 + ")") + p(632)) }; } - var d = l(!1), g = l(!0), h = /* @__PURE__ */ (function() { - function I(p, y) { - const w = K; - var L = [], $ = !0, ie = !1, ue = void 0; + var f = l(!1), g = l(!0), h = /* @__PURE__ */ (function() { + function E(p, y) { + const w = Z; + var M = [], $ = !0, ne = !1, de = void 0; try { - for (var Ee = p[Symbol[w(1356)]](), je; !($ = (je = Ee.next())[w(1463)]) && (L[w(3062)](je.value), !(y && L[w(2710)] === y)); $ = !0) + for (var Re = p[Symbol[w(2588)]](), je; !($ = (je = Re[w(1751)]())[w(2062)]) && (M[w(3019)](je.value), !(y && M[w(1148)] === y)); $ = !0) ; } catch (Be) { - ie = !0, ue = Be; + ne = !0, de = Be; } finally { try { - !$ && Ee.return && Ee[w(1115)](); + !$ && Re[w(324)] && Re[w(324)](); } finally { - if (ie) throw ue; + if (ne) throw de; } } - return L; + return M; } return function(p, y) { - const w = K; - if (Array[w(3255)](p)) return p; - if (Symbol.iterator in Object(p)) return I(p, y); - throw new TypeError(w(718)); + const w = Z; + if (Array[w(500)](p)) return p; + if (Symbol[w(2588)] in Object(p)) return E(p, y); + throw new TypeError(w(657)); }; - })(), m = function(I) { - const p = K; - if (Array.isArray(I)) { - for (var y = 0, w = Array(I[p(2710)]); y < I[p(2710)]; y++) w[y] = I[y]; + })(), m = function(E) { + const p = Z; + if (Array[p(500)](E)) { + for (var y = 0, w = Array(E[p(1148)]); y < E[p(1148)]; y++) w[y] = E[y]; return w; - } else return Array[p(2047)](I); - }, v = 2147483647, k = 36, P = 1, T = 26, q = 38, R = 700, E = 72, C = 128, A = "-", O = /^xn--/, M = /[^\0-\x7E]/, _ = /[\x2E\u3002\uFF0E\uFF61]/g, N = { overflow: e(1013), "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": e(2380) }, z = k - P, U = Math[e(2156)], H = String.fromCharCode; - function G(I) { - throw new RangeError(N[I]); + } else return Array[p(1546)](E); + }, v = 2147483647, k = 36, I = 1, T = 26, q = 38, R = 700, P = 72, C = 128, j = "-", D = /^xn--/, O = /[^\0-\x7E]/, N = /[\x2E\u3002\uFF0E\uFF61]/g, _ = { overflow: e(1730), "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": e(1227) }, z = k - I, U = Math.floor, H = String.fromCharCode; + function G(E) { + throw new RangeError(_[E]); } - function re(I, p) { + function ie(E, p) { const y = e; - for (var w = [], L = I[y(2710)]; L--; ) - w[L] = p(I[L]); + for (var w = [], M = E[y(1148)]; M--; ) + w[M] = p(E[M]); return w; } - function se(I, p) { + function ue(E, p) { const y = e; - var w = I[y(3263)]("@"), L = ""; - w[y(2710)] > 1 && (L = w[0] + "@", I = w[1]), I = I.replace(_, "."); - var $ = I[y(3263)]("."), ie = re($, p)[y(1592)]("."); - return L + ie; + var w = E[y(1958)]("@"), M = ""; + w[y(1148)] > 1 && (M = w[0] + "@", E = w[1]), E = E[y(1252)](N, "."); + var $ = E.split("."), ne = ie($, p).join("."); + return M + ne; } - function fe(I) { + function le(E) { const p = e; - for (var y = [], w = 0, L = I[p(2710)]; w < L; ) { - var $ = I.charCodeAt(w++); - if ($ >= 55296 && $ <= 56319 && w < L) { - var ie = I.charCodeAt(w++); - (ie & 64512) == 56320 ? y[p(3062)]((($ & 1023) << 10) + (ie & 1023) + 65536) : (y[p(3062)]($), w--); - } else y[p(3062)]($); + for (var y = [], w = 0, M = E[p(1148)]; w < M; ) { + var $ = E[p(2307)](w++); + if ($ >= 55296 && $ <= 56319 && w < M) { + var ne = E.charCodeAt(w++); + (ne & 64512) == 56320 ? y[p(3019)]((($ & 1023) << 10) + (ne & 1023) + 65536) : (y[p(3019)]($), w--); + } else y[p(3019)]($); } return y; } - var de = function(p) { - const y = e; - return String[y(3246)][y(2692)](String, m(p)); - }, le = function(p) { + var oe = function(p) { + return String[e(2822)].apply(String, m(p)); + }, fe = function(p) { return p - 48 < 10 ? p - 22 : p - 65 < 26 ? p - 65 : p - 97 < 26 ? p - 97 : k; - }, Se = function(p, y) { + }, Pe = function(p, y) { return p + 22 + 75 * (p < 26) - ((y != 0) << 5); - }, _e = function(p, y, w) { - var L = 0; - for (p = w ? U(p / R) : p >> 1, p += U(p / y); p > z * T >> 1; L += k) + }, ye = function(p, y, w) { + var M = 0; + for (p = w ? U(p / R) : p >> 1, p += U(p / y); p > z * T >> 1; M += k) p = U(p / z); - return U(L + (z + 1) * p / (p + q)); - }, Me = function(p) { + return U(M + (z + 1) * p / (p + q)); + }, Le = function(p) { const y = e; - var w = [], L = p[y(2710)], $ = 0, ie = C, ue = E, Ee = p[y(2347)](A); - Ee < 0 && (Ee = 0); - for (var je = 0; je < Ee; ++je) - p[y(901)](je) >= 128 && G(y(3012)), w[y(3062)](p[y(901)](je)); - for (var Be = Ee > 0 ? Ee + 1 : 0; Be < L; ) { - for (var Re = $, De = 1, We = k; ; We += k) { - Be >= L && G(y(2266)); - var ge = le(p[y(901)](Be++)); - (ge >= k || ge > U((v - $) / De)) && G(y(512)), $ += ge * De; - var $e = We <= ue ? P : We >= ue + T ? T : We - ue; + var w = [], M = p[y(1148)], $ = 0, ne = C, de = P, Re = p[y(3007)](j); + Re < 0 && (Re = 0); + for (var je = 0; je < Re; ++je) + p[y(2307)](je) >= 128 && G(y(1946)), w[y(3019)](p.charCodeAt(je)); + for (var Be = Re > 0 ? Re + 1 : 0; Be < M; ) { + for (var Ce = $, De = 1, We = k; ; We += k) { + Be >= M && G(y(3021)); + var ge = fe(p[y(2307)](Be++)); + (ge >= k || ge > U((v - $) / De)) && G(y(2747)), $ += ge * De; + var $e = We <= de ? I : We >= de + T ? T : We - de; if (ge < $e) break; - var Ze = k - $e; - De > U(v / Ze) && G(y(512)), De *= Ze; + var Ke = k - $e; + De > U(v / Ke) && G("overflow"), De *= Ke; } - var Ue = w[y(2710)] + 1; - ue = _e($ - Re, Ue, Re == 0), U($ / Ue) > v - ie && G(y(512)), ie += U($ / Ue), $ %= Ue, w[y(2881)]($++, 0, ie); + var Ue = w[y(1148)] + 1; + de = ye($ - Ce, Ue, Ce == 0), U($ / Ue) > v - ne && G("overflow"), ne += U($ / Ue), $ %= Ue, w[y(2176)]($++, 0, ne); } - return String.fromCodePoint.apply(String, w); - }, Fe = function(p) { + return String[y(2822)].apply(String, w); + }, _e = function(p) { const y = e; var w = []; - p = fe(p); - var L = p.length, $ = C, ie = 0, ue = E, Ee = !0, je = !1, Be = void 0; + p = le(p); + var M = p.length, $ = C, ne = 0, de = P, Re = !0, je = !1, Be = void 0; try { - for (var Re = p[Symbol[y(1356)]](), De; !(Ee = (De = Re.next())[y(1463)]); Ee = !0) { - var We = De[y(2446)]; - We < 128 && w[y(3062)](H(We)); + for (var Ce = p[Symbol.iterator](), De; !(Re = (De = Ce[y(1751)]()).done); Re = !0) { + var We = De[y(935)]; + We < 128 && w[y(3019)](H(We)); } - } catch (G0) { - je = !0, Be = G0; + } catch (Z0) { + je = !0, Be = Z0; } finally { try { - !Ee && Re[y(1115)] && Re[y(1115)](); + !Re && Ce[y(324)] && Ce[y(324)](); } finally { if (je) throw Be; } } - var ge = w.length, $e = ge; - for (ge && w.push(A); $e < L; ) { - var Ze = v, Ue = !0, I0 = !1, i0 = void 0; + var ge = w[y(1148)], $e = ge; + for (ge && w[y(3019)](j); $e < M; ) { + var Ke = v, Ue = !0, I0 = !1, i0 = void 0; try { - for (var c0 = p[Symbol[y(1356)]](), $0; !(Ue = ($0 = c0.next()).done); Ue = !0) { - var T0 = $0[y(2446)]; - T0 >= $ && T0 < Ze && (Ze = T0); + for (var c0 = p[Symbol[y(2588)]](), M0; !(Ue = (M0 = c0[y(1751)]())[y(2062)]); Ue = !0) { + var N0 = M0.value; + N0 >= $ && N0 < Ke && (Ke = N0); } - } catch (G0) { - I0 = !0, i0 = G0; + } catch (Z0) { + I0 = !0, i0 = Z0; } finally { try { - !Ue && c0.return && c0[y(1115)](); + !Ue && c0[y(324)] && c0.return(); } finally { if (I0) throw i0; } } var t0 = $e + 1; - Ze - $ > U((v - ie) / t0) && G(y(512)), ie += (Ze - $) * t0, $ = Ze; - var u0 = !0, f0 = !1, g0 = void 0; + Ke - $ > U((v - ne) / t0) && G(y(2747)), ne += (Ke - $) * t0, $ = Ke; + var u0 = !0, d0 = !1, g0 = void 0; try { - for (var l0 = p[Symbol[y(1356)]](), Pa; !(u0 = (Pa = l0[y(2507)]())[y(1463)]); u0 = !0) { - var Ia = Pa[y(2446)]; - if (Ia < $ && ++ie > v && G("overflow"), Ia == $) { - for (var fx = ie, lx = k; ; lx += k) { - var dx = lx <= ue ? P : lx >= ue + T ? T : lx - ue; - if (fx < dx) break; - var Ea = fx - dx, Ra = k - dx; - w.push(H(Se(dx + Ea % Ra, 0))), fx = U(Ea / Ra); + for (var l0 = p[Symbol.iterator](), Pa; !(u0 = (Pa = l0[y(1751)]()).done); u0 = !0) { + var Ia = Pa.value; + if (Ia < $ && ++ne > v && G("overflow"), Ia == $) { + for (var dx = ne, lx = k; ; lx += k) { + var fx = lx <= de ? I : lx >= de + T ? T : lx - de; + if (dx < fx) break; + var Ea = dx - fx, Ra = k - fx; + w[y(3019)](H(Pe(fx + Ea % Ra, 0))), dx = U(Ea / Ra); } - w.push(H(Se(fx, 0))), ue = _e(ie, t0, $e == ge), ie = 0, ++$e; + w[y(3019)](H(Pe(dx, 0))), de = ye(ne, t0, $e == ge), ne = 0, ++$e; } } - } catch (G0) { - f0 = !0, g0 = G0; + } catch (Z0) { + d0 = !0, g0 = Z0; } finally { try { - !u0 && l0.return && l0[y(1115)](); + !u0 && l0[y(324)] && l0[y(324)](); } finally { - if (f0) throw g0; + if (d0) throw g0; } } - ++ie, ++$; + ++ne, ++$; } - return w[y(1592)](""); + return w[y(896)](""); }, Je = function(p) { - return se(p, function(y) { - const w = K; - return O[w(2346)](y) ? Me(y[w(1387)](4)[w(1945)]()) : y; + return ue(p, function(y) { + const w = Z; + return D[w(1531)](y) ? Le(y[w(1908)](4)[w(1119)]()) : y; }); - }, D = function(p) { - return se(p, function(y) { - const w = K; - return M.test(y) ? w(1054) + Fe(y) : y; + }, A = function(p) { + return ue(p, function(y) { + return O.test(y) ? "xn--" + _e(y) : y; }); - }, F = { version: e(503), ucs2: { decode: fe, encode: de }, decode: Me, encode: Fe, toASCII: D, toUnicode: Je }, j = {}; - function J(I) { + }, F = { version: e(1590), ucs2: { decode: le, encode: oe }, decode: Le, encode: _e, toASCII: A, toUnicode: Je }, L = {}; + function J(E) { const p = e; - var y = I.charCodeAt(0), w = void 0; - return y < 16 ? w = "%0" + y[p(2732)](16)[p(3013)]() : y < 128 ? w = "%" + y.toString(16).toUpperCase() : y < 2048 ? w = "%" + (y >> 6 | 192)[p(2732)](16)[p(3013)]() + "%" + (y & 63 | 128).toString(16).toUpperCase() : w = "%" + (y >> 12 | 224)[p(2732)](16).toUpperCase() + "%" + (y >> 6 & 63 | 128)[p(2732)](16)[p(3013)]() + "%" + (y & 63 | 128)[p(2732)](16)[p(3013)](), w; + var y = E[p(2307)](0), w = void 0; + return y < 16 ? w = "%0" + y[p(511)](16)[p(1998)]() : y < 128 ? w = "%" + y[p(511)](16)[p(1998)]() : y < 2048 ? w = "%" + (y >> 6 | 192)[p(511)](16).toUpperCase() + "%" + (y & 63 | 128)[p(511)](16)[p(1998)]() : w = "%" + (y >> 12 | 224).toString(16)[p(1998)]() + "%" + (y >> 6 & 63 | 128).toString(16)[p(1998)]() + "%" + (y & 63 | 128)[p(511)](16).toUpperCase(), w; } - function X(I) { + function ee(E) { const p = e; - for (var y = "", w = 0, L = I[p(2710)]; w < L; ) { - var $ = parseInt(I[p(1693)](w + 1, 2), 16); - if ($ < 128) y += String[p(1660)]($), w += 3; + for (var y = "", w = 0, M = E[p(1148)]; w < M; ) { + var $ = parseInt(E.substr(w + 1, 2), 16); + if ($ < 128) y += String[p(2865)]($), w += 3; else if ($ >= 194 && $ < 224) { - if (L - w >= 6) { - var ie = parseInt(I.substr(w + 4, 2), 16); - y += String.fromCharCode(($ & 31) << 6 | ie & 63); - } else y += I[p(1693)](w, 6); + if (M - w >= 6) { + var ne = parseInt(E[p(2612)](w + 4, 2), 16); + y += String[p(2865)](($ & 31) << 6 | ne & 63); + } else y += E[p(2612)](w, 6); w += 6; } else if ($ >= 224) { - if (L - w >= 9) { - var ue = parseInt(I[p(1693)](w + 4, 2), 16), Ee = parseInt(I[p(1693)](w + 7, 2), 16); - y += String.fromCharCode(($ & 15) << 12 | (ue & 63) << 6 | Ee & 63); - } else y += I[p(1693)](w, 9); + if (M - w >= 9) { + var de = parseInt(E[p(2612)](w + 4, 2), 16), Re = parseInt(E.substr(w + 7, 2), 16); + y += String.fromCharCode(($ & 15) << 12 | (de & 63) << 6 | Re & 63); + } else y += E[p(2612)](w, 9); w += 9; - } else y += I.substr(w, 3), w += 3; + } else y += E[p(2612)](w, 3), w += 3; } return y; } - function V(I, p) { + function V(E, p) { const y = e; - function w(L) { - const $ = K; - var ie = X(L); - return ie.match(p[$(1753)]) ? ie : L; + function w(M) { + const $ = Z; + var ne = ee(M); + return ne[$(789)](p.UNRESERVED) ? ne : M; } - return I[y(2974)] && (I[y(2974)] = String(I[y(2974)])[y(1521)](p[y(2543)], w)[y(1945)]()[y(1521)](p[y(3111)], "")), I[y(483)] !== void 0 && (I[y(483)] = String(I[y(483)])[y(1521)](p[y(2543)], w).replace(p[y(2632)], J)[y(1521)](p.PCT_ENCODED, c)), I[y(746)] !== void 0 && (I.host = String(I[y(746)])[y(1521)](p[y(2543)], w)[y(1945)]()[y(1521)](p[y(1994)], J)[y(1521)](p[y(2543)], c)), I[y(2474)] !== void 0 && (I[y(2474)] = String(I.path).replace(p[y(2543)], w).replace(I[y(2974)] ? p.NOT_PATH : p[y(694)], J)[y(1521)](p[y(2543)], c)), I[y(1267)] !== void 0 && (I.query = String(I.query)[y(1521)](p[y(2543)], w)[y(1521)](p[y(2840)], J)[y(1521)](p[y(2543)], c)), I[y(2970)] !== void 0 && (I.fragment = String(I[y(2970)]).replace(p[y(2543)], w).replace(p[y(1679)], J)[y(1521)](p[y(2543)], c)), I; + return E[y(2737)] && (E[y(2737)] = String(E[y(2737)])[y(1252)](p.PCT_ENCODED, w)[y(1119)]().replace(p[y(873)], "")), E[y(545)] !== void 0 && (E[y(545)] = String(E[y(545)]).replace(p[y(1401)], w)[y(1252)](p.NOT_USERINFO, J)[y(1252)](p[y(1401)], c)), E[y(779)] !== void 0 && (E[y(779)] = String(E[y(779)])[y(1252)](p[y(1401)], w)[y(1119)]().replace(p[y(1902)], J)[y(1252)](p.PCT_ENCODED, c)), E[y(648)] !== void 0 && (E[y(648)] = String(E[y(648)]).replace(p[y(1401)], w)[y(1252)](E[y(2737)] ? p[y(498)] : p.NOT_PATH_NOSCHEME, J).replace(p.PCT_ENCODED, c)), E[y(1717)] !== void 0 && (E[y(1717)] = String(E.query).replace(p[y(1401)], w)[y(1252)](p.NOT_QUERY, J)[y(1252)](p[y(1401)], c)), E[y(2876)] !== void 0 && (E[y(2876)] = String(E.fragment)[y(1252)](p[y(1401)], w)[y(1252)](p[y(807)], J).replace(p[y(1401)], c)), E; } - function Y(I) { - return I[e(1521)](/^0*(.*)/, "$1") || "0"; + function X(E) { + return E[e(1252)](/^0*(.*)/, "$1") || "0"; } - function ce(I, p) { + function ce(E, p) { const y = e; - var w = I.match(p[y(1559)]) || [], L = h(w, 2), $ = L[1]; - return $ ? $[y(3263)](".")[y(1930)](Y)[y(1592)](".") : I; + var w = E[y(789)](p[y(2821)]) || [], M = h(w, 2), $ = M[1]; + return $ ? $[y(1958)](".")[y(2739)](X)[y(896)](".") : E; } - function oe(I, p) { + function se(E, p) { const y = e; - var w = I.match(p[y(735)]) || [], L = h(w, 3), $ = L[1], ie = L[2]; + var w = E[y(789)](p.IPV6ADDRESS) || [], M = h(w, 3), $ = M[1], ne = M[2]; if ($) { - for (var ue = $.toLowerCase()[y(3263)]("::")[y(2462)](), Ee = h(ue, 2), je = Ee[0], Be = Ee[1], Re = Be ? Be[y(3263)](":")[y(1930)](Y) : [], De = je.split(":")[y(1930)](Y), We = p[y(1559)][y(2346)](De[De[y(2710)] - 1]), ge = We ? 7 : 8, $e = De[y(2710)] - ge, Ze = Array(ge), Ue = 0; Ue < ge; ++Ue) - Ze[Ue] = Re[Ue] || De[$e + Ue] || ""; - We && (Ze[ge - 1] = ce(Ze[ge - 1], p)); - var I0 = Ze[y(1630)](function(t0, u0, f0) { + for (var de = $[y(1119)]()[y(1958)]("::")[y(2315)](), Re = h(de, 2), je = Re[0], Be = Re[1], Ce = Be ? Be[y(1958)](":").map(X) : [], De = je[y(1958)](":")[y(2739)](X), We = p[y(2821)][y(1531)](De[De[y(1148)] - 1]), ge = We ? 7 : 8, $e = De[y(1148)] - ge, Ke = Array(ge), Ue = 0; Ue < ge; ++Ue) + Ke[Ue] = Ce[Ue] || De[$e + Ue] || ""; + We && (Ke[ge - 1] = ce(Ke[ge - 1], p)); + var I0 = Ke[y(2069)](function(t0, u0, d0) { const g0 = y; if (!u0 || u0 === "0") { - var l0 = t0[t0[g0(2710)] - 1]; - l0 && l0[g0(2230)] + l0[g0(2710)] === f0 ? l0.length++ : t0[g0(3062)]({ index: f0, length: 1 }); + var l0 = t0[t0[g0(1148)] - 1]; + l0 && l0[g0(2688)] + l0[g0(1148)] === d0 ? l0.length++ : t0[g0(3019)]({ index: d0, length: 1 }); } return t0; - }, []), i0 = I0[y(841)](function(t0, u0) { - const f0 = y; - return u0[f0(2710)] - t0[f0(2710)]; + }, []), i0 = I0.sort(function(t0, u0) { + const d0 = y; + return u0[d0(1148)] - t0[d0(1148)]; })[0], c0 = void 0; - if (i0 && i0[y(2710)] > 1) { - var $0 = Ze.slice(0, i0.index), T0 = Ze[y(1387)](i0[y(2230)] + i0[y(2710)]); - c0 = $0[y(1592)](":") + "::" + T0[y(1592)](":"); - } else c0 = Ze[y(1592)](":"); - return ie && (c0 += "%" + ie), c0; - } else return I; + if (i0 && i0[y(1148)] > 1) { + var M0 = Ke[y(1908)](0, i0[y(2688)]), N0 = Ke[y(1908)](i0[y(2688)] + i0[y(1148)]); + c0 = M0.join(":") + "::" + N0.join(":"); + } else c0 = Ke.join(":"); + return ne && (c0 += "%" + ne), c0; + } else return E; } - var te = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i, Le = ""[e(2314)](/(){0}/)[1] === void 0; - function Ae(I) { + var te = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i, Me = ""[e(789)](/(){0}/)[1] === void 0; + function Ae(E) { const p = e; - var y = arguments[p(2710)] > 1 && arguments[1] !== void 0 ? arguments[1] : {}, w = {}, L = y[p(549)] !== !1 ? g : d; - y[p(1562)] === p(744) && (I = (y[p(2974)] ? y[p(2974)] + ":" : "") + "//" + I); - var $ = I.match(te); + var y = arguments[p(1148)] > 1 && arguments[1] !== void 0 ? arguments[1] : {}, w = {}, M = y.iri !== !1 ? g : f; + y[p(455)] === p(1176) && (E = (y.scheme ? y[p(2737)] + ":" : "") + "//" + E); + var $ = E[p(789)](te); if ($) { - Le ? (w[p(2974)] = $[1], w[p(483)] = $[3], w.host = $[4], w[p(2703)] = parseInt($[5], 10), w[p(2474)] = $[6] || "", w[p(1267)] = $[7], w[p(2970)] = $[8], isNaN(w.port) && (w.port = $[5])) : (w[p(2974)] = $[1] || void 0, w[p(483)] = I.indexOf("@") !== -1 ? $[3] : void 0, w[p(746)] = I[p(2436)]("//") !== -1 ? $[4] : void 0, w[p(2703)] = parseInt($[5], 10), w[p(2474)] = $[6] || "", w[p(1267)] = I[p(2436)]("?") !== -1 ? $[7] : void 0, w[p(2970)] = I[p(2436)]("#") !== -1 ? $[8] : void 0, isNaN(w[p(2703)]) && (w.port = I[p(2314)](/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? $[4] : void 0)), w[p(746)] && (w[p(746)] = oe(ce(w.host, L), L)), w.scheme === void 0 && w[p(483)] === void 0 && w[p(746)] === void 0 && w[p(2703)] === void 0 && !w.path && w[p(1267)] === void 0 ? w[p(1562)] = p(2618) : w[p(2974)] === void 0 ? w[p(1562)] = "relative" : w[p(2970)] === void 0 ? w.reference = p(1028) : w[p(1562)] = p(776), y[p(1562)] && y[p(1562)] !== "suffix" && y[p(1562)] !== w.reference && (w[p(490)] = w[p(490)] || p(633) + y.reference + p(1405)); - var ie = j[(y.scheme || w.scheme || "")[p(1945)]()]; - if (!y[p(2128)] && (!ie || !ie.unicodeSupport)) { - if (w[p(746)] && (y[p(684)] || ie && ie[p(684)])) try { - w[p(746)] = F.toASCII(w.host.replace(L[p(2543)], X)[p(1945)]()); - } catch (ue) { - w.error = w[p(490)] || p(573) + ue; + Me ? (w.scheme = $[1], w[p(545)] = $[3], w[p(779)] = $[4], w[p(991)] = parseInt($[5], 10), w.path = $[6] || "", w[p(1717)] = $[7], w[p(2876)] = $[8], isNaN(w.port) && (w[p(991)] = $[5])) : (w[p(2737)] = $[1] || void 0, w.userinfo = E[p(2273)]("@") !== -1 ? $[3] : void 0, w.host = E[p(2273)]("//") !== -1 ? $[4] : void 0, w[p(991)] = parseInt($[5], 10), w[p(648)] = $[6] || "", w[p(1717)] = E[p(2273)]("?") !== -1 ? $[7] : void 0, w[p(2876)] = E[p(2273)]("#") !== -1 ? $[8] : void 0, isNaN(w[p(991)]) && (w[p(991)] = E.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? $[4] : void 0)), w[p(779)] && (w[p(779)] = se(ce(w.host, M), M)), w[p(2737)] === void 0 && w[p(545)] === void 0 && w[p(779)] === void 0 && w[p(991)] === void 0 && !w[p(648)] && w.query === void 0 ? w[p(455)] = p(860) : w[p(2737)] === void 0 ? w.reference = p(471) : w[p(2876)] === void 0 ? w[p(455)] = p(264) : w[p(455)] = p(1542), y[p(455)] && y[p(455)] !== p(1176) && y.reference !== w[p(455)] && (w.error = w[p(1491)] || p(937) + y[p(455)] + p(1500)); + var ne = L[(y.scheme || w[p(2737)] || "").toLowerCase()]; + if (!y.unicodeSupport && (!ne || !ne.unicodeSupport)) { + if (w[p(779)] && (y[p(1272)] || ne && ne[p(1272)])) try { + w[p(779)] = F[p(1648)](w[p(779)][p(1252)](M.PCT_ENCODED, ee)[p(1119)]()); + } catch (de) { + w[p(1491)] = w.error || p(318) + de; } - V(w, d); - } else V(w, L); - ie && ie[p(2774)] && ie[p(2774)](w, y); - } else w[p(490)] = w[p(490)] || p(1628); + V(w, f); + } else V(w, M); + ne && ne[p(1598)] && ne[p(1598)](w, y); + } else w[p(1491)] = w.error || p(934); return w; } - function ze(I, p) { + function ze(E, p) { const y = e; - var w = p[y(549)] !== !1 ? g : d, L = []; - return I[y(483)] !== void 0 && (L[y(3062)](I[y(483)]), L.push("@")), I[y(746)] !== void 0 && L[y(3062)](oe(ce(String(I.host), w), w)[y(1521)](w.IPV6ADDRESS, function($, ie, ue) { - const Ee = y; - return "[" + ie + (ue ? Ee(1299) + ue : "") + "]"; - })), (typeof I.port === y(2665) || typeof I[y(2703)] === y(1361)) && (L[y(3062)](":"), L.push(String(I[y(2703)]))), L[y(2710)] ? L.join("") : void 0; + var w = p[y(2953)] !== !1 ? g : f, M = []; + return E[y(545)] !== void 0 && (M[y(3019)](E[y(545)]), M[y(3019)]("@")), E[y(779)] !== void 0 && M.push(se(ce(String(E[y(779)]), w), w).replace(w.IPV6ADDRESS, function($, ne, de) { + const Re = y; + return "[" + ne + (de ? Re(2521) + de : "") + "]"; + })), (typeof E[y(991)] == "number" || typeof E[y(991)] == "string") && (M[y(3019)](":"), M.push(String(E[y(991)]))), M[y(1148)] ? M[y(896)]("") : void 0; } var ke = /^\.\.?\//, Ge = /^\/\.(\/|$)/, n0 = /^\/\.\.(\/|$)/, Qe = /^\/?(?:.|\n)*?(?=\/|$)/; - function Oe(I) { + function Oe(E) { const p = e; - for (var y = []; I[p(2710)]; ) - if (I[p(2314)](ke)) I = I.replace(ke, ""); - else if (I[p(2314)](Ge)) I = I[p(1521)](Ge, "/"); - else if (I[p(2314)](n0)) I = I.replace(n0, "/"), y.pop(); - else if (I === "." || I === "..") I = ""; + for (var y = []; E[p(1148)]; ) + if (E[p(789)](ke)) E = E[p(1252)](ke, ""); + else if (E[p(789)](Ge)) E = E[p(1252)](Ge, "/"); + else if (E[p(789)](n0)) E = E.replace(n0, "/"), y[p(2906)](); + else if (E === "." || E === "..") E = ""; else { - var w = I.match(Qe); + var w = E.match(Qe); if (w) { - var L = w[0]; - I = I.slice(L.length), y.push(L); - } else throw new Error("Unexpected dot segment condition"); + var M = w[0]; + E = E.slice(M.length), y[p(3019)](M); + } else throw new Error(p(821)); } - return y[p(1592)](""); + return y[p(896)](""); } - function He(I) { + function He(E) { const p = e; - var y = arguments[p(2710)] > 1 && arguments[1] !== void 0 ? arguments[1] : {}, w = y[p(549)] ? g : d, L = [], $ = j[(y.scheme || I.scheme || "").toLowerCase()]; - if ($ && $[p(3043)] && $[p(3043)](I, y), I.host && !w.IPV6ADDRESS[p(2346)](I.host)) { - if (y[p(684)] || $ && $[p(684)]) try { - I[p(746)] = y.iri ? F[p(1043)](I.host) : F.toASCII(I[p(746)][p(1521)](w[p(2543)], X)[p(1945)]()); - } catch (Ee) { - I[p(490)] = I[p(490)] || "Host's domain name can not be converted to " + (y.iri ? p(2424) : p(513)) + p(1622) + Ee; + var y = arguments[p(1148)] > 1 && arguments[1] !== void 0 ? arguments[1] : {}, w = y.iri ? g : f, M = [], $ = L[(y[p(2737)] || E[p(2737)] || "")[p(1119)]()]; + if ($ && $[p(1803)] && $.serialize(E, y), E[p(779)] && !w[p(2773)][p(1531)](E[p(779)])) { + if (y[p(1272)] || $ && $[p(1272)]) try { + E[p(779)] = y[p(2953)] ? F[p(2905)](E[p(779)]) : F[p(1648)](E[p(779)][p(1252)](w[p(1401)], ee)[p(1119)]()); + } catch (Re) { + E[p(1491)] = E[p(1491)] || "Host's domain name can not be converted to " + (y[p(2953)] ? p(1387) : "ASCII") + " via punycode: " + Re; } } - V(I, w), y[p(1562)] !== "suffix" && I.scheme && (L[p(3062)](I[p(2974)]), L[p(3062)](":")); - var ie = ze(I, y); - if (ie !== void 0 && (y[p(1562)] !== p(744) && L.push("//"), L.push(ie), I.path && I[p(2474)][p(2718)](0) !== "/" && L[p(3062)]("/")), I[p(2474)] !== void 0) { - var ue = I[p(2474)]; - !y[p(1668)] && (!$ || !$[p(1668)]) && (ue = Oe(ue)), ie === void 0 && (ue = ue[p(1521)](/^\/\//, p(2219))), L[p(3062)](ue); + V(E, w), y[p(455)] !== p(1176) && E[p(2737)] && (M[p(3019)](E[p(2737)]), M[p(3019)](":")); + var ne = ze(E, y); + if (ne !== void 0 && (y[p(455)] !== p(1176) && M[p(3019)]("//"), M[p(3019)](ne), E[p(648)] && E.path[p(1346)](0) !== "/" && M[p(3019)]("/")), E.path !== void 0) { + var de = E[p(648)]; + !y[p(2771)] && (!$ || !$.absolutePath) && (de = Oe(de)), ne === void 0 && (de = de[p(1252)](/^\/\//, p(2320))), M[p(3019)](de); } - return I[p(1267)] !== void 0 && (L[p(3062)]("?"), L[p(3062)](I[p(1267)])), I.fragment !== void 0 && (L[p(3062)]("#"), L[p(3062)](I[p(2970)])), L[p(1592)](""); + return E[p(1717)] !== void 0 && (M[p(3019)]("?"), M[p(3019)](E[p(1717)])), E[p(2876)] !== void 0 && (M.push("#"), M[p(3019)](E.fragment)), M.join(""); } - function Ye(I, p) { + function Ye(E, p) { const y = e; - var w = arguments[y(2710)] > 2 && arguments[2] !== void 0 ? arguments[2] : {}, L = arguments[3], $ = {}; - return !L && (I = Ae(He(I, w), w), p = Ae(He(p, w), w)), w = w || {}, !w.tolerant && p[y(2974)] ? ($[y(2974)] = p.scheme, $.userinfo = p.userinfo, $.host = p.host, $[y(2703)] = p[y(2703)], $[y(2474)] = Oe(p.path || ""), $.query = p[y(1267)]) : (p[y(483)] !== void 0 || p.host !== void 0 || p[y(2703)] !== void 0 ? ($[y(483)] = p[y(483)], $[y(746)] = p[y(746)], $.port = p.port, $[y(2474)] = Oe(p[y(2474)] || ""), $[y(1267)] = p[y(1267)]) : (p[y(2474)] ? (p[y(2474)][y(2718)](0) === "/" ? $[y(2474)] = Oe(p[y(2474)]) : ((I[y(483)] !== void 0 || I[y(746)] !== void 0 || I.port !== void 0) && !I[y(2474)] ? $[y(2474)] = "/" + p[y(2474)] : I[y(2474)] ? $.path = I.path[y(1387)](0, I[y(2474)][y(2347)]("/") + 1) + p[y(2474)] : $[y(2474)] = p[y(2474)], $[y(2474)] = Oe($.path)), $[y(1267)] = p[y(1267)]) : ($[y(2474)] = I[y(2474)], p[y(1267)] !== void 0 ? $[y(1267)] = p[y(1267)] : $[y(1267)] = I.query), $[y(483)] = I[y(483)], $[y(746)] = I[y(746)], $.port = I[y(2703)]), $[y(2974)] = I[y(2974)]), $[y(2970)] = p.fragment, $; + var w = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, M = arguments[3], $ = {}; + return !M && (E = Ae(He(E, w), w), p = Ae(He(p, w), w)), w = w || {}, !w[y(768)] && p[y(2737)] ? ($[y(2737)] = p[y(2737)], $[y(545)] = p[y(545)], $[y(779)] = p.host, $[y(991)] = p[y(991)], $.path = Oe(p[y(648)] || ""), $[y(1717)] = p[y(1717)]) : (p.userinfo !== void 0 || p[y(779)] !== void 0 || p.port !== void 0 ? ($.userinfo = p[y(545)], $[y(779)] = p[y(779)], $[y(991)] = p[y(991)], $[y(648)] = Oe(p[y(648)] || ""), $[y(1717)] = p.query) : (p.path ? (p.path[y(1346)](0) === "/" ? $[y(648)] = Oe(p[y(648)]) : ((E[y(545)] !== void 0 || E[y(779)] !== void 0 || E[y(991)] !== void 0) && !E[y(648)] ? $.path = "/" + p[y(648)] : E[y(648)] ? $[y(648)] = E[y(648)][y(1908)](0, E[y(648)][y(3007)]("/") + 1) + p[y(648)] : $[y(648)] = p[y(648)], $[y(648)] = Oe($.path)), $[y(1717)] = p[y(1717)]) : ($.path = E[y(648)], p.query !== void 0 ? $[y(1717)] = p[y(1717)] : $[y(1717)] = E[y(1717)]), $[y(545)] = E[y(545)], $[y(779)] = E[y(779)], $.port = E[y(991)]), $[y(2737)] = E[y(2737)]), $.fragment = p[y(2876)], $; } - function M0(I, p, y) { - var L = f({ scheme: e(1959) }, y); - return He(Ye(Ae(I, L), Ae(p, L), L, !0), L); + function ux(E, p, y) { + var M = d({ scheme: e(2607) }, y); + return He(Ye(Ae(E, M), Ae(p, M), M, !0), M); } - function Lx(I, p) { - return typeof I === e(1361) ? I = He(Ae(I, p), p) : i(I) === "object" && (I = Ae(He(I, p), p)), I; + function Mx(E, p) { + return typeof E == "string" ? E = He(Ae(E, p), p) : i(E) === "object" && (E = Ae(He(E, p), p)), E; } - function pa(I, p, y) { + function pa(E, p, y) { const w = e; - return typeof I === w(1361) ? I = He(Ae(I, y), y) : i(I) === w(1304) && (I = He(I, y)), typeof p === w(1361) ? p = He(Ae(p, y), y) : i(p) === "object" && (p = He(p, y)), I === p; + return typeof E == "string" ? E = He(Ae(E, y), y) : i(E) === w(2220) && (E = He(E, y)), typeof p === w(2028) ? p = He(Ae(p, y), y) : i(p) === w(2220) && (p = He(p, y)), E === p; } - function Rn(I, p) { + function kn(E, p) { const y = e; - return I && I[y(2732)]()[y(1521)](!p || !p[y(549)] ? d[y(1653)] : g.ESCAPE, J); + return E && E[y(511)]()[y(1252)](!p || !p[y(2953)] ? f[y(1656)] : g[y(1656)], J); } - function b0(I, p) { + function b0(E, p) { const y = e; - return I && I.toString()[y(1521)](!p || !p[y(549)] ? d[y(2543)] : g.PCT_ENCODED, X); + return E && E[y(511)]()[y(1252)](!p || !p[y(2953)] ? f.PCT_ENCODED : g[y(1401)], ee); } - var Z0 = { scheme: e(3213), domainHost: !0, parse: function(p, y) { + var W0 = { scheme: e(1208), domainHost: !0, parse: function(p, y) { const w = e; - return !p[w(746)] && (p[w(490)] = p[w(490)] || w(1275)), p; + return !p[w(779)] && (p[w(1491)] = p[w(1491)] || w(2640)), p; }, serialize: function(p, y) { const w = e; - var L = String(p[w(2974)]).toLowerCase() === w(2841); - return (p[w(2703)] === (L ? 443 : 80) || p.port === "") && (p[w(2703)] = void 0), !p[w(2474)] && (p.path = "/"), p; - } }, ma = { scheme: e(2841), domainHost: Z0[e(684)], parse: Z0[e(2774)], serialize: Z0[e(3043)] }; - function ba(I) { + var M = String(p[w(2737)])[w(1119)]() === w(1496); + return (p[w(991)] === (M ? 443 : 80) || p.port === "") && (p.port = void 0), !p[w(648)] && (p[w(648)] = "/"), p; + } }, ma = { scheme: e(1496), domainHost: W0.domainHost, parse: W0[e(1598)], serialize: W0.serialize }; + function ba(E) { const p = e; - return typeof I[p(2246)] === p(3106) ? I[p(2246)] : String(I[p(2974)])[p(1945)]() === "wss"; + return typeof E.secure === p(2903) ? E[p(2398)] : String(E[p(2737)])[p(1119)]() === p(1991); } var K0 = { scheme: "ws", domainHost: !0, parse: function(p, y) { const w = e; - var L = p; - return L[w(2246)] = ba(L), L[w(1160)] = (L.path || "/") + (L[w(1267)] ? "?" + L[w(1267)] : ""), L[w(2474)] = void 0, L[w(1267)] = void 0, L; + var M = p; + return M.secure = ba(M), M[w(816)] = (M.path || "/") + (M.query ? "?" + M[w(1717)] : ""), M.path = void 0, M.query = void 0, M; }, serialize: function(p, y) { const w = e; - if ((p[w(2703)] === (ba(p) ? 443 : 80) || p.port === "") && (p.port = void 0), typeof p[w(2246)] === w(3106) && (p[w(2974)] = p[w(2246)] ? w(728) : "ws", p[w(2246)] = void 0), p.resourceName) { - var L = p[w(1160)][w(3263)]("?"), $ = h(L, 2), ie = $[0], ue = $[1]; - p.path = ie && ie !== "/" ? ie : void 0, p[w(1267)] = ue, p[w(1160)] = void 0; + if ((p[w(991)] === (ba(p) ? 443 : 80) || p[w(991)] === "") && (p[w(991)] = void 0), typeof p.secure == "boolean" && (p[w(2737)] = p[w(2398)] ? w(1991) : "ws", p[w(2398)] = void 0), p[w(816)]) { + var M = p[w(816)][w(1958)]("?"), $ = h(M, 2), ne = $[0], de = $[1]; + p.path = ne && ne !== "/" ? ne : void 0, p[w(1717)] = de, p[w(816)] = void 0; } - return p[w(2970)] = void 0, p; - } }, ga = { scheme: "wss", domainHost: K0[e(684)], parse: K0[e(2774)], serialize: K0[e(3043)] }, Cn = {}, ya = e(2113) + e(3240) + "]", o0 = e(1243), _n = n(n("%[EFef]" + o0 + "%" + o0 + o0 + "%" + o0 + o0) + "|" + n("%[89A-Fa-f]" + o0 + "%" + o0 + o0) + "|" + n("%" + o0 + o0)), Fn = e(3110), Tn = e(2877), Nn = s(Tn, e(1889)), qn = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]", An = new RegExp(ya, "g"), L0 = new RegExp(_n, "g"), On = new RegExp(s(e(2817), Fn, e(1317), e(2520), Nn), "g"), va = new RegExp(s("[^]", ya, qn), "g"), Dn = va; - function $x(I) { + return p.fragment = void 0, p; + } }, ga = { scheme: e(1991), domainHost: K0[e(1272)], parse: K0[e(1598)], serialize: K0.serialize }, Pn = {}, ya = "[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]", o0 = "[0-9A-Fa-f]", In = n(n(e(538) + o0 + "%" + o0 + o0 + "%" + o0 + o0) + "|" + n("%[89A-Fa-f]" + o0 + "%" + o0 + o0) + "|" + n("%" + o0 + o0)), En = e(2711), Rn = e(2272), Cn = s(Rn, '[\\"\\\\]'), Fn = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]", _n = new RegExp(ya, "g"), L0 = new RegExp(In, "g"), Nn = new RegExp(s(e(1846), En, e(2300), e(2728), Cn), "g"), va = new RegExp(s(e(1846), ya, Fn), "g"), Tn = va; + function $x(E) { const p = e; - var y = X(I); - return y[p(2314)](An) ? y : I; + var y = ee(E); + return y[p(789)](_n) ? y : E; } - var wa = { scheme: e(1764), parse: function(p, y) { + var wa = { scheme: e(2848), parse: function(p, y) { const w = e; - var L = p, $ = L.to = L.path ? L[w(2474)][w(3263)](",") : []; - if (L[w(2474)] = void 0, L.query) { - for (var ie = !1, ue = {}, Ee = L[w(1267)][w(3263)]("&"), je = 0, Be = Ee[w(2710)]; je < Be; ++je) { - var Re = Ee[je].split("="); - switch (Re[0]) { + var M = p, $ = M.to = M[w(648)] ? M[w(648)].split(",") : []; + if (M[w(648)] = void 0, M[w(1717)]) { + for (var ne = !1, de = {}, Re = M.query.split("&"), je = 0, Be = Re[w(1148)]; je < Be; ++je) { + var Ce = Re[je].split("="); + switch (Ce[0]) { case "to": - for (var De = Re[1][w(3263)](","), We = 0, ge = De[w(2710)]; We < ge; ++We) - $.push(De[We]); + for (var De = Ce[1][w(1958)](","), We = 0, ge = De.length; We < ge; ++We) + $[w(3019)](De[We]); break; - case w(1005): - L[w(1005)] = b0(Re[1], y); + case w(616): + M[w(616)] = b0(Ce[1], y); break; - case w(1946): - L.body = b0(Re[1], y); + case w(3034): + M[w(3034)] = b0(Ce[1], y); break; default: - ie = !0, ue[b0(Re[0], y)] = b0(Re[1], y); + ne = !0, de[b0(Ce[0], y)] = b0(Ce[1], y); break; } } - ie && (L.headers = ue); + ne && (M[w(726)] = de); } - L[w(1267)] = void 0; - for (var $e = 0, Ze = $[w(2710)]; $e < Ze; ++$e) { - var Ue = $[$e][w(3263)]("@"); - if (Ue[0] = b0(Ue[0]), y[w(2128)]) Ue[1] = b0(Ue[1], y)[w(1945)](); + M.query = void 0; + for (var $e = 0, Ke = $[w(1148)]; $e < Ke; ++$e) { + var Ue = $[$e].split("@"); + if (Ue[0] = b0(Ue[0]), y[w(2211)]) Ue[1] = b0(Ue[1], y)[w(1119)](); else try { - Ue[1] = F.toASCII(b0(Ue[1], y)[w(1945)]()); + Ue[1] = F[w(1648)](b0(Ue[1], y)[w(1119)]()); } catch (I0) { - L[w(490)] = L[w(490)] || w(1071) + I0; + M.error = M[w(1491)] || w(2790) + I0; } - $[$e] = Ue[w(1592)]("@"); + $[$e] = Ue.join("@"); } - return L; + return M; }, serialize: function(p, y) { const w = e; - var L = p, $ = u(p.to); + var M = p, $ = u(p.to); if ($) { - for (var ie = 0, ue = $[w(2710)]; ie < ue; ++ie) { - var Ee = String($[ie]), je = Ee.lastIndexOf("@"), Be = Ee[w(1387)](0, je)[w(1521)](L0, $x)[w(1521)](L0, c)[w(1521)](On, J), Re = Ee[w(1387)](je + 1); + for (var ne = 0, de = $[w(1148)]; ne < de; ++ne) { + var Re = String($[ne]), je = Re[w(3007)]("@"), Be = Re[w(1908)](0, je)[w(1252)](L0, $x)[w(1252)](L0, c).replace(Nn, J), Ce = Re.slice(je + 1); try { - Re = y.iri ? F[w(1043)](Re) : F[w(1794)](b0(Re, y)[w(1945)]()); + Ce = y[w(2953)] ? F.toUnicode(Ce) : F.toASCII(b0(Ce, y)[w(1119)]()); } catch ($e) { - L[w(490)] = L[w(490)] || w(1030) + (y[w(549)] ? w(2424) : w(513)) + w(1622) + $e; + M[w(1491)] = M[w(1491)] || w(1985) + (y.iri ? "Unicode" : w(740)) + " via punycode: " + $e; } - $[ie] = Be + "@" + Re; + $[ne] = Be + "@" + Ce; } - L[w(2474)] = $[w(1592)](","); + M.path = $.join(","); } - var De = p[w(1581)] = p[w(1581)] || {}; - p[w(1005)] && (De.subject = p.subject), p.body && (De[w(1946)] = p[w(1946)]); + var De = p[w(726)] = p[w(726)] || {}; + p[w(616)] && (De[w(616)] = p[w(616)]), p.body && (De[w(3034)] = p[w(3034)]); var We = []; for (var ge in De) - De[ge] !== Cn[ge] && We[w(3062)](ge.replace(L0, $x)[w(1521)](L0, c)[w(1521)](va, J) + "=" + De[ge][w(1521)](L0, $x)[w(1521)](L0, c)[w(1521)](Dn, J)); - return We[w(2710)] && (L.query = We.join("&")), L; - } }, jn = /^([^\:]+)\:(.*)/, Sa = { scheme: e(1832), parse: function(p, y) { + De[ge] !== Pn[ge] && We.push(ge.replace(L0, $x).replace(L0, c)[w(1252)](va, J) + "=" + De[ge][w(1252)](L0, $x)[w(1252)](L0, c)[w(1252)](Tn, J)); + return We[w(1148)] && (M[w(1717)] = We.join("&")), M; + } }, qn = /^([^\:]+)\:(.*)/, Sa = { scheme: e(1481), parse: function(p, y) { const w = e; - var L = p.path && p[w(2474)][w(2314)](jn), $ = p; - if (L) { - var ie = y[w(2974)] || $[w(2974)] || w(1832), ue = L[1][w(1945)](), Ee = L[2], je = ie + ":" + (y[w(2124)] || ue), Be = j[je]; - $[w(2124)] = ue, $[w(803)] = Ee, $.path = void 0, Be && ($ = Be[w(2774)]($, y)); - } else $[w(490)] = $[w(490)] || "URN can not be parsed."; + var M = p[w(648)] && p.path[w(789)](qn), $ = p; + if (M) { + var ne = y[w(2737)] || $.scheme || w(1481), de = M[1].toLowerCase(), Re = M[2], je = ne + ":" + (y[w(3020)] || de), Be = L[je]; + $[w(3020)] = de, $.nss = Re, $[w(648)] = void 0, Be && ($ = Be[w(1598)]($, y)); + } else $[w(1491)] = $[w(1491)] || "URN can not be parsed."; return $; }, serialize: function(p, y) { const w = e; - var L = y[w(2974)] || p[w(2974)] || w(1832), $ = p[w(2124)], ie = L + ":" + (y.nid || $), ue = j[ie]; - ue && (p = ue[w(3043)](p, y)); - var Ee = p, je = p[w(803)]; - return Ee[w(2474)] = ($ || y[w(2124)]) + ":" + je, Ee; - } }, Mn = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/, ka = { scheme: e(2437), parse: function(p, y) { + var M = y.scheme || p[w(2737)] || "urn", $ = p[w(3020)], ne = M + ":" + (y[w(3020)] || $), de = L[ne]; + de && (p = de[w(1803)](p, y)); + var Re = p, je = p[w(1279)]; + return Re.path = ($ || y[w(3020)]) + ":" + je, Re; + } }, An = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/, ka = { scheme: e(1989), parse: function(p, y) { const w = e; - var L = p; - return L[w(1551)] = L[w(803)], L[w(803)] = void 0, !y.tolerant && (!L.uuid || !L.uuid[w(2314)](Mn)) && (L[w(490)] = L[w(490)] || w(884)), L; + var M = p; + return M.uuid = M[w(1279)], M.nss = void 0, !y[w(768)] && (!M[w(1486)] || !M[w(1486)][w(789)](An)) && (M[w(1491)] = M[w(1491)] || w(1107)), M; }, serialize: function(p, y) { const w = e; - var L = p; - return L.nss = (p[w(1551)] || "")[w(1945)](), L; + var M = p; + return M.nss = (p[w(1486)] || "")[w(1119)](), M; } }; - j[Z0[e(2974)]] = Z0, j[ma.scheme] = ma, j[K0[e(2974)]] = K0, j[ga.scheme] = ga, j[wa[e(2974)]] = wa, j[Sa.scheme] = Sa, j[ka[e(2974)]] = ka, r[e(777)] = j, r[e(3084)] = J, r[e(1362)] = X, r.parse = Ae, r[e(1652)] = Oe, r.serialize = He, r[e(1050)] = Ye, r[e(2457)] = M0, r.normalize = Lx, r[e(495)] = pa, r[e(1918)] = Rn, r[e(1326)] = b0, Object[e(2796)](r, e(1605), { value: !0 }); + L[W0[e(2737)]] = W0, L[ma.scheme] = ma, L[K0[e(2737)]] = K0, L[ga.scheme] = ga, L[wa[e(2737)]] = wa, L[Sa[e(2737)]] = Sa, L[ka.scheme] = ka, r[e(2475)] = L, r[e(771)] = J, r[e(944)] = ee, r[e(1598)] = Ae, r[e(2883)] = Oe, r[e(1803)] = He, r.resolveComponents = Ye, r.resolve = ux, r[e(2331)] = Mx, r[e(542)] = pa, r[e(1336)] = kn, r[e(853)] = b0, Object.defineProperty(r, "__esModule", { value: !0 }); }); - })(Y0, Y0[o(732)])), Y0[o(732)]; + })(X0, X0[o(1229)])), X0[o(1229)]; } var Qx, nr; function la() { return nr || (nr = 1, Qx = function o(x, t) { - const r = K; + const r = Z; if (x === t) return !0; - if (x && t && typeof x == r(1304) && typeof t == "object") { - if (x[r(2038)] !== t[r(2038)]) return !1; + if (x && t && typeof x == r(2220) && typeof t == r(2220)) { + if (x[r(1230)] !== t[r(1230)]) return !1; var e, s, n; - if (Array[r(3255)](x)) { - if (e = x.length, e != t[r(2710)]) return !1; + if (Array[r(500)](x)) { + if (e = x[r(1148)], e != t[r(1148)]) return !1; for (s = e; s-- !== 0; ) if (!o(x[s], t[s])) return !1; return !0; } - if (x.constructor === RegExp) return x[r(1038)] === t.source && x.flags === t[r(2924)]; - if (x.valueOf !== Object[r(2587)].valueOf) return x[r(2614)]() === t.valueOf(); - if (x.toString !== Object[r(2587)][r(2732)]) return x[r(2732)]() === t[r(2732)](); - if (n = Object[r(2123)](x), e = n[r(2710)], e !== Object[r(2123)](t).length) return !1; - for (s = e; s-- !== 0; ) if (!Object[r(2587)][r(1315)].call(t, n[s])) return !1; + if (x[r(1230)] === RegExp) return x[r(484)] === t[r(484)] && x[r(2907)] === t[r(2907)]; + if (x[r(3006)] !== Object[r(1706)][r(3006)]) return x[r(3006)]() === t[r(3006)](); + if (x[r(511)] !== Object[r(1706)].toString) return x[r(511)]() === t[r(511)](); + if (n = Object[r(1877)](x), e = n[r(1148)], e !== Object[r(1877)](t)[r(1148)]) return !1; + for (s = e; s-- !== 0; ) if (!Object[r(1706)][r(1446)][r(2689)](t, n[s])) return !1; for (s = e; s-- !== 0; ) { var i = n[s]; if (!o(x[i], t[i])) return !1; @@ -5403,331 +5400,336 @@ function la() { }), Qx; } var Xx, or; -function n2() { +function tc() { return or || (or = 1, Xx = function(x) { - const t = K; - for (var r = 0, e = x.length, s = 0, n; s < e; ) - r++, n = x[t(901)](s++), n >= 55296 && n <= 56319 && s < e && (n = x.charCodeAt(s), (n & 64512) == 56320 && s++); + const t = Z; + for (var r = 0, e = x[t(1148)], s = 0, n; s < e; ) + r++, n = x[t(2307)](s++), n >= 55296 && n <= 56319 && s < e && (n = x[t(2307)](s), (n & 64512) == 56320 && s++); return r; }), Xx; } var Yx, ir; -function W0() { +function B0() { const o = a; if (ir) return Yx; - ir = 1, Yx = { copy: x, checkDataType: t, checkDataTypes: r, coerceToTypes: s, toHash: n, getProperty: u, escapeQuotes: f, equal: la(), ucs2length: n2(), varOccurences: l, varReplace: d, schemaHasRules: g, schemaHasRulesExcept: h, schemaUnknownRules: m, toQuotedString: v, getPathExpr: k, getPath: P, getData: R, unescapeFragment: C, unescapeJsonPointer: M, escapeFragment: A, escapeJsonPointer: O }; - function x(_, N) { - N = N || {}; - for (var z in _) N[z] = _[z]; - return N; + ir = 1, Yx = { copy: x, checkDataType: t, checkDataTypes: r, coerceToTypes: s, toHash: n, getProperty: u, escapeQuotes: d, equal: la(), ucs2length: tc(), varOccurences: l, varReplace: f, schemaHasRules: g, schemaHasRulesExcept: h, schemaUnknownRules: m, toQuotedString: v, getPathExpr: k, getPath: I, getData: R, unescapeFragment: C, unescapeJsonPointer: O, escapeFragment: j, escapeJsonPointer: D }; + function x(N, _) { + _ = _ || {}; + for (var z in N) _[z] = N[z]; + return _; } - function t(_, N, z, U) { - const H = K; - var G = U ? H(2781) : " === ", re = U ? " || " : H(3061), se = U ? "!" : "", fe = U ? "" : "!"; - switch (_) { - case H(1959): - return N + G + H(1959); - case H(529): - return se + H(1915) + N + ")"; - case "object": - return "(" + se + N + re + H(1762) + N + G + '"object"' + re + fe + H(1915) + N + "))"; - case H(766): - return "(typeof " + N + G + H(1513) + re + fe + "(" + N + H(647) + re + N + G + N + (z ? re + se + "isFinite(" + N + ")" : "") + ")"; - case H(2665): - return H(3201) + N + G + '"' + _ + '"' + (z ? re + se + "isFinite(" + N + ")" : "") + ")"; + function t(N, _, z, U) { + const H = Z; + var G = H(U ? 377 : 562), ie = H(U ? 2312 : 997), ue = U ? "!" : "", le = U ? "" : "!"; + switch (N) { + case H(2607): + return _ + G + H(2607); + case H(1912): + return ue + H(1792) + _ + ")"; + case H(2220): + return "(" + ue + _ + ie + H(863) + _ + G + '"object"' + ie + le + "Array.isArray(" + _ + "))"; + case H(1999): + return H(1356) + _ + G + H(400) + ie + le + "(" + _ + H(968) + ie + _ + G + _ + (z ? ie + ue + H(640) + _ + ")" : "") + ")"; + case H(867): + return "(typeof " + _ + G + '"' + N + '"' + (z ? ie + ue + H(640) + _ + ")" : "") + ")"; default: - return "typeof " + N + G + '"' + _ + '"'; + return H(863) + _ + G + '"' + N + '"'; } } - function r(_, N, z) { - const U = K; - switch (_.length) { + function r(N, _, z) { + const U = Z; + switch (N[U(1148)]) { case 1: - return t(_[0], N, z, !0); + return t(N[0], _, z, !0); default: - var H = "", G = n(_); - G[U(529)] && G[U(1304)] && (H = G[U(1959)] ? "(" : "(!" + N + " || ", H += U(1762) + N + ' !== "object")', delete G.null, delete G[U(529)], delete G[U(1304)]), G.number && delete G[U(766)]; - for (var re in G) H += (H ? U(3061) : "") + t(re, N, z, !0); + var H = "", G = n(N); + G[U(1912)] && G[U(2220)] && (H = G.null ? "(" : "(!" + _ + U(2312), H += U(863) + _ + U(1371), delete G.null, delete G[U(1912)], delete G[U(2220)]), G[U(867)] && delete G[U(1999)]; + for (var ie in G) H += (H ? " && " : "") + t(ie, _, z, !0); return H; } } - var e = n([o(1361), o(2665), o(766), o(3106), o(1959)]); - function s(_, N) { + var e = n([o(2028), o(867), o(1999), o(2903), o(2607)]); + function s(N, _) { const z = o; - if (Array[z(3255)](N)) { - for (var U = [], H = 0; H < N[z(2710)]; H++) { - var G = N[H]; - e[G] ? U[U.length] = G : _ === "array" && G === "array" && (U[U[z(2710)]] = G); + if (Array[z(500)](_)) { + for (var U = [], H = 0; H < _[z(1148)]; H++) { + var G = _[H]; + (e[G] || N === z(1912) && G === z(1912)) && (U[U[z(1148)]] = G); } - if (U[z(2710)]) return U; + if (U[z(1148)]) return U; } else { - if (e[N]) return [N]; - if (_ === "array" && N === z(529)) return ["array"]; + if (e[_]) return [_]; + if (N === z(1912) && _ === z(1912)) return ["array"]; } } - function n(_) { - for (var N = {}, z = 0; z < _.length; z++) N[_[z]] = !0; - return N; + function n(N) { + const _ = o; + for (var z = {}, U = 0; U < N[_(1148)]; U++) z[N[U]] = !0; + return z; } var i = /^[a-z$_][a-z$_0-9]*$/i, c = /'|\\/g; - function u(_) { - return typeof _ == "number" ? "[" + _ + "]" : i[o(2346)](_) ? "." + _ : "['" + f(_) + "']"; + function u(N) { + const _ = o; + return typeof N == _(867) ? "[" + N + "]" : i[_(1531)](N) ? "." + N : "['" + d(N) + "']"; } - function f(_) { - const N = o; - return _[N(1521)](c, N(898))[N(1521)](/\n/g, "\\n")[N(1521)](/\r/g, "\\r")[N(1521)](/\f/g, "\\f")[N(1521)](/\t/g, "\\t"); + function d(N) { + const _ = o; + return N.replace(c, "\\$&")[_(1252)](/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\f/g, "\\f").replace(/\t/g, "\\t"); } - function l(_, N) { + function l(N, _) { const z = o; - N += z(1567); - var U = _[z(2314)](new RegExp(N, "g")); - return U ? U.length : 0; + _ += "[^0-9]"; + var U = N[z(789)](new RegExp(_, "g")); + return U ? U[z(1148)] : 0; } - function d(_, N, z) { + function f(N, _, z) { const U = o; - return N += "([^0-9])", z = z[U(1521)](/\$/g, U(1017)), _[U(1521)](new RegExp(N, "g"), z + "$1"); + return _ += U(2104), z = z[U(1252)](/\$/g, U(2013)), N[U(1252)](new RegExp(_, "g"), z + "$1"); } - function g(_, N) { - if (typeof _ == "boolean") return !_; - for (var z in _) if (N[z]) return !0; + function g(N, _) { + if (typeof N == o(2903)) return !N; + for (var U in N) if (_[U]) return !0; } - function h(_, N, z) { - if (typeof _ == o(3106)) return !_ && z != "not"; - for (var H in _) if (H != z && N[H]) return !0; + function h(N, _, z) { + const U = o; + if (typeof N == "boolean") return !N && z != U(1409); + for (var H in N) if (H != z && _[H]) return !0; } - function m(_, N) { - if (typeof _ != o(3106)) { - for (var U in _) if (!N[U]) return U; + function m(N, _) { + if (typeof N != o(2903)) { + for (var U in N) if (!_[U]) return U; } } - function v(_) { - return "'" + f(_) + "'"; + function v(N) { + return "'" + d(N) + "'"; } - function k(_, N, z, U) { + function k(N, _, z, U) { const H = o; - var G = z ? H(2401) + N + (U ? "" : H(1094)) : U ? H(2105) + N + H(1926) : H(2878) + N + " + '\\']'"; - return E(_, G); + var G = z ? "'/' + " + _ + (U ? "" : H(453)) : U ? H(290) + _ + H(1782) : "'[\\'' + " + _ + " + '\\']'"; + return P(N, G); } - function P(_, N, z) { - var U = v(z ? "/" + O(N) : u(N)); - return E(_, U); + function I(N, _, z) { + var U = v(z ? "/" + D(_) : u(_)); + return P(N, U); } var T = /^\/(?:[^~]|~0|~1)*$/, q = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/; - function R(_, N, z) { + function R(N, _, z) { const U = o; - var H, G, re, se; - if (_ === "") return U(2871); - if (_[0] == "/") { - if (!T.test(_)) throw new Error(U(3016) + _); - G = _, re = "rootData"; + var H, G, ie, ue; + if (N === "") return U(1785); + if (N[0] == "/") { + if (!T[U(1531)](N)) throw new Error(U(2117) + N); + G = N, ie = U(1785); } else { - if (se = _.match(q), !se) throw new Error(U(3016) + _); - if (H = +se[1], G = se[2], G == "#") { - if (H >= N) throw new Error(U(1862) + H + U(2381) + N); - return z[N - H]; + if (ue = N[U(789)](q), !ue) throw new Error(U(2117) + N); + if (H = +ue[1], G = ue[2], G == "#") { + if (H >= _) throw new Error(U(1187) + H + " levels up, current level is " + _); + return z[_ - H]; } - if (H > N) throw new Error(U(1518) + H + " levels up, current level is " + N); - if (re = "data" + (N - H || ""), !G) return re; + if (H > _) throw new Error("Cannot access data " + H + U(3018) + _); + if (ie = U(1506) + (_ - H || ""), !G) return ie; } - for (var fe = re, de = G[U(3263)]("/"), le = 0; le < de[U(2710)]; le++) { - var Se = de[le]; - Se && (re += u(M(Se)), fe += U(3061) + re); + for (var le = ie, oe = G[U(1958)]("/"), fe = 0; fe < oe.length; fe++) { + var Pe = oe[fe]; + Pe && (ie += u(O(Pe)), le += U(997) + ie); } - return fe; + return le; } - function E(_, N) { + function P(N, _) { const z = o; - return _ == '""' ? N : (_ + " + " + N)[z(1521)](/([^\\])' \+ '/g, "$1"); + return N == '""' ? _ : (N + " + " + _)[z(1252)](/([^\\])' \+ '/g, "$1"); } - function C(_) { - return M(decodeURIComponent(_)); + function C(N) { + return O(decodeURIComponent(N)); } - function A(_) { - return encodeURIComponent(O(_)); + function j(N) { + return encodeURIComponent(D(N)); } - function O(_) { - return _[o(1521)](/~/g, "~0").replace(/\//g, "~1"); + function D(N) { + const _ = o; + return N[_(1252)](/~/g, "~0")[_(1252)](/\//g, "~1"); } - function M(_) { - const N = o; - return _[N(1521)](/~1/g, "/")[N(1521)](/~0/g, "~"); + function O(N) { + const _ = o; + return N.replace(/~1/g, "/")[_(1252)](/~0/g, "~"); } return Yx; } var et, cr; -function yn() { +function pn() { if (cr) return et; cr = 1; - var o = W0(); + var o = B0(); et = x; function x(t) { - o[K(2615)](t, this); + o[Z(1051)](t, this); } return et; } var xt = { exports: {} }, ur; -function o2() { +function ac() { const o = a; - if (ur) return xt[o(732)]; + if (ur) return xt.exports; ur = 1; - var x = xt[o(732)] = function(e, s, n) { + var x = xt[o(1229)] = function(e, s, n) { const i = o; - typeof s == "function" && (n = s, s = {}), n = s.cb || n; - var c = typeof n == i(1936) ? n : n[i(1093)] || function() { + typeof s == i(1149) && (n = s, s = {}), n = s.cb || n; + var c = typeof n == i(1149) ? n : n[i(297)] || function() { }, u = n.post || function() { }; t(s, c, u, e, "", e); }; - x[o(1997)] = { additionalItems: !0, items: !0, contains: !0, additionalProperties: !0, propertyNames: !0, not: !0 }, x[o(2510)] = { items: !0, allOf: !0, anyOf: !0, oneOf: !0 }, x[o(3231)] = { definitions: !0, properties: !0, patternProperties: !0, dependencies: !0 }, x[o(1505)] = { default: !0, enum: !0, const: !0, required: !0, maximum: !0, minimum: !0, exclusiveMaximum: !0, exclusiveMinimum: !0, multipleOf: !0, maxLength: !0, minLength: !0, pattern: !0, format: !0, maxItems: !0, minItems: !0, uniqueItems: !0, maxProperties: !0, minProperties: !0 }; - function t(e, s, n, i, c, u, f, l, d, g) { + x[o(305)] = { additionalItems: !0, items: !0, contains: !0, additionalProperties: !0, propertyNames: !0, not: !0 }, x[o(1668)] = { items: !0, allOf: !0, anyOf: !0, oneOf: !0 }, x[o(1078)] = { definitions: !0, properties: !0, patternProperties: !0, dependencies: !0 }, x.skipKeywords = { default: !0, enum: !0, const: !0, required: !0, maximum: !0, minimum: !0, exclusiveMaximum: !0, exclusiveMinimum: !0, multipleOf: !0, maxLength: !0, minLength: !0, pattern: !0, format: !0, maxItems: !0, minItems: !0, uniqueItems: !0, maxProperties: !0, minProperties: !0 }; + function t(e, s, n, i, c, u, d, l, f, g) { const h = o; - if (i && typeof i == h(1304) && !Array[h(3255)](i)) { - s(i, c, u, f, l, d, g); + if (i && typeof i == h(2220) && !Array[h(500)](i)) { + s(i, c, u, d, l, f, g); for (var m in i) { var v = i[m]; - if (Array[h(3255)](v)) { - if (m in x[h(2510)]) - for (var k = 0; k < v.length; k++) t(e, s, n, v[k], c + "/" + m + "/" + k, u, c, m, i, k); - } else if (m in x[h(3231)]) { - if (v && typeof v == h(1304)) - for (var P in v) t(e, s, n, v[P], c + "/" + m + "/" + r(P), u, c, m, i, P); - } else (m in x[h(1997)] || e[h(2640)] && !(m in x[h(1505)])) && t(e, s, n, v, c + "/" + m, u, c, m, i); + if (Array[h(500)](v)) { + if (m in x[h(1668)]) + for (var k = 0; k < v[h(1148)]; k++) t(e, s, n, v[k], c + "/" + m + "/" + k, u, c, m, i, k); + } else if (m in x[h(1078)]) { + if (v && typeof v == "object") + for (var I in v) t(e, s, n, v[I], c + "/" + m + "/" + r(I), u, c, m, i, I); + } else (m in x.keywords || e[h(791)] && !(m in x[h(2188)])) && t(e, s, n, v, c + "/" + m, u, c, m, i); } - n(i, c, u, f, l, d, g); + n(i, c, u, d, l, f, g); } } function r(e) { const s = o; - return e.replace(/~/g, "~0")[s(1521)](/\//g, "~1"); + return e[s(1252)](/~/g, "~0")[s(1252)](/\//g, "~1"); } - return xt[o(732)]; + return xt[o(1229)]; } -var tt, fr; -function da() { +var tt, dr; +function fa() { const o = a; - if (fr) return tt; - fr = 1; - var x = s2(), t = la(), r = W0(), e = yn(), s = o2(); - tt = n, n.normalizeId = P, n[o(3081)] = m, n.url = T, n[o(2707)] = q, n[o(3126)] = d, n[o(1425)] = i; - function n(R, E, C) { - const A = o; - var O = this[A(497)][C]; - if (typeof O == A(1361)) - if (this._refs[O]) O = this[A(497)][O]; - else return n[A(1522)](this, R, E, O); - if (O = O || this[A(2265)][C], O instanceof e) return d(O[A(1425)], this[A(1068)].inlineRefs) ? O[A(1425)] : O[A(3181)] || this._compile(O); - var M = i[A(1522)](this, E, C), _, N, z; - return M && (_ = M[A(1425)], E = M[A(2212)], z = M.baseId), _ instanceof e ? N = _[A(3181)] || R[A(1522)](this, _[A(1425)], E, void 0, z) : _ !== void 0 && (N = d(_, this[A(1068)][A(2998)]) ? _ : R[A(1522)](this, _, E, void 0, z)), N; + if (dr) return tt; + dr = 1; + var x = xc(), t = la(), r = B0(), e = pn(), s = ac(); + tt = n, n[o(2447)] = I, n.fullPath = m, n[o(2740)] = T, n[o(2106)] = q, n.inlineRef = f, n[o(2238)] = i; + function n(R, P, C) { + const j = o; + var D = this[j(667)][C]; + if (typeof D == j(2028)) + if (this._refs[D]) D = this[j(667)][D]; + else return n.call(this, R, P, D); + if (D = D || this[j(638)][C], D instanceof e) return f(D[j(2238)], this[j(1157)][j(1301)]) ? D[j(2238)] : D.validate || this[j(994)](D); + var O = i[j(2689)](this, P, C), N, _, z; + return O && (N = O.schema, P = O.root, z = O[j(882)]), N instanceof e ? _ = N[j(2029)] || R[j(2689)](this, N[j(2238)], P, void 0, z) : N !== void 0 && (_ = f(N, this[j(1157)][j(1301)]) ? N : R[j(2689)](this, N, P, void 0, z)), _; } - function i(R, E) { + function i(R, P) { const C = o; - var A = x[C(2774)](E), O = v(A), M = m(this._getId(R[C(1425)])); - if (Object[C(2123)](R.schema)[C(2710)] === 0 || O !== M) { - var _ = P(O), N = this[C(497)][_]; - if (typeof N == C(1361)) return c[C(1522)](this, R, N, A); - if (N instanceof e) - N[C(3181)] || this[C(1026)](N), R = N; - else if (N = this[C(2265)][_], N instanceof e) { - if (N.validate || this[C(1026)](N), _ == P(E)) return { schema: N, root: R, baseId: M }; - R = N; + var j = x[C(1598)](P), D = v(j), O = m(this[C(1601)](R[C(2238)])); + if (Object[C(1877)](R.schema)[C(1148)] === 0 || D !== O) { + var N = I(D), _ = this[C(667)][N]; + if (typeof _ == C(2028)) return c[C(2689)](this, R, _, j); + if (_ instanceof e) + _.validate || this[C(994)](_), R = _; + else if (_ = this[C(638)][N], _ instanceof e) { + if (_.validate || this[C(994)](_), N == I(P)) return { schema: _, root: R, baseId: O }; + R = _; } else return; - if (!R[C(1425)]) return; - M = m(this[C(1776)](R[C(1425)])); + if (!R[C(2238)]) return; + O = m(this[C(1601)](R.schema)); } - return f[C(1522)](this, A, M, R.schema, R); + return d[C(2689)](this, j, O, R[C(2238)], R); } - function c(R, E, C) { - const A = o; - var O = i[A(1522)](this, R, E); - if (O) { - var M = O.schema, _ = O[A(805)]; - R = O[A(2212)]; - var N = this[A(1776)](M); - return N && (_ = T(_, N)), f[A(1522)](this, C, _, M, R); + function c(R, P, C) { + const j = o; + var D = i[j(2689)](this, R, P); + if (D) { + var O = D[j(2238)], N = D.baseId; + R = D[j(1224)]; + var _ = this._getId(O); + return _ && (N = T(N, _)), d[j(2689)](this, C, N, O, R); } } - var u = r[o(709)]([o(3005), "patternProperties", o(2218), o(1110), o(2451)]); - function f(R, E, C, A) { - const O = o; - if (R[O(2970)] = R[O(2970)] || "", R.fragment.slice(0, 1) == "/") { - for (var M = R[O(2970)].split("/"), _ = 1; _ < M[O(2710)]; _++) { - var N = M[_]; - if (N) { - if (N = r[O(2770)](N), C = C[N], C === void 0) break; + var u = r[o(1655)](["properties", o(1073), o(2897), o(600), o(2870)]); + function d(R, P, C, j) { + const D = o; + if (R.fragment = R.fragment || "", R.fragment.slice(0, 1) == "/") { + for (var O = R.fragment[D(1958)]("/"), N = 1; N < O[D(1148)]; N++) { + var _ = O[N]; + if (_) { + if (_ = r[D(2386)](_), C = C[_], C === void 0) break; var z; - if (!u[N] && (z = this[O(1776)](C), z && (E = T(E, z)), C[O(885)])) { - var U = T(E, C.$ref), H = i[O(1522)](this, A, U); - H && (C = H[O(1425)], A = H[O(2212)], E = H[O(805)]); + if (!u[_] && (z = this._getId(C), z && (P = T(P, z)), C.$ref)) { + var U = T(P, C[D(2495)]), H = i[D(2689)](this, j, U); + H && (C = H[D(2238)], j = H[D(1224)], P = H[D(882)]); } } } - if (C !== void 0 && C !== A[O(1425)]) return { schema: C, root: A, baseId: E }; + if (C !== void 0 && C !== j[D(2238)]) return { schema: C, root: j, baseId: P }; } } - var l = r[o(709)]([o(2076), o(802), "pattern", o(649), o(1312), o(1651), o(2371), o(1335), o(1919), o(631), o(2226), o(1684), o(2798), o(2438), o(2218)]); - function d(R, E) { - if (E === !1) return !1; - if (E === void 0 || E === !0) return g(R); - if (E) return h(R) <= E; + var l = r[o(1655)]([o(2291), "format", o(2248), o(388), "minLength", o(2568), "minProperties", o(858), o(2547), o(1613), "minimum", "uniqueItems", o(2342), o(747), o(2897)]); + function f(R, P) { + if (P === !1) return !1; + if (P === void 0 || P === !0) return g(R); + if (P) return h(R) <= P; } function g(R) { - const E = o; + const P = o; var C; - if (Array[E(3255)](R)) { - for (var A = 0; A < R.length; A++) - if (C = R[A], typeof C == "object" && !g(C)) return !1; - } else for (var O in R) - if (O == "$ref" || (C = R[O], typeof C == E(1304) && !g(C))) return !1; + if (Array[P(500)](R)) { + for (var j = 0; j < R[P(1148)]; j++) + if (C = R[j], typeof C == P(2220) && !g(C)) return !1; + } else for (var D in R) + if (D == P(2495) || (C = R[D], typeof C == P(2220) && !g(C))) return !1; return !0; } function h(R) { - const E = o; - var C = 0, A; - if (Array[E(3255)](R)) { - for (var O = 0; O < R[E(2710)]; O++) - if (A = R[O], typeof A == "object" && (C += h(A)), C == 1 / 0) return 1 / 0; - } else for (var M in R) { - if (M == "$ref") return 1 / 0; - if (l[M]) C++; - else if (A = R[M], typeof A == E(1304) && (C += h(A) + 1), C == 1 / 0) return 1 / 0; + const P = o; + var C = 0, j; + if (Array[P(500)](R)) { + for (var D = 0; D < R.length; D++) + if (j = R[D], typeof j == P(2220) && (C += h(j)), C == 1 / 0) return 1 / 0; + } else for (var O in R) { + if (O == P(2495)) return 1 / 0; + if (l[O]) C++; + else if (j = R[O], typeof j == "object" && (C += h(j) + 1), C == 1 / 0) return 1 / 0; } return C; } - function m(R, E) { + function m(R, P) { const C = o; - E !== !1 && (R = P(R)); - var A = x[C(2774)](R); - return v(A); + P !== !1 && (R = I(R)); + var j = x[C(1598)](R); + return v(j); } function v(R) { - return x.serialize(R).split("#")[0] + "#"; + const P = o; + return x[P(1803)](R)[P(1958)]("#")[0] + "#"; } var k = /#\/?$/; - function P(R) { - return R ? R[o(1521)](k, "") : ""; + function I(R) { + return R ? R[o(1252)](k, "") : ""; } - function T(R, E) { - const C = o; - return E = P(E), x[C(2457)](R, E); + function T(R, P) { + return P = I(P), x.resolve(R, P); } function q(R) { - var E = P(this._getId(R)), C = { "": E }, A = { "": m(E, !1) }, O = {}, M = this; - return s(R, { allKeys: !0 }, function(_, N, z, U, H, G, re) { - const se = K; - if (N !== "") { - var fe = M._getId(_), de = C[U], le = A[U] + "/" + H; - if (re !== void 0 && (le += "/" + (typeof re == se(2665) ? re : r[se(1675)](re))), typeof fe == se(1361)) { - fe = de = P(de ? x[se(2457)](de, fe) : fe); - var Se = M._refs[fe]; - if (typeof Se == se(1361) && (Se = M._refs[Se]), Se && Se[se(1425)]) { - if (!t(_, Se[se(1425)])) throw new Error(se(2577) + fe + se(2730)); - } else if (fe != P(le)) - if (fe[0] == "#") { - if (O[fe] && !t(_, O[fe])) throw new Error(se(2577) + fe + '" resolves to more than one schema'); - O[fe] = _; - } else M._refs[fe] = le; + const P = o; + var C = I(this[P(1601)](R)), j = { "": C }, D = { "": m(C, !1) }, O = {}, N = this; + return s(R, { allKeys: !0 }, function(_, z, U, H, G, ie, ue) { + const le = P; + if (z !== "") { + var oe = N[le(1601)](_), fe = j[H], Pe = D[H] + "/" + G; + if (ue !== void 0 && (Pe += "/" + (typeof ue == le(867) ? ue : r[le(2095)](ue))), typeof oe == le(2028)) { + oe = fe = I(fe ? x[le(855)](fe, oe) : oe); + var ye = N[le(667)][oe]; + if (typeof ye == le(2028) && (ye = N[le(667)][ye]), ye && ye[le(2238)]) { + if (!t(_, ye[le(2238)])) throw new Error('id "' + oe + le(2893)); + } else if (oe != I(Pe)) + if (oe[0] == "#") { + if (O[oe] && !t(_, O[oe])) throw new Error('id "' + oe + le(2893)); + O[oe] = _; + } else N[le(667)][oe] = Pe; } - C[N] = de, A[N] = le; + j[z] = fe, D[z] = Pe; } }), O; } @@ -5738,439 +5740,436 @@ function ha() { const o = a; if (lr) return at; lr = 1; - var x = da(); + var x = fa(); at = { Validation: e(t), MissingRef: e(r) }; function t(s) { - const n = K; - this[n(1044)] = n(2874), this[n(2800)] = s, this[n(1430)] = this[n(2183)] = !0; + const n = Z; + this[n(2461)] = n(2377), this.errors = s, this[n(2413)] = this[n(2850)] = !0; } - r[o(1044)] = function(s, n) { + r[o(2461)] = function(s, n) { const i = o; - return i(857) + n + i(2227) + s; + return i(2399) + n + i(2038) + s; }; function r(s, n, i) { const c = o; - this.message = i || r.message(s, n), this.missingRef = x.url(s, n), this[c(528)] = x[c(3133)](x[c(3081)](this.missingRef)); + this[c(2461)] = i || r[c(2461)](s, n), this.missingRef = x[c(2740)](s, n), this[c(599)] = x.normalizeId(x.fullPath(this[c(2613)])); } function e(s) { const n = o; - return s[n(2587)] = Object.create(Error[n(2587)]), s.prototype.constructor = s, s; + return s.prototype = Object[n(558)](Error[n(1706)]), s[n(1706)][n(1230)] = s, s; } return at; } -var rt, dr; -function vn() { - return dr || (dr = 1, rt = function(o, x) { - const t = K; - x || (x = {}), typeof x == "function" && (x = { cmp: x }); - var r = typeof x.cycles === t(3106) ? x.cycles : !1, e = x[t(1996)] && /* @__PURE__ */ (function(n) { +var rt, fr; +function mn() { + return fr || (fr = 1, rt = function(o, x) { + const t = Z; + x || (x = {}), typeof x === t(1149) && (x = { cmp: x }); + var r = typeof x[t(1407)] === t(2903) ? x[t(1407)] : !1, e = x.cmp && /* @__PURE__ */ (function(n) { return function(i) { return function(c, u) { - var f = { key: c, value: i[c] }, l = { key: u, value: i[u] }; - return n(f, l); + var d = { key: c, value: i[c] }, l = { key: u, value: i[u] }; + return n(d, l); }; }; - })(x[t(1996)]), s = []; + })(x[t(1664)]), s = []; return (function n(i) { const c = t; - if (i && i[c(1363)] && typeof i[c(1363)] === c(1936) && (i = i[c(1363)]()), i !== void 0) { - if (typeof i == c(2665)) return isFinite(i) ? "" + i : c(1959); - if (typeof i != "object") return JSON.stringify(i); - var u, f; - if (Array[c(3255)](i)) { - for (f = "[", u = 0; u < i[c(2710)]; u++) - u && (f += ","), f += n(i[u]) || c(1959); - return f + "]"; + if (i && i[c(1159)] && typeof i[c(1159)] === c(1149) && (i = i.toJSON()), i !== void 0) { + if (typeof i == "number") return isFinite(i) ? "" + i : c(2607); + if (typeof i !== c(2220)) return JSON.stringify(i); + var u, d; + if (Array[c(500)](i)) { + for (d = "[", u = 0; u < i.length; u++) + u && (d += ","), d += n(i[u]) || c(2607); + return d + "]"; } - if (i === null) return c(1959); - if (s[c(2436)](i) !== -1) { - if (r) return JSON.stringify(c(3070)); - throw new TypeError("Converting circular structure to JSON"); + if (i === null) return c(2607); + if (s[c(2273)](i) !== -1) { + if (r) return JSON[c(3038)](c(974)); + throw new TypeError(c(2776)); } - var l = s.push(i) - 1, d = Object[c(2123)](i)[c(841)](e && e(i)); - for (f = "", u = 0; u < d[c(2710)]; u++) { - var g = d[u], h = n(i[g]); - h && (f && (f += ","), f += JSON.stringify(g) + ":" + h); + var l = s.push(i) - 1, f = Object[c(1877)](i).sort(e && e(i)); + for (d = "", u = 0; u < f.length; u++) { + var g = f[u], h = n(i[g]); + h && (d && (d += ","), d += JSON[c(3038)](g) + ":" + h); } - return s[c(2881)](l, 1), "{" + f + "}"; + return s.splice(l, 1), "{" + d + "}"; } })(o); }), rt; } var st, hr; -function wn() { +function bn() { return hr || (hr = 1, st = function(x, t, r) { - const e = K; - var s = "", n = x[e(1425)][e(1101)] === !0, i = x[e(1975)][e(1786)](x[e(1425)], x.RULES[e(1096)], e(885)), c = x.self[e(1776)](x.schema); - if (x[e(1544)][e(868)]) { - var u = x.util.schemaUnknownRules(x[e(1425)], x[e(2996)][e(1997)]); + const e = Z; + var s = "", n = x[e(2238)].$async === !0, i = x[e(3036)][e(355)](x[e(2238)], x[e(730)][e(2497)], "$ref"), c = x.self[e(1601)](x.schema); + if (x.opts[e(493)]) { + var u = x[e(3036)][e(619)](x.schema, x[e(730)][e(305)]); if (u) { - var f = e(2198) + u; - if (x[e(1544)][e(868)] === e(1635)) x[e(2303)].warn(f); - else throw new Error(f); + var d = e(2513) + u; + if (x.opts[e(493)] === "log") x[e(872)][e(2618)](d); + else throw new Error(d); } } - if (x[e(2918)] && (s += e(2821), n && (x[e(2416)] = !0, s += e(3038)), s += e(2169), c && (x.opts[e(986)] || x[e(1544)][e(1279)]) && (s += " " + ("/*# sourceURL=" + c + e(2860)) + " ")), typeof x[e(1425)] == e(3106) || !(i || x[e(1425)][e(885)])) { - var t = e(1452), l = x[e(1082)], d = x[e(1498)], g = x[e(1425)][t], h = x.schemaPath + x[e(1975)][e(3039)](t), m = x.errSchemaPath + "/" + t, E = !x[e(1544)][e(3009)], O, v = e(2663) + (d || ""), R = e(1122) + l; - if (x.schema === !1) { - x[e(2918)] ? E = !0 : s += e(2675) + R + e(1500); + if (x.isTop && (s += e(2055), n && (x[e(2538)] = !0, s += e(521)), s += e(1795), c && (x.opts[e(1887)] || x[e(569)][e(1478)]) && (s += " " + ("/*# sourceURL=" + c + e(2372)) + " ")), typeof x[e(2238)] == e(2903) || !(i || x.schema.$ref)) { + var t = e(1437), l = x[e(1113)], f = x[e(2585)], g = x.schema[t], h = x[e(1913)] + x.util[e(2528)](t), m = x.errSchemaPath + "/" + t, P = !x.opts.allErrors, D, v = e(1506) + (f || ""), R = e(467) + l; + if (x[e(2238)] === !1) { + x[e(2338)] ? P = !0 : s += e(465) + R + e(1734); var k = k || []; - k.push(s), s = "", x[e(559)] !== !1 ? (s += " { keyword: '" + (O || e(1452)) + e(2387) + x.errorPath + " , schemaPath: " + x.util[e(1767)](m) + e(1676), x[e(1544)].messages !== !1 && (s += e(1380)), x.opts[e(2491)] && (s += e(1663) + x[e(1262)] + e(1844) + v + " "), s += " } ") : s += " {} "; - var P = s; - s = k[e(2900)](), !x[e(2612)] && E ? x[e(2416)] ? s += " throw new ValidationError([" + P + e(2300) : s += e(2213) + P + e(702) : s += e(2636) + P + e(2653); - } else x.isTop ? n ? s += e(936) : s += e(2231) : s += " var " + R + e(2411); - return x.isTop && (s += e(2163)), s; + k[e(3019)](s), s = "", x[e(2324)] !== !1 ? (s += e(2793) + (D || e(1437)) + e(795) + x[e(1115)] + e(1218) + x.util.toQuotedString(m) + e(2777), x.opts[e(709)] !== !1 && (s += e(2701)), x[e(569)].verbose && (s += e(985) + x[e(1913)] + " , data: " + v + " "), s += e(2670)) : s += " {} "; + var I = s; + s = k[e(2906)](), !x[e(1629)] && P ? x[e(2538)] ? s += " throw new ValidationError([" + I + "]); " : s += e(1973) + I + e(1948) : s += " var err = " + I + e(1548); + } else x[e(2338)] ? n ? s += " return data; " : s += e(3005) : s += e(465) + R + e(2839); + return x[e(2338)] && (s += e(323)), s; } - if (x.isTop) { - var T = x[e(2918)], l = x[e(1082)] = 0, d = x[e(1498)] = 0, v = "data"; - if (x[e(2066)] = x.resolve[e(3081)](x[e(2007)][e(1776)](x[e(2212)][e(1425)])), x[e(805)] = x[e(805)] || x.rootId, delete x[e(2918)], x[e(662)] = [""], x[e(1425)][e(2485)] !== void 0 && x.opts[e(2088)] && x.opts[e(2674)]) { - var q = e(1774); - if (x[e(1544)][e(2674)] === e(1635)) x[e(2303)][e(1114)](q); + if (x[e(2338)]) { + var T = x.isTop, l = x[e(1113)] = 0, f = x[e(2585)] = 0, v = e(1506); + if (x[e(1392)] = x[e(855)][e(445)](x[e(1987)][e(1601)](x[e(1224)][e(2238)])), x[e(882)] = x[e(882)] || x.rootId, delete x[e(2338)], x[e(2140)] = [""], x[e(2238)][e(2096)] !== void 0 && x.opts[e(1626)] && x[e(569)][e(2619)]) { + var q = e(2993); + if (x[e(569)][e(2619)] === e(2127)) x[e(872)].warn(q); else throw new Error(q); } - s += " var vErrors = null; ", s += e(617), s += e(1866); + s += e(424), s += e(943), s += e(2667); } else { - var l = x[e(1082)], d = x.dataLevel, v = e(2663) + (d || ""); - if (c && (x[e(805)] = x[e(2457)][e(2120)](x.baseId, c)), n && !x[e(2416)]) throw new Error(e(1860)); - s += e(860) + l + e(683); + var l = x[e(1113)], f = x[e(2585)], v = e(1506) + (f || ""); + if (c && (x[e(882)] = x[e(855)][e(2740)](x[e(882)], c)), n && !x.async) throw new Error(e(2949)); + s += e(1021) + l + e(825); } - var R = "valid" + l, E = !x[e(1544)][e(3009)], C = "", A = "", O, M = x[e(1425)][e(2076)], _ = Array[e(3255)](M); - if (M && x[e(1544)][e(2644)] && x[e(1425)][e(2644)] === !0 && (_ ? M[e(2436)](e(1959)) == -1 && (M = M.concat(e(1959))) : M != e(1959) && (M = [M, "null"], _ = !0)), _ && M.length == 1 && (M = M[0], _ = !1), x[e(1425)][e(885)] && i) { - if (x[e(1544)][e(2430)] == e(902)) throw new Error(e(2191) + x[e(569)] + e(2001)); - x[e(1544)][e(2430)] !== !0 && (i = !1, x.logger[e(1114)]('$ref: keywords ignored in schema at path "' + x[e(569)] + '"')); + var R = e(467) + l, P = !x[e(569)].allErrors, C = "", j = "", D, O = x[e(2238)].type, N = Array[e(500)](O); + if (O && x[e(569)][e(3011)] && x.schema[e(3011)] === !0 && (N ? O[e(2273)](e(2607)) == -1 && (O = O[e(1557)]("null")) : O != e(2607) && (O = [O, e(2607)], N = !0)), N && O[e(1148)] == 1 && (O = O[0], N = !1), x[e(2238)][e(2495)] && i) { + if (x[e(569)][e(2729)] == e(2145)) throw new Error(e(2146) + x.errSchemaPath + e(822)); + x[e(569)][e(2729)] !== !0 && (i = !1, x[e(872)][e(2618)](e(382) + x.errSchemaPath + '"')); } - if (x[e(1425)].$comment && x[e(1544)][e(2786)] && (s += " " + x[e(2996)][e(1096)][e(2786)][e(2427)](x, e(2786))), M) { - if (x[e(1544)].coerceTypes) var N = x[e(1975)].coerceToTypes(x[e(1544)][e(2597)], M); - var z = x[e(2996)][e(2795)][M]; - if (N || _ || z === !0 || z && !ke(z)) { - var h = x[e(1262)] + e(754), m = x[e(569)] + "/type", h = x[e(1262)] + e(754), m = x[e(569)] + "/type", U = _ ? e(1808) : "checkDataType"; - if (s += " if (" + x.util[U](M, v, x[e(1544)].strictNumbers, !0) + ") { ", N) { - var H = e(1236) + l, G = e(3151) + l; - s += e(2675) + H + e(1715) + v + e(1691) + G + " = undefined; ", x[e(1544)].coerceTypes == "array" && (s += e(1754) + H + e(2189) + v + ") && " + v + e(1041) + v + e(2486) + v + "[0]; " + H + e(1715) + v + e(2318) + x[e(1975)][e(1947)](x.schema[e(2076)], v, x.opts[e(1565)]) + ") " + G + e(2486) + v + e(2859)), s += e(1754) + G + e(2071); - var re = N; - if (re) - for (var se, fe = -1, de = re.length - 1; fe < de; ) - se = re[fe += 1], se == e(1361) ? s += e(1408) + H + e(821) + H + e(1385) + G + " = '' + " + v + e(2165) + v + e(956) + G + e(1157) : se == e(2665) || se == e(766) ? (s += " else if (" + H + e(664) + v + " === null || (" + H + e(966) + v + e(3061) + v + e(1517) + v + " ", se == e(766) && (s += e(1953) + v + e(647)), s += ")) " + G + e(1815) + v + "; ") : se == e(3106) ? s += " else if (" + v + e(1197) + v + e(1863) + v + " === null) " + G + e(1467) + v + e(556) + v + e(1814) + G + " = true; " : se == e(1959) ? s += e(1408) + v + " === '' || " + v + " === 0 || " + v + e(2194) + G + e(3278) : x[e(1544)][e(2597)] == "array" && se == e(529) && (s += e(1408) + H + " == 'string' || " + H + e(821) + H + e(664) + v + e(3079) + G + e(2498) + v + e(3243)); - s += e(3214); + if (x[e(2238)][e(1922)] && x[e(569)].$comment && (s += " " + x[e(730)][e(2497)][e(1922)][e(2345)](x, "$comment")), O) { + if (x[e(569)][e(1173)]) var _ = x[e(3036)][e(567)](x[e(569)][e(1173)], O); + var z = x[e(730)].types[O]; + if (_ || N || z === !0 || z && !ke(z)) { + var h = x[e(1913)] + ".type", m = x[e(601)] + e(2534), h = x[e(1913)] + e(1589), m = x[e(601)] + e(2534), U = N ? e(681) : "checkDataType"; + if (s += e(982) + x[e(3036)][U](O, v, x[e(569)][e(832)], !0) + ") { ", _) { + var H = e(372) + l, G = e(2035) + l; + s += e(465) + H + e(2189) + v + e(1644) + G + e(2048), x.opts[e(1173)] == e(1912) && (s += e(982) + H + e(2582) + v + e(2904) + v + e(2823) + v + e(1035) + v + e(2337) + H + e(2189) + v + e(2314) + x.util.checkDataType(x[e(2238)][e(2291)], v, x[e(569)].strictNumbers) + ") " + G + e(1035) + v + "; } "), s += e(982) + G + " !== undefined) ; "; + var ie = _; + if (ie) + for (var ue, le = -1, oe = ie[e(1148)] - 1; le < oe; ) + ue = ie[le += 1], ue == "string" ? s += e(1334) + H + e(2348) + H + e(2195) + G + e(762) + v + e(1323) + v + " === null) " + G + e(2389) : ue == "number" || ue == "integer" ? (s += e(1334) + H + e(1195) + v + " === null || (" + H + e(1199) + v + e(997) + v + e(2738) + v + " ", ue == e(1999) && (s += e(514) + v + " % 1)"), s += e(1756) + G + e(2659) + v + "; ") : ue == e(2903) ? s += " else if (" + v + e(938) + v + e(1602) + v + e(1333) + G + e(2110) + v + e(2254) + v + e(1931) + G + e(2839) : ue == e(2607) ? s += " else if (" + v + e(1219) + v + e(1602) + v + e(2832) + G + e(1191) : x[e(569)].coerceTypes == e(1912) && ue == "array" && (s += e(1334) + H + e(2498) + H + " == 'number' || " + H + e(1195) + v + " == null) " + G + e(1450) + v + e(1327)); + s += e(2344); var k = k || []; - k.push(s), s = "", x[e(559)] !== !1 ? (s += e(1108) + (O || e(2076)) + e(2387) + x[e(1935)] + e(2278) + x[e(1975)][e(1767)](m) + " , params: { type: '", _ ? s += "" + M[e(1592)](",") : s += "" + M, s += "' } ", x[e(1544)][e(1696)] !== !1 && (s += " , message: 'should be ", _ ? s += "" + M[e(1592)](",") : s += "" + M, s += "' "), x[e(1544)][e(2491)] && (s += e(1346) + h + e(2408) + x[e(1262)] + e(1844) + v + " "), s += e(1411)) : s += e(3261); - var P = s; - s = k[e(2900)](), !x[e(2612)] && E ? x[e(2416)] ? s += e(1499) + P + "]); " : s += e(2213) + P + e(702) : s += e(2636) + P + e(2653), s += e(1062) + G + " !== undefined) { "; - var le = d ? e(2663) + (d - 1 || "") : e(2072), Se = d ? x[e(662)][d] : e(1486); - s += " " + v + e(2486) + G + "; ", !d && (s += e(2315) + le + e(2771)), s += " " + le + "[" + Se + e(1254) + G + e(2859); + k[e(3019)](s), s = "", x[e(2324)] !== !1 ? (s += e(2793) + (D || e(2291)) + e(795) + x.errorPath + e(1218) + x[e(3036)][e(782)](m) + e(674), N ? s += "" + O[e(896)](",") : s += "" + O, s += "' } ", x.opts[e(709)] !== !1 && (s += e(1612), N ? s += "" + O.join(",") : s += "" + O, s += "' "), x.opts[e(2330)] && (s += e(1426) + h + e(2366) + x[e(1913)] + e(2960) + v + " "), s += e(2670)) : s += " {} "; + var I = s; + s = k.pop(), !x[e(1629)] && P ? x[e(2538)] ? s += " throw new ValidationError([" + I + e(1420) : s += e(1973) + I + e(1948) : s += e(1533) + I + e(1548), s += " } if (" + G + e(2871); + var fe = f ? e(1506) + (f - 1 || "") : e(1764), Pe = f ? x[e(2140)][f] : e(1708); + s += " " + v + e(1035) + G + "; ", !f && (s += e(1188) + fe + e(2782)), s += " " + fe + "[" + Pe + e(2135) + G + "; } "; } else { var k = k || []; - k[e(3062)](s), s = "", x.createErrors !== !1 ? (s += e(1108) + (O || e(2076)) + e(2387) + x[e(1935)] + " , schemaPath: " + x[e(1975)][e(1767)](m) + e(1616), _ ? s += "" + M[e(1592)](",") : s += "" + M, s += e(871), x[e(1544)][e(1696)] !== !1 && (s += " , message: 'should be ", _ ? s += "" + M[e(1592)](",") : s += "" + M, s += "' "), x[e(1544)][e(2491)] && (s += e(1346) + h + e(2408) + x.schemaPath + e(1844) + v + " "), s += " } ") : s += e(3261); - var P = s; - s = k.pop(), !x[e(2612)] && E ? x[e(2416)] ? s += e(1499) + P + e(2300) : s += e(2213) + P + "]; return false; " : s += e(2636) + P + e(2653); + k[e(3019)](s), s = "", x.createErrors !== !1 ? (s += e(2793) + (D || e(2291)) + e(795) + x.errorPath + e(1218) + x.util.toQuotedString(m) + e(674), N ? s += "" + O[e(896)](",") : s += "" + O, s += "' } ", x.opts[e(709)] !== !1 && (s += e(1612), N ? s += "" + O.join(",") : s += "" + O, s += "' "), x.opts.verbose && (s += e(1426) + h + e(2366) + x[e(1913)] + e(2960) + v + " "), s += e(2670)) : s += e(331); + var I = s; + s = k[e(2906)](), !x.compositeRule && P ? x.async ? s += e(1464) + I + e(1420) : s += e(1973) + I + e(1948) : s += e(1533) + I + e(1548); } - s += e(1411); + s += e(2670); } } - if (x.schema[e(885)] && !i) s += " " + x[e(2996)].all[e(885)][e(2427)](x, e(885)) + " ", E && (s += e(819), T ? s += "0" : s += e(2940) + l, s += e(2834), A += "}"); + if (x.schema.$ref && !i) s += " " + x[e(730)][e(2497)][e(2495)][e(2345)](x, e(2495)) + " ", P && (s += e(1759), T ? s += "0" : s += e(1258) + l, s += e(2719), j += "}"); else { - var _e = x[e(2996)]; - if (_e) { - for (var z, Me = -1, Fe = _e[e(2710)] - 1; Me < Fe; ) - if (z = _e[Me += 1], ke(z)) { - if (z.type && (s += e(1754) + x[e(1975)][e(1947)](z[e(2076)], v, x[e(1544)][e(1565)]) + e(2834)), x[e(1544)][e(2088)]) { - if (z[e(2076)] == e(1304) && x[e(1425)][e(3005)]) { - var g = x[e(1425)][e(3005)], Je = Object[e(2123)](g), D = Je; - if (D) - for (var F, j = -1, J = D[e(2710)] - 1; j < J; ) { - F = D[j += 1]; - var X = g[F]; - if (X[e(2485)] !== void 0) { - var V = v + x[e(1975)][e(3039)](F); - if (x[e(2612)]) { - if (x[e(1544)].strictDefaults) { - var q = e(1087) + V; - if (x[e(1544)][e(2674)] === e(1635)) x[e(2303)][e(1114)](q); + var ye = x[e(730)]; + if (ye) { + for (var z, Le = -1, _e = ye[e(1148)] - 1; Le < _e; ) + if (z = ye[Le += 1], ke(z)) { + if (z.type && (s += e(982) + x[e(3036)][e(1006)](z[e(2291)], v, x.opts[e(832)]) + e(2719)), x[e(569)].useDefaults) { + if (z[e(2291)] == e(2220) && x[e(2238)][e(1117)]) { + var g = x[e(2238)][e(1117)], Je = Object[e(1877)](g), A = Je; + if (A) + for (var F, L = -1, J = A[e(1148)] - 1; L < J; ) { + F = A[L += 1]; + var ee = g[F]; + if (ee[e(2096)] !== void 0) { + var V = v + x.util[e(2528)](F); + if (x.compositeRule) { + if (x[e(569)][e(2619)]) { + var q = e(966) + V; + if (x[e(569)].strictDefaults === e(2127)) x[e(872)][e(2618)](q); else throw new Error(q); } - } else s += e(1754) + V + e(562), x[e(1544)][e(2088)] == e(1800) && (s += e(1887) + V + " === null || " + V + " === '' "), s += e(2368) + V + e(2486), x[e(1544)][e(2088)] == "shared" ? s += " " + x.useDefault(X[e(2485)]) + " " : s += " " + JSON[e(1031)](X[e(2485)]) + " ", s += "; "; + } else s += e(982) + V + e(1461), x[e(569)][e(1626)] == e(689) && (s += " || " + V + " === null || " + V + e(2411)), s += e(866) + V + e(1035), x[e(569)][e(1626)] == e(609) ? s += " " + x[e(2868)](ee[e(2096)]) + " " : s += " " + JSON[e(3038)](ee[e(2096)]) + " ", s += "; "; } } - } else if (z[e(2076)] == e(529) && Array[e(3255)](x[e(1425)].items)) { - var Y = x.schema.items; - if (Y) { - for (var X, fe = -1, ce = Y[e(2710)] - 1; fe < ce; ) - if (X = Y[fe += 1], X.default !== void 0) { - var V = v + "[" + fe + "]"; - if (x[e(2612)]) { - if (x[e(1544)][e(2674)]) { - var q = e(1087) + V; - if (x[e(1544)][e(2674)] === e(1635)) x[e(2303)].warn(q); + } else if (z.type == e(1912) && Array[e(500)](x[e(2238)].items)) { + var X = x[e(2238)][e(1603)]; + if (X) { + for (var ee, le = -1, ce = X.length - 1; le < ce; ) + if (ee = X[le += 1], ee[e(2096)] !== void 0) { + var V = v + "[" + le + "]"; + if (x[e(1629)]) { + if (x[e(569)][e(2619)]) { + var q = e(966) + V; + if (x[e(569)][e(2619)] === "log") x[e(872)].warn(q); else throw new Error(q); } - } else s += e(1754) + V + e(562), x[e(1544)][e(2088)] == e(1800) && (s += e(1887) + V + e(2187) + V + " === '' "), s += e(2368) + V + e(2486), x[e(1544)][e(2088)] == e(2844) ? s += " " + x[e(1117)](X[e(2485)]) + " " : s += " " + JSON[e(1031)](X[e(2485)]) + " ", s += "; "; + } else s += " if (" + V + e(1461), x[e(569)][e(1626)] == e(689) && (s += e(2312) + V + e(949) + V + e(2411)), s += " ) " + V + e(1035), x[e(569)][e(1626)] == e(609) ? s += " " + x[e(2868)](ee[e(2096)]) + " " : s += " " + JSON[e(3038)](ee[e(2096)]) + " ", s += "; "; } } } } - var oe = z[e(2293)]; - if (oe) { - for (var te, Le = -1, Ae = oe[e(2710)] - 1; Le < Ae; ) - if (te = oe[Le += 1], Ge(te)) { - var ze = te[e(2427)](x, te[e(2442)], z[e(2076)]); - ze && (s += " " + ze + " ", E && (C += "}")); + var se = z[e(1354)]; + if (se) { + for (var te, Me = -1, Ae = se[e(1148)] - 1; Me < Ae; ) + if (te = se[Me += 1], Ge(te)) { + var ze = te[e(2345)](x, te[e(2396)], z[e(2291)]); + ze && (s += " " + ze + " ", P && (C += "}")); } } - if (E && (s += " " + C + " ", C = ""), z[e(2076)] && (s += e(1411), M && M === z[e(2076)] && !N)) { - s += " else { "; - var h = x[e(1262)] + e(754), m = x[e(569)] + e(506), k = k || []; - k[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += " { keyword: '" + (O || "type") + "' , dataPath: (dataPath || '') + " + x[e(1935)] + e(2278) + x[e(1975)][e(1767)](m) + e(1616), _ ? s += "" + M.join(",") : s += "" + M, s += e(871), x[e(1544)].messages !== !1 && (s += e(2991), _ ? s += "" + M[e(1592)](",") : s += "" + M, s += "' "), x[e(1544)][e(2491)] && (s += e(1346) + h + e(2408) + x[e(1262)] + e(1844) + v + " "), s += e(1411)) : s += e(3261); - var P = s; - s = k[e(2900)](), !x[e(2612)] && E ? x[e(2416)] ? s += e(1499) + P + e(2300) : s += " validate.errors = [" + P + e(702) : s += e(2636) + P + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", s += e(1411); + if (P && (s += " " + C + " ", C = ""), z[e(2291)] && (s += e(2670), O && O === z[e(2291)] && !_)) { + s += e(401); + var h = x[e(1913)] + e(1589), m = x[e(601)] + e(2534), k = k || []; + k[e(3019)](s), s = "", x[e(2324)] !== !1 ? (s += e(2793) + (D || e(2291)) + e(795) + x[e(1115)] + " , schemaPath: " + x[e(3036)][e(782)](m) + e(674), N ? s += "" + O[e(896)](",") : s += "" + O, s += e(1390), x[e(569)][e(709)] !== !1 && (s += e(1612), N ? s += "" + O[e(896)](",") : s += "" + O, s += "' "), x[e(569)][e(2330)] && (s += " , schema: validate.schema" + h + e(2366) + x[e(1913)] + e(2960) + v + " "), s += " } ") : s += e(331); + var I = s; + s = k.pop(), !x.compositeRule && P ? x[e(2538)] ? s += " throw new ValidationError([" + I + "]); " : s += " validate.errors = [" + I + e(1948) : s += e(1533) + I + e(1548), s += e(2670); } - E && (s += e(2377), T ? s += "0" : s += e(2940) + l, s += e(2834), A += "}"); + P && (s += e(1028), T ? s += "0" : s += e(1258) + l, s += e(2719), j += "}"); } } } - E && (s += " " + A + " "), T ? (n ? (s += " if (errors === 0) return data; ", s += " else throw new ValidationError(vErrors); ") : (s += e(2706), s += e(1195)), s += e(2373)) : s += e(2675) + R + e(2151) + l + ";"; + P && (s += " " + j + " "), T ? (n ? (s += e(1435), s += e(3040)) : (s += e(917), s += e(2256)), s += e(1411)) : s += " var " + R + e(606) + l + ";"; function ke(Qe) { - const Oe = e; - for (var He = Qe[Oe(2293)], Ye = 0; Ye < He[Oe(2710)]; Ye++) if (Ge(He[Ye])) return !0; + for (var He = Qe[e(1354)], Ye = 0; Ye < He.length; Ye++) if (Ge(He[Ye])) return !0; } function Ge(Qe) { - return x[e(1425)][Qe.keyword] !== void 0 || Qe.implements && n0(Qe); + const Oe = e; + return x[Oe(2238)][Qe[Oe(2396)]] !== void 0 || Qe[Oe(847)] && n0(Qe); } function n0(Qe) { const Oe = e; - for (var He = Qe[Oe(2673)], Ye = 0; Ye < He[Oe(2710)]; Ye++) if (x[Oe(1425)][He[Ye]] !== void 0) return !0; + for (var He = Qe[Oe(847)], Ye = 0; Ye < He[Oe(1148)]; Ye++) if (x[Oe(2238)][He[Ye]] !== void 0) return !0; } return s; }), st; } var nt, pr; -function i2() { +function rc() { const o = a; if (pr) return nt; pr = 1; - var x = da(), t = W0(), r = ha(), e = vn(), s = wn(), n = t[o(3159)], i = la(), c = r[o(1434)]; + var x = fa(), t = B0(), r = ha(), e = mn(), s = bn(), n = t.ucs2length, i = la(), c = r[o(1360)]; nt = u; - function u(P, T, q, R) { - const E = o; - var C = this, A = this._opts, O = [void 0], M = {}, _ = [], N = {}, z = [], U = {}, H = []; - T = T || { schema: P, refVal: O, refs: M }; - var G = f[E(1522)](this, P, T, R), re = this[E(1837)][G[E(2230)]]; - if (G[E(817)]) return re[E(1739)] = Se; - var se = this._formats, fe = this.RULES; + function u(I, T, q, R) { + const P = o; + var C = this, j = this._opts, D = [void 0], O = {}, N = [], _ = {}, z = [], U = {}, H = []; + T = T || { schema: I, refVal: D, refs: O }; + var G = d[P(2689)](this, I, T, R), ie = this[P(2045)][G[P(2688)]]; + if (G[P(2072)]) return ie[P(2825)] = Pe; + var ue = this[P(2754)], le = this.RULES; try { - var de = _e(P, T, q, R); - re[E(3181)] = de; - var le = re[E(1739)]; - return le && (le[E(1425)] = de.schema, le[E(2800)] = null, le.refs = de[E(588)], le[E(1269)] = de.refVal, le.root = de.root, le[E(1101)] = de[E(1101)], A[E(986)] && (le.source = de.source)), de; + var oe = ye(I, T, q, R); + ie[P(2029)] = oe; + var fe = ie[P(2825)]; + return fe && (fe.schema = oe[P(2238)], fe.errors = null, fe[P(1515)] = oe[P(1515)], fe[P(987)] = oe[P(987)], fe[P(1224)] = oe[P(1224)], fe[P(1611)] = oe[P(1611)], j[P(1887)] && (fe[P(484)] = oe[P(484)])), oe; } finally { - l[E(1522)](this, P, T, R); + l.call(this, I, T, R); } - function Se() { - const V = E; - var Y = re.validate, ce = Y[V(2692)](this, arguments); - return Se[V(2800)] = Y[V(2800)], ce; + function Pe() { + const V = P; + var X = ie[V(2029)], ce = X[V(1046)](this, arguments); + return Pe[V(1139)] = X[V(1139)], ce; } - function _e(V, Y, ce, oe) { - const te = E; - var Le = !Y || Y && Y[te(1425)] == V; - if (Y.schema != T[te(1425)]) return u[te(1522)](C, V, Y, ce, oe); - var Ae = V[te(1101)] === !0, ze = s({ isTop: !0, schema: V, isRoot: Le, baseId: oe, root: Y, schemaPath: "", errSchemaPath: "#", errorPath: '""', MissingRefError: r[te(2003)], RULES: fe, validate: s, util: t, resolve: x, resolveRef: Me, usePattern: j, useDefault: J, useCustomRule: X, opts: A, formats: se, logger: C[te(2303)], self: C }); - ze = k(O, m) + k(_, g) + k(z, h) + k(H, v) + ze, A[te(1279)] && (ze = A[te(1279)](ze, V)); + function ye(V, X, ce, se) { + const te = P; + var Me = !X || X && X[te(2238)] == V; + if (X[te(2238)] != T[te(2238)]) return u[te(2689)](C, V, X, ce, se); + var Ae = V[te(1611)] === !0, ze = s({ isTop: !0, schema: V, isRoot: Me, baseId: se, root: X, schemaPath: "", errSchemaPath: "#", errorPath: '""', MissingRefError: r[te(1695)], RULES: le, validate: s, util: t, resolve: x, resolveRef: Le, usePattern: L, useDefault: J, useCustomRule: ee, opts: j, formats: ue, logger: C.logger, self: C }); + ze = k(D, m) + k(N, g) + k(z, h) + k(H, v) + ze, j[te(1478)] && (ze = j[te(1478)](ze, V)); var ke; try { - var Ge = new Function(te(2007), "RULES", te(3155), te(2212), "refVal", te(1573), te(1912), te(495), te(3159), te(1995), ze); - ke = Ge(C, fe, se, T, O, z, H, i, n, c), O[0] = ke; + var Ge = new Function(te(1987), te(730), te(1882), te(1224), te(987), te(1019), te(2259), te(542), "ucs2length", "ValidationError", ze); + ke = Ge(C, le, ue, T, D, z, H, i, n, c), D[0] = ke; } catch (n0) { - throw C[te(2303)].error(te(2137), ze), n0; + throw C.logger[te(1491)]("Error compiling schema, function code:", ze), n0; } - return ke.schema = V, ke[te(2800)] = null, ke[te(588)] = M, ke[te(1269)] = O, ke.root = Le ? ke : Y, Ae && (ke.$async = !0), A[te(986)] === !0 && (ke[te(1038)] = { code: ze, patterns: _, defaults: z }), ke; + return ke.schema = V, ke[te(1139)] = null, ke[te(1515)] = O, ke.refVal = D, ke[te(1224)] = Me ? ke : X, Ae && (ke[te(1611)] = !0), j[te(1887)] === !0 && (ke[te(484)] = { code: ze, patterns: N, defaults: z }), ke; } - function Me(V, Y, ce) { - const oe = E; - Y = x[oe(2120)](V, Y); - var te = M[Y], Le, Ae; - if (te !== void 0) return Le = O[te], Ae = oe(2022) + te + "]", F(Le, Ae); - if (!ce && T[oe(588)]) { - var ze = T[oe(588)][Y]; - if (ze !== void 0) return Le = T.refVal[ze], Ae = Fe(Y, Le), F(Le, Ae); + function Le(V, X, ce) { + const se = P; + X = x[se(2740)](V, X); + var te = O[X], Me, Ae; + if (te !== void 0) return Me = D[te], Ae = se(1289) + te + "]", F(Me, Ae); + if (!ce && T[se(1515)]) { + var ze = T[se(1515)][X]; + if (ze !== void 0) return Me = T[se(987)][ze], Ae = _e(X, Me), F(Me, Ae); } - Ae = Fe(Y); - var ke = x[oe(1522)](C, _e, T, Y); + Ae = _e(X); + var ke = x[se(2689)](C, ye, T, X); if (ke === void 0) { - var Ge = q && q[Y]; - Ge && (ke = x[oe(3126)](Ge, A[oe(2998)]) ? Ge : u[oe(1522)](C, Ge, T, q, V)); + var Ge = q && q[X]; + Ge && (ke = x.inlineRef(Ge, j[se(1301)]) ? Ge : u[se(2689)](C, Ge, T, q, V)); } - if (ke === void 0) Je(Y); - else return D(Y, ke), F(ke, Ae); + if (ke === void 0) Je(X); + else return A(X, ke), F(ke, Ae); } - function Fe(V, Y) { - const ce = E; - var oe = O[ce(2710)]; - return O[oe] = Y, M[V] = oe, ce(1269) + oe; + function _e(V, X) { + const ce = P; + var se = D[ce(1148)]; + return D[se] = X, O[V] = se, ce(987) + se; } function Je(V) { - delete M[V]; + delete O[V]; } - function D(V, Y) { - var ce = M[V]; - O[ce] = Y; + function A(V, X) { + var ce = O[V]; + D[ce] = X; } - function F(V, Y) { - return typeof V == "object" || typeof V == "boolean" ? { code: Y, schema: V, inline: !0 } : { code: Y, $async: V && !!V[E(1101)] }; + function F(V, X) { + return typeof V == "object" || typeof V == P(2903) ? { code: X, schema: V, inline: !0 } : { code: X, $async: V && !!V.$async }; } - function j(V) { - const Y = E; - var ce = N[V]; - return ce === void 0 && (ce = N[V] = _.length, _[ce] = V), Y(526) + ce; + function L(V) { + const X = P; + var ce = _[V]; + return ce === void 0 && (ce = _[V] = N[X(1148)], N[ce] = V), X(2248) + ce; } function J(V) { - const Y = E; + const X = P; switch (typeof V) { - case Y(3106): - case Y(2665): + case X(2903): + case X(867): return "" + V; - case Y(1361): + case X(2028): return t.toQuotedString(V); - case Y(1304): - if (V === null) return Y(1959); - var ce = e(V), oe = U[ce]; - return oe === void 0 && (oe = U[ce] = z[Y(2710)], z[oe] = V), "default" + oe; + case X(2220): + if (V === null) return "null"; + var ce = e(V), se = U[ce]; + return se === void 0 && (se = U[ce] = z[X(1148)], z[se] = V), X(2096) + se; } } - function X(V, Y, ce, oe) { - const te = E; - if (C[te(1068)].validateSchema !== !1) { - var Le = V[te(1686)][te(1110)]; - if (Le && !Le.every(function(Ye) { - const M0 = te; - return Object[M0(2587)][M0(1315)].call(ce, Ye); - })) throw new Error(te(2092) + Le[te(1592)](",")); - var Ae = V[te(1686)][te(2605)]; + function ee(V, X, ce, se) { + const te = P; + if (C[te(1157)][te(2951)] !== !1) { + var Me = V[te(528)][te(600)]; + if (Me && !Me[te(2077)](function(Ye) { + return Object[te(1706)].hasOwnProperty.call(ce, Ye); + })) throw new Error(te(1978) + Me[te(896)](",")); + var Ae = V[te(528)][te(2951)]; if (Ae) { - var ze = Ae(Y); + var ze = Ae(X); if (!ze) { - var ke = te(3113) + C[te(2766)](Ae.errors); - if (C[te(1068)][te(2605)] == te(1635)) C[te(2303)][te(490)](ke); + var ke = "keyword schema is invalid: " + C[te(2215)](Ae[te(1139)]); + if (C[te(1157)][te(2951)] == "log") C.logger[te(1491)](ke); else throw new Error(ke); } } } - var Ge = V[te(1686)][te(1835)], n0 = V[te(1686)].inline, Qe = V[te(1686)].macro, Oe; - if (Ge) Oe = Ge.call(C, Y, ce, oe); + var Ge = V.definition.compile, n0 = V[te(528)][te(2204)], Qe = V.definition[te(1711)], Oe; + if (Ge) Oe = Ge[te(2689)](C, X, ce, se); else if (Qe) - Oe = Qe[te(1522)](C, Y, ce, oe), A[te(2605)] !== !1 && C[te(2605)](Oe, !0); - else if (n0) Oe = n0.call(C, oe, V[te(2442)], Y, ce); - else if (Oe = V[te(1686)][te(3181)], !Oe) return; - if (Oe === void 0) throw new Error('custom keyword "' + V[te(2442)] + '"failed to compile'); - var He = H[te(2710)]; - return H[He] = Oe, { code: te(1874) + He, validate: Oe }; + Oe = Qe[te(2689)](C, X, ce, se), j[te(2951)] !== !1 && C[te(2951)](Oe, !0); + else if (n0) Oe = n0[te(2689)](C, se, V[te(2396)], X, ce); + else if (Oe = V.definition[te(2029)], !Oe) return; + if (Oe === void 0) throw new Error('custom keyword "' + V.keyword + te(1699)); + var He = H.length; + return H[He] = Oe, { code: "customRule" + He, validate: Oe }; } } - function f(P, T, q) { + function d(I, T, q) { const R = o; - var E = d[R(1522)](this, P, T, q); - return E >= 0 ? { index: E, compiling: !0 } : (E = this[R(1837)][R(2710)], this[R(1837)][E] = { schema: P, root: T, baseId: q }, { index: E, compiling: !1 }); + var P = f[R(2689)](this, I, T, q); + return P >= 0 ? { index: P, compiling: !0 } : (P = this[R(2045)].length, this[R(2045)][P] = { schema: I, root: T, baseId: q }, { index: P, compiling: !1 }); } - function l(P, T, q) { + function l(I, T, q) { const R = o; - var E = d[R(1522)](this, P, T, q); - E >= 0 && this._compilations[R(2881)](E, 1); + var P = f.call(this, I, T, q); + P >= 0 && this[R(2045)][R(2176)](P, 1); } - function d(P, T, q) { + function f(I, T, q) { const R = o; - for (var E = 0; E < this[R(1837)][R(2710)]; E++) { - var C = this[R(1837)][E]; - if (C[R(1425)] == P && C.root == T && C.baseId == q) return E; + for (var P = 0; P < this._compilations.length; P++) { + var C = this[R(2045)][P]; + if (C[R(2238)] == I && C.root == T && C[R(882)] == q) return P; } return -1; } - function g(P, T) { + function g(I, T) { const q = o; - return "var pattern" + P + q(2949) + t[q(1767)](T[P]) + ");"; + return q(2450) + I + q(2757) + t[q(782)](T[I]) + ");"; } - function h(P) { + function h(I) { const T = o; - return T(858) + P + T(1813) + P + "];"; + return T(1290) + I + T(1269) + I + "];"; } - function m(P, T) { + function m(I, T) { + return T[I] === void 0 ? "" : "var refVal" + I + " = refVal[" + I + "];"; + } + function v(I) { + const T = o; + return T(2264) + I + T(2367) + I + "];"; + } + function k(I, T) { const q = o; - return T[P] === void 0 ? "" : q(2052) + P + q(2413) + P + "];"; - } - function v(P) { - return "var customRule" + P + " = customRules[" + P + "];"; - } - function k(P, T) { - const q = o; - if (!P.length) return ""; - for (var R = "", E = 0; E < P[q(2710)]; E++) R += T(E, P); + if (!I[q(1148)]) return ""; + for (var R = "", P = 0; P < I[q(1148)]; P++) R += T(P, I); return R; } return nt; } var ot = { exports: {} }, mr; -function c2() { +function sc() { const o = a; - if (mr) return ot[o(732)]; + if (mr) return ot[o(1229)]; mr = 1; - var x = ot[o(732)] = function() { + var x = ot[o(1229)] = function() { const r = o; - this[r(811)] = {}; + this[r(1971)] = {}; }; - return x.prototype[o(1142)] = function(r, e) { + return x[o(1706)][o(1621)] = function(r, e) { const s = o; - this[s(811)][r] = e; - }, x[o(2587)][o(674)] = function(r) { - return this._cache[r]; - }, x[o(2587)].del = function(r) { + this[s(1971)][r] = e; + }, x[o(1706)][o(1507)] = function(r) { + return this[o(1971)][r]; + }, x[o(1706)][o(1615)] = function(r) { const e = o; - delete this[e(811)][r]; - }, x[o(2587)].clear = function() { + delete this[e(1971)][r]; + }, x[o(1706)].clear = function() { const r = o; - this[r(811)] = {}; - }, ot[o(732)]; + this[r(1971)] = {}; + }, ot.exports; } var it, br; -function u2() { - const o = a; +function nc() { if (br) return it; br = 1; - var x = W0(), t = /^(\d\d\d\d)-(\d\d)-(\d\d)$/, r = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], e = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i, s = /^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i, n = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i, i = /^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i, c = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i, u = /^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i, f = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i, l = /^(?:\/(?:[^~/]|~0|~1)*)*$/, d = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i, g = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/; - it = h; - function h(A) { - const O = K; - return A = A == O(2977) ? "full" : O(2666), x[O(2615)](h[A]); + var o = B0(), x = /^(\d\d\d\d)-(\d\d)-(\d\d)$/, t = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], r = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i, e = /^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i, s = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i, n = /^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i, i = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i, c = /^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i, u = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i, d = /^(?:\/(?:[^~/]|~0|~1)*)*$/, l = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i, f = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/; + it = g; + function g(C) { + const j = Z; + return C = C == j(412) ? j(412) : j(659), o[j(1051)](g[C]); } - h[o(2666)] = { date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/, time: /^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, "date-time": /^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i, "uri-reference": /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i, "uri-template": c, url: u, email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i, hostname: s, ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, regex: C, uuid: f, "json-pointer": l, "json-pointer-uri-fragment": d, "relative-json-pointer": g }, h[o(2977)] = { date: v, time: k, "date-time": T, uri: R, "uri-reference": i, "uri-template": c, url: u, email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i, hostname: s, ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, regex: C, uuid: f, "json-pointer": l, "json-pointer-uri-fragment": d, "relative-json-pointer": g }; - function m(A) { - return A % 4 === 0 && (A % 100 !== 0 || A % 400 === 0); + g.fast = { date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/, time: /^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, "date-time": /^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i, "uri-reference": /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i, "uri-template": i, url: c, email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i, hostname: e, ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, regex: P, uuid: u, "json-pointer": d, "json-pointer-uri-fragment": l, "relative-json-pointer": f }, g.full = { date: m, time: v, "date-time": I, uri: q, "uri-reference": n, "uri-template": i, url: c, email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i, hostname: e, ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, regex: P, uuid: u, "json-pointer": d, "json-pointer-uri-fragment": l, "relative-json-pointer": f }; + function h(C) { + return C % 4 === 0 && (C % 100 !== 0 || C % 400 === 0); } - function v(A) { - var O = A.match(t); + function m(C) { + var D = C[Z(789)](x); + if (!D) return !1; + var O = +D[1], N = +D[2], _ = +D[3]; + return N >= 1 && N <= 12 && _ >= 1 && _ <= (N == 2 && h(O) ? 29 : t[N]); + } + function v(C, j) { + var O = C[Z(789)](r); if (!O) return !1; - var M = +O[1], _ = +O[2], N = +O[3]; - return _ >= 1 && _ <= 12 && N >= 1 && N <= (_ == 2 && m(M) ? 29 : r[_]); + var N = O[1], _ = O[2], z = O[3], U = O[5]; + return (N <= 23 && _ <= 59 && z <= 59 || N == 23 && _ == 59 && z == 60) && (!j || U); } - function k(A, O) { - var _ = A[o(2314)](e); - if (!_) return !1; - var N = _[1], z = _[2], U = _[3], H = _[5]; - return (N <= 23 && z <= 59 && U <= 59 || N == 23 && z == 59 && U == 60) && (!O || H); + var k = /t|\s/i; + function I(C) { + var D = C[Z(1958)](k); + return D.length == 2 && m(D[0]) && v(D[1], !0); } - var P = /t|\s/i; - function T(A) { - const O = o; - var M = A[O(3263)](P); - return M[O(2710)] == 2 && v(M[0]) && k(M[1], !0); + var T = /\/|:/; + function q(C) { + const j = Z; + return T.test(C) && s[j(1531)](C); } - var q = /\/|:/; - function R(A) { - const O = o; - return q.test(A) && n[O(2346)](A); - } - var E = /[^\\]\\Z/; - function C(A) { - if (E[o(2346)](A)) return !1; + var R = /[^\\]\\Z/; + function P(C) { + if (R[Z(1531)](C)) return !1; try { - return new RegExp(A), !0; + return new RegExp(C), !0; } catch { return !1; } @@ -6178,763 +6177,762 @@ function u2() { return it; } var ct, gr; -function f2() { +function oc() { return gr || (gr = 1, ct = function(x, t, r) { - const e = K; - var s = " ", n = x[e(1082)], i = x[e(1498)], c = x[e(1425)][t], u = x[e(569)] + "/" + t, f = !x[e(1544)][e(3009)], l = e(2663) + (i || ""), d = e(1122) + n, g, h; - if (c == "#" || c == "#/") x[e(2758)] ? (g = x.async, h = e(3181)) : (g = x[e(2212)].schema[e(1101)] === !0, h = e(750)); + const e = Z; + var s = " ", n = x[e(1113)], i = x[e(2585)], c = x[e(2238)][t], u = x[e(601)] + "/" + t, d = !x[e(569)][e(2354)], l = e(1506) + (i || ""), f = e(467) + n, g, h; + if (c == "#" || c == "#/") x[e(2463)] ? (g = x[e(2538)], h = e(2029)) : (g = x[e(1224)][e(2238)][e(1611)] === !0, h = e(1910)); else { - var m = x[e(1215)](x[e(805)], c, x.isRoot); + var m = x[e(1e3)](x[e(882)], c, x.isRoot); if (m === void 0) { - var v = x[e(730)][e(1044)](x.baseId, c); - if (x.opts.missingRefs == e(902)) { - x.logger[e(490)](v); + var v = x[e(2465)].message(x.baseId, c); + if (x[e(569)][e(1641)] == e(2145)) { + x.logger[e(1491)](v); var k = k || []; - k[e(3062)](s), s = "", x.createErrors !== !1 ? (s += e(1108) + "$ref" + e(2387) + x[e(1935)] + e(2278) + x[e(1975)][e(1767)](u) + " , params: { ref: '" + x.util[e(1265)](c) + e(871), x[e(1544)].messages !== !1 && (s += " , message: 'can\\'t resolve reference " + x[e(1975)][e(1265)](c) + "' "), x[e(1544)][e(2491)] && (s += e(2020) + x[e(1975)][e(1767)](c) + e(2408) + x[e(1262)] + e(1844) + l + " "), s += e(1411)) : s += e(3261); - var P = s; - s = k[e(2900)](), !x[e(2612)] && f ? x[e(2416)] ? s += e(1499) + P + "]); " : s += e(2213) + P + e(702) : s += e(2636) + P + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", f && (s += e(2236)); - } else if (x[e(1544)][e(2851)] == e(2069)) x[e(2303)].warn(v), f && (s += e(523)); - else throw new x[e(730)](x[e(805)], c, v); - } else if (m.inline) { - var T = x[e(1975)].copy(x); - T.level++; - var q = e(1122) + T[e(1082)]; - T[e(1425)] = m[e(1425)], T[e(1262)] = "", T.errSchemaPath = c; - var R = x[e(3181)](T)[e(1521)](/validate\.schema/g, m[e(2427)]); - s += " " + R + " ", f && (s += " if (" + q + e(2834)); - } else g = m.$async === !0 || x.async && m[e(1101)] !== !1, h = m[e(2427)]; + k[e(3019)](s), s = "", x[e(2324)] !== !1 ? (s += e(2793) + "$ref" + e(795) + x.errorPath + e(1218) + x.util.toQuotedString(u) + " , params: { ref: '" + x[e(3036)].escapeQuotes(c) + e(1390), x[e(569)][e(709)] !== !1 && (s += e(1296) + x[e(3036)].escapeQuotes(c) + "' "), x[e(569)][e(2330)] && (s += " , schema: " + x[e(3036)].toQuotedString(c) + e(2366) + x[e(1913)] + e(2960) + l + " "), s += e(2670)) : s += e(331); + var I = s; + s = k.pop(), !x[e(1629)] && d ? x.async ? s += " throw new ValidationError([" + I + "]); " : s += e(1973) + I + e(1948) : s += " var err = " + I + e(1548), d && (s += e(2778)); + } else if (x[e(569)][e(1641)] == e(2629)) x[e(872)][e(2618)](v), d && (s += " if (true) { "); + else throw new x.MissingRefError(x.baseId, c, v); + } else if (m[e(2204)]) { + var T = x[e(3036)].copy(x); + T[e(1113)]++; + var q = e(467) + T[e(1113)]; + T[e(2238)] = m[e(2238)], T[e(1913)] = "", T[e(601)] = c; + var R = x[e(2029)](T).replace(/validate\.schema/g, m[e(2345)]); + s += " " + R + " ", d && (s += " if (" + q + ") { "); + } else g = m[e(1611)] === !0 || x[e(2538)] && m[e(1611)] !== !1, h = m[e(2345)]; } if (h) { var k = k || []; - k.push(s), s = "", x.opts[e(2698)] ? s += " " + h + e(2681) : s += " " + h + "( ", s += " " + l + ", (dataPath || '')", x.errorPath != '""' && (s += e(2693) + x.errorPath); - var E = i ? "data" + (i - 1 || "") : "parentData", C = i ? x[e(662)][i] : e(1486); - s += e(3135) + E + e(3135) + C + e(2015); - var A = s; - if (s = k.pop(), g) { - if (!x[e(2416)]) throw new Error(e(1965)); - f && (s += " var " + d + "; "), s += e(1867) + A + "; ", f && (s += " " + d + e(2411)), s += e(2870), f && (s += " " + d + " = false; "), s += e(1411), f && (s += " if (" + d + ") { "); - } else s += " if (!" + A + e(1856) + h + e(2694) + h + ".errors); errors = vErrors.length; } ", f && (s += e(1961)); + k[e(3019)](s), s = "", x.opts.passContext ? s += " " + h + ".call(this, " : s += " " + h + "( ", s += " " + l + e(2663), x[e(1115)] != '""' && (s += e(2608) + x.errorPath); + var P = i ? e(1506) + (i - 1 || "") : e(1764), C = i ? x[e(2140)][i] : "parentDataProperty"; + s += e(1796) + P + e(1796) + C + e(2861); + var j = s; + if (s = k[e(2906)](), g) { + if (!x[e(2538)]) throw new Error("async schema referenced by sync schema"); + d && (s += e(465) + f + "; "), s += e(2210) + j + "; ", d && (s += " " + f + e(2839)), s += e(2236), d && (s += " " + f + e(1734)), s += e(2670), d && (s += e(982) + f + e(2719)); + } else s += " if (!" + j + ") { if (vErrors === null) vErrors = " + h + e(395) + h + e(738), d && (s += e(401)); } return s; }), ct; } var ut, yr; -function l2() { +function ic() { return yr || (yr = 1, ut = function(x, t, r) { - const e = K; - var s = " ", n = x.schema[t], i = x.schemaPath + x.util[e(3039)](t), c = x[e(569)] + "/" + t, u = !x.opts[e(3009)], f = x[e(1975)].copy(x), l = ""; - f[e(1082)]++; - var d = "valid" + f[e(1082)], g = f.baseId, h = !0, m = n; + const e = Z; + var s = " ", n = x[e(2238)][t], i = x[e(1913)] + x.util[e(2528)](t), c = x[e(601)] + "/" + t, u = !x[e(569)][e(2354)], d = x[e(3036)].copy(x), l = ""; + d[e(1113)]++; + var f = "valid" + d.level, g = d[e(882)], h = !0, m = n; if (m) - for (var v, k = -1, P = m[e(2710)] - 1; k < P; ) - v = m[k += 1], (x.opts.strictKeywords ? typeof v == e(1304) && Object[e(2123)](v)[e(2710)] > 0 || v === !1 : x[e(1975)][e(1733)](v, x[e(2996)][e(1096)])) && (h = !1, f.schema = v, f[e(1262)] = i + "[" + k + "]", f.errSchemaPath = c + "/" + k, s += " " + x[e(3181)](f) + " ", f[e(805)] = g, u && (s += e(1754) + d + ") { ", l += "}")); - return u && (h ? s += " if (true) { " : s += " " + l[e(1387)](0, -1) + " "), s; + for (var v, k = -1, I = m[e(1148)] - 1; k < I; ) + v = m[k += 1], (x[e(569)][e(493)] ? typeof v == e(2220) && Object[e(1877)](v).length > 0 || v === !1 : x.util[e(793)](v, x[e(730)][e(2497)])) && (h = !1, d[e(2238)] = v, d[e(1913)] = i + "[" + k + "]", d[e(601)] = c + "/" + k, s += " " + x.validate(d) + " ", d[e(882)] = g, u && (s += e(982) + f + ") { ", l += "}")); + return u && (h ? s += e(1857) : s += " " + l[e(1908)](0, -1) + " "), s; }), ut; } -var ft, vr; -function d2() { - return vr || (vr = 1, ft = function(x, t, r) { - const e = K; - var s = " ", n = x.level, i = x[e(1498)], c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)][e(3039)](t), f = x[e(569)] + "/" + t, l = !x[e(1544)][e(3009)], d = "data" + (i || ""), g = e(1122) + n, h = e(1870) + n, m = x[e(1975)][e(2615)](x), v = ""; - m.level++; - var k = e(1122) + m[e(1082)], P = c[e(576)](function(O) { - const M = e; - return x.opts[M(868)] ? typeof O == M(1304) && Object[M(2123)](O)[M(2710)] > 0 || O === !1 : x[M(1975)].schemaHasRules(O, x[M(2996)][M(1096)]); +var dt, vr; +function cc() { + return vr || (vr = 1, dt = function(x, t, r) { + const e = Z; + var s = " ", n = x[e(1113)], i = x.dataLevel, c = x[e(2238)][t], u = x[e(1913)] + x[e(3036)][e(2528)](t), d = x[e(601)] + "/" + t, l = !x.opts[e(2354)], f = "data" + (i || ""), g = e(467) + n, h = "errs__" + n, m = x.util[e(1051)](x), v = ""; + m[e(1113)]++; + var k = e(467) + m.level, I = c[e(2077)](function(D) { + const O = e; + return x[O(569)].strictKeywords ? typeof D == O(2220) && Object[O(1877)](D)[O(1148)] > 0 || D === !1 : x[O(3036)][O(793)](D, x[O(730)].all); }); - if (P) { - var T = m[e(805)]; - s += " var " + h + e(905) + g + " = false; "; - var q = x[e(2612)]; - x.compositeRule = m[e(2612)] = !0; + if (I) { + var T = m.baseId; + s += e(465) + h + e(2827) + g + e(2751); + var q = x[e(1629)]; + x[e(1629)] = m.compositeRule = !0; var R = c; if (R) - for (var E, C = -1, A = R[e(2710)] - 1; C < A; ) - E = R[C += 1], m[e(1425)] = E, m[e(1262)] = u + "[" + C + "]", m[e(569)] = f + "/" + C, s += " " + x[e(3181)](m) + " ", m[e(805)] = T, s += " " + g + e(2486) + g + e(1887) + k + "; if (!" + g + e(2834), v += "}"; - x[e(2612)] = m[e(2612)] = q, s += " " + v + e(1102) + g + e(2240), x[e(559)] !== !1 ? (s += " { keyword: '" + e(2122) + e(2387) + x[e(1935)] + " , schemaPath: " + x[e(1975)][e(1767)](f) + e(1676), x[e(1544)].messages !== !1 && (s += " , message: 'should match some schema in anyOf' "), x.opts[e(2491)] && (s += " , schema: validate.schema" + u + " , parentSchema: validate.schema" + x[e(1262)] + " , data: " + d + " "), s += e(1411)) : s += e(3261), s += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", !x[e(2612)] && l && (x[e(2416)] ? s += e(903) : s += e(1021)), s += " } else { errors = " + h + e(1606) + h + ") vErrors.length = " + h + "; else vErrors = null; } ", x.opts[e(3009)] && (s += e(1411)); - } else l && (s += e(523)); + for (var P, C = -1, j = R[e(1148)] - 1; C < j; ) + P = R[C += 1], m.schema = P, m[e(1913)] = u + "[" + C + "]", m[e(601)] = d + "/" + C, s += " " + x[e(2029)](m) + " ", m[e(882)] = T, s += " " + g + e(1035) + g + e(2312) + k + e(2542) + g + e(2719), v += "}"; + x[e(1629)] = m[e(1629)] = q, s += " " + v + e(543) + g + e(1425), x.createErrors !== !1 ? (s += e(2793) + e(2395) + e(795) + x[e(1115)] + e(1218) + x[e(3036)][e(782)](d) + " , params: {} ", x.opts.messages !== !1 && (s += e(1885)), x[e(569)][e(2330)] && (s += e(1426) + u + e(2366) + x[e(1913)] + e(2960) + f + " "), s += e(2670)) : s += e(331), s += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", !x[e(1629)] && l && (x.async ? s += e(1460) : s += e(2313)), s += e(3042) + h + e(2046) + h + ") vErrors.length = " + h + e(2397), x[e(569)][e(2354)] && (s += e(2670)); + } else l && (s += e(1857)); return s; - }), ft; -} -var lt, wr; -function h2() { - return wr || (wr = 1, lt = function(x, t, r) { - const e = K; - var s = " ", n = x[e(1425)][t], i = x.errSchemaPath + "/" + t; - x[e(1544)][e(3009)]; - var c = x.util[e(1767)](n); - return x[e(1544)].$comment === !0 ? s += e(1040) + c + ");" : typeof x[e(1544)][e(2786)] == e(1936) && (s += e(1772) + c + ", " + x[e(1975)][e(1767)](i) + e(2456)), s; - }), lt; -} -var dt, Sr; -function p2() { - return Sr || (Sr = 1, dt = function(x, t, r) { - const e = K; - var s = " ", n = x.level, i = x.dataLevel, c = x[e(1425)][t], u = x.schemaPath + x.util[e(3039)](t), f = x[e(569)] + "/" + t, l = !x[e(1544)][e(3009)], d = "data" + (i || ""), g = e(1122) + n, h = x.opts[e(568)] && c && c.$data; - h && (s += " var schema" + n + " = " + x.util[e(1186)](c[e(568)], i, x.dataPathArr) + "; "), !h && (s += e(1311) + n + " = validate.schema" + u + ";"), s += e(612) + g + e(832) + d + ", schema" + n + e(1298) + g + e(1793); - var m = m || []; - m[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += e(1108) + e(1603) + e(2387) + x[e(1935)] + e(2278) + x.util[e(1767)](f) + e(1845) + n + " } ", x.opts[e(1696)] !== !1 && (s += e(977)), x[e(1544)][e(2491)] && (s += " , schema: validate.schema" + u + " , parentSchema: validate.schema" + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261); - var v = s; - return s = m.pop(), !x[e(2612)] && l ? x[e(2416)] ? s += e(1499) + v + "]); " : s += e(2213) + v + "]; return false; " : s += " var err = " + v + e(2653), s += " }", l && (s += e(1961)), s; }), dt; } +var lt, wr; +function uc() { + return wr || (wr = 1, lt = function(x, t, r) { + const e = Z; + var s = " ", n = x.schema[t], i = x.errSchemaPath + "/" + t; + x[e(569)].allErrors; + var c = x[e(3036)][e(782)](n); + return x[e(569)][e(1922)] === !0 ? s += e(925) + c + ");" : typeof x[e(569)].$comment == e(1149) && (s += e(1367) + c + ", " + x[e(3036)][e(782)](i) + e(1773)), s; + }), lt; +} +var ft, Sr; +function dc() { + return Sr || (Sr = 1, ft = function(x, t, r) { + const e = Z; + var s = " ", n = x[e(1113)], i = x[e(2585)], c = x[e(2238)][t], u = x[e(1913)] + x[e(3036)][e(2528)](t), d = x[e(601)] + "/" + t, l = !x[e(569)][e(2354)], f = e(1506) + (i || ""), g = e(467) + n, h = x[e(569)][e(2624)] && c && c.$data; + h && (s += e(1643) + n + " = " + x.util[e(2802)](c[e(2624)], i, x.dataPathArr) + "; "), !h && (s += e(1643) + n + e(1440) + u + ";"), s += e(2161) + g + e(2954) + f + e(971) + n + "); if (!" + g + ") { "; + var m = m || []; + m[e(3019)](s), s = "", x.createErrors !== !1 ? (s += e(2793) + e(588) + e(795) + x.errorPath + e(1218) + x[e(3036)].toQuotedString(d) + e(439) + n + e(2670), x.opts[e(709)] !== !1 && (s += e(2148)), x[e(569)][e(2330)] && (s += " , schema: validate.schema" + u + e(2366) + x[e(1913)] + e(2960) + f + " "), s += e(2670)) : s += e(331); + var v = s; + return s = m.pop(), !x[e(1629)] && l ? x.async ? s += e(1464) + v + "]); " : s += e(1973) + v + e(1948) : s += e(1533) + v + e(1548), s += " }", l && (s += e(401)), s; + }), ft; +} var ht, kr; -function m2() { +function lc() { return kr || (kr = 1, ht = function(x, t, r) { - const e = K; - var s = " ", n = x[e(1082)], i = x[e(1498)], c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)].getProperty(t), f = x[e(569)] + "/" + t, l = !x[e(1544)][e(3009)], d = e(2663) + (i || ""), g = e(1122) + n, h = e(1870) + n, m = x[e(1975)][e(2615)](x), v = ""; - m.level++; - var k = "valid" + m.level, P = "i" + n, T = m.dataLevel = x[e(1498)] + 1, q = e(2663) + T, R = x[e(805)], E = x[e(1544)][e(868)] ? typeof c == e(1304) && Object[e(2123)](c)[e(2710)] > 0 || c === !1 : x[e(1975)][e(1733)](c, x[e(2996)].all); - if (s += e(612) + h + e(1156) + g + ";", E) { - var C = x[e(2612)]; - x[e(2612)] = m.compositeRule = !0, m[e(1425)] = c, m[e(1262)] = u, m[e(569)] = f, s += " var " + k + " = false; for (var " + P + " = 0; " + P + e(1662) + d + e(2838) + P + "++) { ", m[e(1935)] = x.util[e(2126)](x[e(1935)], P, x.opts[e(2761)], !0); - var A = d + "[" + P + "]"; - m[e(662)][T] = P; - var O = x[e(3181)](m); - m[e(805)] = R, x.util.varOccurences(O, q) < 2 ? s += " " + x[e(1975)][e(650)](O, q, A) + " " : s += " var " + q + " = " + A + "; " + O + " ", s += e(1754) + k + ") break; } ", x[e(2612)] = m.compositeRule = C, s += " " + v + e(1102) + k + e(3258); - } else s += e(1754) + d + ".length == 0) {"; - var M = M || []; - M.push(s), s = "", x[e(559)] !== !1 ? (s += e(1108) + e(688) + e(2387) + x[e(1935)] + " , schemaPath: " + x[e(1975)][e(1767)](f) + e(1676), x.opts[e(1696)] !== !1 && (s += " , message: 'should contain a valid item' "), x[e(1544)][e(2491)] && (s += e(1346) + u + e(2408) + x[e(1262)] + " , data: " + d + " "), s += e(1411)) : s += e(3261); - var _ = s; - return s = M[e(2900)](), !x[e(2612)] && l ? x[e(2416)] ? s += e(1499) + _ + e(2300) : s += " validate.errors = [" + _ + "]; return false; " : s += " var err = " + _ + e(2653), s += " } else { ", E && (s += e(2059) + h + e(1606) + h + e(2563) + h + "; else vErrors = null; } "), x.opts[e(3009)] && (s += e(1411)), s; + const e = Z; + var s = " ", n = x[e(1113)], i = x.dataLevel, c = x[e(2238)][t], u = x.schemaPath + x.util[e(2528)](t), d = x[e(601)] + "/" + t, l = !x[e(569)][e(2354)], f = "data" + (i || ""), g = e(467) + n, h = "errs__" + n, m = x[e(3036)][e(1051)](x), v = ""; + m[e(1113)]++; + var k = e(467) + m.level, I = "i" + n, T = m[e(2585)] = x[e(2585)] + 1, q = e(1506) + T, R = x[e(882)], P = x[e(569)].strictKeywords ? typeof c == e(2220) && Object[e(1877)](c)[e(1148)] > 0 || c === !1 : x[e(3036)][e(793)](c, x.RULES[e(2497)]); + if (s += e(2161) + h + e(288) + g + ";", P) { + var C = x.compositeRule; + x[e(1629)] = m[e(1629)] = !0, m[e(2238)] = c, m[e(1913)] = u, m[e(601)] = d, s += e(465) + k + e(421) + I + e(870) + I + e(2518) + f + e(1609) + I + e(900), m[e(1115)] = x.util.getPathExpr(x[e(1115)], I, x[e(569)][e(1448)], !0); + var j = f + "[" + I + "]"; + m[e(2140)][T] = I; + var D = x.validate(m); + m.baseId = R, x[e(3036)].varOccurences(D, q) < 2 ? s += " " + x[e(3036)].varReplace(D, q, j) + " " : s += e(465) + q + e(1035) + j + "; " + D + " ", s += e(982) + k + e(3027), x[e(1629)] = m[e(1629)] = C, s += " " + v + e(543) + k + e(893); + } else s += " if (" + f + e(1012); + var O = O || []; + O.push(s), s = "", x[e(2324)] !== !1 ? (s += e(2793) + e(1222) + "' , dataPath: (dataPath || '') + " + x.errorPath + " , schemaPath: " + x[e(3036)][e(782)](d) + e(2777), x[e(569)][e(709)] !== !1 && (s += e(1684)), x[e(569)][e(2330)] && (s += e(1426) + u + " , parentSchema: validate.schema" + x[e(1913)] + e(2960) + f + " "), s += e(2670)) : s += " {} "; + var N = s; + return s = O[e(2906)](), !x[e(1629)] && l ? x[e(2538)] ? s += " throw new ValidationError([" + N + e(1420) : s += e(1973) + N + e(1948) : s += e(1533) + N + e(1548), s += " } else { ", P && (s += e(2873) + h + e(2046) + h + e(2665) + h + "; else vErrors = null; } "), x[e(569)][e(2354)] && (s += e(2670)), s; }), ht; } var pt, Pr; -function b2() { +function fc() { return Pr || (Pr = 1, pt = function(x, t, r) { - const e = K; - var s = " ", n = x[e(1082)], i = x[e(1498)], c = x.schema[t], u = x[e(1262)] + x[e(1975)][e(3039)](t), f = x[e(569)] + "/" + t, l = !x.opts[e(3009)], d = e(2663) + (i || ""), g = e(1870) + n, h = x.util[e(2615)](x), m = ""; - h.level++; - var v = e(1122) + h[e(1082)], k = {}, P = {}, T = x[e(1544)][e(951)]; + const e = Z; + var s = " ", n = x.level, i = x[e(2585)], c = x[e(2238)][t], u = x[e(1913)] + x.util[e(2528)](t), d = x[e(601)] + "/" + t, l = !x[e(569)][e(2354)], f = e(1506) + (i || ""), g = e(2233) + n, h = x[e(3036)][e(1051)](x), m = ""; + h[e(1113)]++; + var v = e(467) + h[e(1113)], k = {}, I = {}, T = x.opts[e(520)]; for (C in c) - if (C != e(1134)) { - var q = c[C], R = Array[e(3255)](q) ? P : k; + if (C != "__proto__") { + var q = c[C], R = Array.isArray(q) ? I : k; R[C] = q; } - s += e(612) + g + e(683); - var E = x[e(1935)]; - s += e(3118) + n + ";"; - for (var C in P) - if (R = P[C], R.length) { - if (s += e(836) + d + x[e(1975)][e(3039)](C) + e(1949), T && (s += " && Object.prototype.hasOwnProperty.call(" + d + e(1167) + x[e(1975)][e(1265)](C) + e(2901)), l) { - s += e(640); - var A = R; - if (A) - for (var O, M = -1, _ = A[e(2710)] - 1; M < _; ) { - O = A[M += 1], M && (s += e(1887)); - var N = x[e(1975)][e(3039)](O), z = d + N; - s += e(1330) + z + e(562), T && (s += " || ! Object.prototype.hasOwnProperty.call(" + d + e(1167) + x[e(1975)][e(1265)](O) + e(2901)), s += ") && (missing" + n + e(2486) + x[e(1975)][e(1767)](x[e(1544)][e(2761)] ? O : N) + e(2130); + s += e(2161) + g + e(825); + var P = x[e(1115)]; + s += e(1820) + n + ";"; + for (var C in I) + if (R = I[C], R.length) { + if (s += " if ( " + f + x[e(3036)][e(2528)](C) + e(1961), T && (s += " && Object.prototype.hasOwnProperty.call(" + f + e(1453) + x[e(3036)][e(1783)](C) + e(1414)), l) { + s += " && ( "; + var j = R; + if (j) + for (var D, O = -1, N = j.length - 1; O < N; ) { + D = j[O += 1], O && (s += e(2312)); + var _ = x[e(3036)].getProperty(D), z = f + _; + s += " ( ( " + z + e(1461), T && (s += e(2274) + f + ", '" + x[e(3036)].escapeQuotes(D) + e(1414)), s += ") && (missing" + n + e(1035) + x.util[e(782)](x[e(569)][e(1448)] ? D : _) + e(2213); } - s += e(1951); - var U = e(2473) + n, H = e(1064) + U + e(2519); - x[e(1544)]._errorDataPathProperty && (x[e(1935)] = x[e(1544)][e(2761)] ? x[e(1975)][e(2126)](E, U, !0) : E + " + " + U); + s += e(2830); + var U = e(302) + n, H = e(1238) + U + " + '"; + x[e(569)][e(280)] && (x[e(1115)] = x.opts[e(1448)] ? x.util.getPathExpr(P, U, !0) : P + " + " + U); var G = G || []; - G[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += e(1108) + e(1110) + e(2387) + x.errorPath + " , schemaPath: " + x.util[e(1767)](f) + e(2588) + x[e(1975)][e(1265)](C) + e(1519) + H + "', depsCount: " + R[e(2710)] + e(2483) + x[e(1975)][e(1265)](R[e(2710)] == 1 ? R[0] : R[e(1592)](", ")) + e(871), x[e(1544)][e(1696)] !== !1 && (s += e(1438), R.length == 1 ? s += "property " + x.util[e(1265)](R[0]) : s += e(2807) + x.util.escapeQuotes(R[e(1592)](", ")), s += e(1242) + x.util[e(1265)](C) + e(2488)), x[e(1544)][e(2491)] && (s += e(1346) + u + " , parentSchema: validate.schema" + x[e(1262)] + " , data: " + d + " "), s += " } ") : s += e(3261); - var re = s; - s = G[e(2900)](), !x[e(2612)] && l ? x[e(2416)] ? s += e(1499) + re + e(2300) : s += e(2213) + re + "]; return false; " : s += e(2636) + re + e(2653); + G[e(3019)](s), s = "", x.createErrors !== !1 ? (s += " { keyword: '" + e(600) + e(795) + x[e(1115)] + e(1218) + x[e(3036)][e(782)](d) + " , params: { property: '" + x[e(3036)].escapeQuotes(C) + e(1143) + H + e(669) + R.length + e(2982) + x[e(3036)][e(1783)](R[e(1148)] == 1 ? R[0] : R.join(", ")) + e(1390), x[e(569)][e(709)] !== !1 && (s += e(2250), R[e(1148)] == 1 ? s += e(3012) + x[e(3036)].escapeQuotes(R[0]) : s += e(2478) + x[e(3036)][e(1783)](R[e(896)](", ")), s += " when property " + x[e(3036)][e(1783)](C) + e(2512)), x.opts.verbose && (s += " , schema: validate.schema" + u + e(2366) + x[e(1913)] + e(2960) + f + " "), s += e(2670)) : s += e(331); + var ie = s; + s = G.pop(), !x[e(1629)] && l ? x[e(2538)] ? s += e(1464) + ie + "]); " : s += e(1973) + ie + e(1948) : s += e(1533) + ie + e(1548); } else { - s += e(774); - var se = R; - if (se) - for (var O, fe = -1, de = se[e(2710)] - 1; fe < de; ) { - O = se[fe += 1]; - var N = x[e(1975)][e(3039)](O), H = x[e(1975)][e(1265)](O), z = d + N; - x[e(1544)][e(3124)] && (x[e(1935)] = x.util.getPath(E, O, x[e(1544)][e(2761)])), s += " if ( " + z + e(562), T && (s += e(1578) + d + e(1167) + x[e(1975)][e(1265)](O) + e(2901)), s += e(1939), x[e(559)] !== !1 ? (s += e(1108) + e(1110) + e(2387) + x[e(1935)] + e(2278) + x.util[e(1767)](f) + e(2588) + x[e(1975)][e(1265)](C) + e(1519) + H + e(1179) + R[e(2710)] + e(2483) + x[e(1975)][e(1265)](R.length == 1 ? R[0] : R[e(1592)](", ")) + e(871), x[e(1544)][e(1696)] !== !1 && (s += e(1438), R[e(2710)] == 1 ? s += e(1083) + x[e(1975)][e(1265)](R[0]) : s += e(2807) + x[e(1975)].escapeQuotes(R[e(1592)](", ")), s += e(1242) + x[e(1975)][e(1265)](C) + e(2488)), x[e(1544)].verbose && (s += e(1346) + u + e(2408) + x[e(1262)] + " , data: " + d + " "), s += e(1411)) : s += e(3261), s += e(2784); + s += e(3033); + var ue = R; + if (ue) + for (var D, le = -1, oe = ue.length - 1; le < oe; ) { + D = ue[le += 1]; + var _ = x[e(3036)].getProperty(D), H = x[e(3036)][e(1783)](D), z = f + _; + x[e(569)][e(280)] && (x[e(1115)] = x.util.getPath(P, D, x[e(569)][e(1448)])), s += " if ( " + z + " === undefined ", T && (s += e(2274) + f + e(1453) + x[e(3036)].escapeQuotes(D) + "') "), s += e(2720), x[e(2324)] !== !1 ? (s += e(2793) + "dependencies" + e(795) + x[e(1115)] + e(1218) + x[e(3036)][e(782)](d) + " , params: { property: '" + x.util.escapeQuotes(C) + "', missingProperty: '" + H + e(669) + R[e(1148)] + e(2982) + x.util.escapeQuotes(R[e(1148)] == 1 ? R[0] : R[e(896)](", ")) + "' } ", x.opts[e(709)] !== !1 && (s += e(2250), R.length == 1 ? s += "property " + x[e(3036)][e(1783)](R[0]) : s += e(2478) + x[e(3036)][e(1783)](R.join(", ")), s += e(646) + x[e(3036)][e(1783)](C) + e(2512)), x[e(569)].verbose && (s += " , schema: validate.schema" + u + e(2366) + x[e(1913)] + e(2960) + f + " "), s += " } ") : s += e(331), s += e(2614); } } - s += e(2648), l && (m += "}", s += e(1961)); + s += e(2445), l && (m += "}", s += " else { "); } - x.errorPath = E; - var le = h[e(805)]; + x[e(1115)] = P; + var fe = h[e(882)]; for (var C in k) { var q = k[C]; - (x.opts[e(868)] ? typeof q == e(1304) && Object.keys(q)[e(2710)] > 0 || q === !1 : x[e(1975)][e(1733)](q, x[e(2996)][e(1096)])) && (s += " " + v + e(1609) + d + x[e(1975)][e(3039)](C) + " !== undefined ", T && (s += e(498) + d + e(1167) + x[e(1975)][e(1265)](C) + e(2901)), s += e(2834), h[e(1425)] = q, h.schemaPath = u + x[e(1975)][e(3039)](C), h[e(569)] = f + "/" + x[e(1975)][e(1675)](C), s += " " + x[e(3181)](h) + " ", h[e(805)] = le, s += e(2204), l && (s += e(1754) + v + ") { ", m += "}")); + (x[e(569)][e(493)] ? typeof q == e(2220) && Object[e(1877)](q)[e(1148)] > 0 || q === !1 : x[e(3036)][e(793)](q, x[e(730)][e(2497)])) && (s += " " + v + e(1265) + f + x[e(3036)][e(2528)](C) + e(1961), T && (s += e(717) + f + ", '" + x[e(3036)][e(1783)](C) + e(1414)), s += e(2719), h[e(2238)] = q, h[e(1913)] = u + x[e(3036)][e(2528)](C), h.errSchemaPath = d + "/" + x[e(3036)][e(2095)](C), s += " " + x[e(2029)](h) + " ", h[e(882)] = fe, s += e(2750), l && (s += e(982) + v + e(2719), m += "}")); } - return l && (s += e(2602) + m + e(1754) + g + " == errors) {"), s; + return l && (s += e(2564) + m + e(982) + g + " == errors) {"), s; }), pt; } var mt, Ir; -function g2() { +function hc() { return Ir || (Ir = 1, mt = function(x, t, r) { - const e = K; - var s = " ", n = x[e(1082)], i = x[e(1498)], c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)].getProperty(t), f = x.errSchemaPath + "/" + t, l = !x.opts.allErrors, d = e(2663) + (i || ""), g = e(1122) + n, h = x.opts.$data && c && c[e(568)]; - h && (s += e(1311) + n + " = " + x[e(1975)].getData(c[e(568)], i, x.dataPathArr) + "; "); - var m = "i" + n, v = e(1425) + n; - !h && (s += e(2675) + v + e(1699) + u + ";"), s += e(612) + g + ";", h && (s += e(3121) + n + e(1144) + g + " = true; else if (!Array.isArray(schema" + n + e(1345) + g + e(991)), s += "" + g + e(2171) + m + e(599) + m + "<" + v + e(2838) + m + "++) if (equal(" + d + ", " + v + "[" + m + e(2855) + g + e(1624), h && (s += " } "), s += e(1102) + g + e(1793); + const e = Z; + var s = " ", n = x[e(1113)], i = x[e(2585)], c = x[e(2238)][t], u = x[e(1913)] + x[e(3036)][e(2528)](t), d = x[e(601)] + "/" + t, l = !x[e(569)][e(2354)], f = e(1506) + (i || ""), g = e(467) + n, h = x[e(569)][e(2624)] && c && c.$data; + h && (s += e(1643) + n + e(1035) + x[e(3036)][e(2802)](c[e(2624)], i, x[e(2140)]) + "; "); + var m = "i" + n, v = e(2238) + n; + !h && (s += " var " + v + " = validate.schema" + u + ";"), s += e(2161) + g + ";", h && (s += " if (schema" + n + e(2537) + g + e(1696) + n + e(1756) + g + e(1402)), s += "" + g + e(1720) + m + "=0; " + m + "<" + v + ".length; " + m + "++) if (equal(" + f + ", " + v + "[" + m + e(407) + g + e(2266), h && (s += e(1445)), s += e(543) + g + ") { "; var k = k || []; - k[e(3062)](s), s = "", x.createErrors !== !1 ? (s += e(1108) + e(2218) + e(2387) + x.errorPath + " , schemaPath: " + x.util.toQuotedString(f) + e(3037) + n + " } ", x[e(1544)].messages !== !1 && (s += e(1560)), x.opts[e(2491)] && (s += e(1346) + u + e(2408) + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261); - var P = s; - return s = k[e(2900)](), !x[e(2612)] && l ? x[e(2416)] ? s += e(1499) + P + e(2300) : s += " validate.errors = [" + P + e(702) : s += e(2636) + P + e(2653), s += " }", l && (s += e(1961)), s; + k[e(3019)](s), s = "", x.createErrors !== !1 ? (s += e(2793) + e(2897) + "' , dataPath: (dataPath || '') + " + x[e(1115)] + e(1218) + x[e(3036)][e(782)](d) + e(1267) + n + " } ", x.opts[e(709)] !== !1 && (s += e(939)), x[e(569)][e(2330)] && (s += e(1426) + u + e(2366) + x[e(1913)] + e(2960) + f + " "), s += e(2670)) : s += e(331); + var I = s; + return s = k[e(2906)](), !x[e(1629)] && l ? x[e(2538)] ? s += e(1464) + I + e(1420) : s += e(1973) + I + e(1948) : s += e(1533) + I + e(1548), s += " }", l && (s += e(401)), s; }), mt; } var bt, Er; -function y2() { +function pc() { return Er || (Er = 1, bt = function(x, t, r) { - const e = K; - var s = " ", n = x[e(1082)], i = x[e(1498)], c = x.schema[t], u = x[e(1262)] + x.util.getProperty(t), f = x[e(569)] + "/" + t, l = !x.opts[e(3009)], d = "data" + (i || ""); - if (x[e(1544)][e(802)] === !1) return l && (s += " if (true) { "), s; - var g = x[e(1544)][e(568)] && c && c.$data, h; - g ? (s += e(1311) + n + " = " + x[e(1975)][e(1186)](c.$data, i, x.dataPathArr) + "; ", h = "schema" + n) : h = c; - var m = x[e(1544)][e(1612)], v = Array[e(3255)](m); + const e = Z; + var s = " ", n = x[e(1113)], i = x[e(2585)], c = x.schema[t], u = x[e(1913)] + x[e(3036)][e(2528)](t), d = x[e(601)] + "/" + t, l = !x[e(569)][e(2354)], f = e(1506) + (i || ""); + if (x.opts[e(2350)] === !1) return l && (s += e(1857)), s; + var g = x[e(569)][e(2624)] && c && c[e(2624)], h; + g ? (s += e(1643) + n + e(1035) + x[e(3036)].getData(c[e(2624)], i, x.dataPathArr) + "; ", h = e(2238) + n) : h = c; + var m = x[e(569)].unknownFormats, v = Array.isArray(m); if (g) { - var k = "format" + n, P = e(1151) + n, T = e(3238) + n; - s += " var " + k + e(2957) + h + e(2688) + P + e(1715) + k + e(2678) + k + e(2152) + k + e(596) + T + " = " + P + e(3061) + k + ".type || 'string'; if (" + P + e(2834), x[e(2416)] && (s += " var async" + n + " = " + k + e(2241)), s += " " + k + e(2486) + k + ".validate; } if ( ", g && (s += " (" + h + e(2439) + h + " != 'string') || "), s += " (", m != "ignore" && (s += " (" + h + e(2138) + k + " ", v && (s += e(2465) + h + e(3277)), s += e(1259)), s += " (" + k + " && " + T + e(545) + r + e(1406) + k + e(1061), x[e(2416)] ? s += e(534) + n + e(3267) + k + "(" + d + e(624) + k + "(" + d + e(1345) : s += " " + k + "(" + d + ") ", s += e(1171) + k + e(2947) + d + e(1583); + var k = "format" + n, I = "isObject" + n, T = e(1957) + n; + s += e(465) + k + e(2514) + h + "]; var " + I + e(2189) + k + e(1975) + k + e(1521) + k + e(687) + T + e(1035) + I + e(997) + k + e(1209) + I + e(2719), x[e(2538)] && (s += e(1836) + n + e(1035) + k + e(1098)), s += " " + k + e(1035) + k + ".validate; } if ( ", g && (s += " (" + h + " !== undefined && typeof " + h + " != 'string') || "), s += " (", m != "ignore" && (s += " (" + h + e(1884) + k + " ", v && (s += e(2642) + h + e(1581)), s += e(2270)), s += " (" + k + " && " + T + e(1055) + r + e(2303) + k + e(2012), x[e(2538)] ? s += e(2812) + n + " ? await " + k + "(" + f + ") : " + k + "(" + f + e(1756) : s += " " + k + "(" + f + ") ", s += " : " + k + e(1406) + f + e(2002); } else { - var k = x[e(3155)][c]; + var k = x[e(1882)][c]; if (!k) { - if (m == e(2069)) return x[e(2303)].warn(e(801) + c + e(1154) + x.errSchemaPath + '"'), l && (s += e(523)), s; - if (v && m[e(2436)](c) >= 0) return l && (s += e(523)), s; - throw new Error(e(801) + c + e(3026) + x.errSchemaPath + '"'); + if (m == e(2629)) return x[e(872)][e(2618)]('unknown format "' + c + e(2705) + x[e(601)] + '"'), l && (s += e(1857)), s; + if (v && m[e(2273)](c) >= 0) return l && (s += e(1857)), s; + throw new Error(e(2167) + c + e(1928) + x.errSchemaPath + '"'); } - var P = typeof k == e(1304) && !(k instanceof RegExp) && k.validate, T = P && k[e(2076)] || e(1361); - if (P) { - var q = k[e(2416)] === !0; - k = k[e(3181)]; + var I = typeof k == "object" && !(k instanceof RegExp) && k[e(2029)], T = I && k[e(2291)] || "string"; + if (I) { + var q = k[e(2538)] === !0; + k = k[e(2029)]; } - if (T != r) return l && (s += " if (true) { "), s; + if (T != r) return l && (s += e(1857)), s; if (q) { - if (!x.async) throw new Error(e(2182)); - var R = e(3155) + x[e(1975)][e(3039)](c) + e(2270); - s += e(1248) + R + "(" + d + e(1537); + if (!x.async) throw new Error(e(649)); + var R = e(1882) + x.util.getProperty(c) + e(2535); + s += " if (!(await " + R + "(" + f + "))) { "; } else { - s += e(2290); - var R = e(3155) + x[e(1975)][e(3039)](c); - P && (R += e(2270)), typeof k == "function" ? s += " " + R + "(" + d + ") " : s += " " + R + e(2947) + d + ") ", s += e(2834); + s += e(2597); + var R = e(1882) + x[e(3036)][e(2528)](c); + I && (R += e(2535)), typeof k == "function" ? s += " " + R + "(" + f + ") " : s += " " + R + e(1406) + f + ") ", s += e(2719); } } - var E = E || []; - E.push(s), s = "", x[e(559)] !== !1 ? (s += " { keyword: 'format" + e(2387) + x[e(1935)] + e(2278) + x[e(1975)][e(1767)](f) + " , params: { format: ", g ? s += "" + h : s += "" + x.util[e(1767)](c), s += e(3186), x[e(1544)][e(1696)] !== !1 && (s += e(2528), g ? s += e(1064) + h + e(2519) : s += "" + x[e(1975)][e(1265)](c), s += e(2773)), x.opts[e(2491)] && (s += e(2827), g ? s += "validate.schema" + u : s += "" + x[e(1975)][e(1767)](c), s += e(2989) + x[e(1262)] + " , data: " + d + " "), s += e(1411)) : s += e(3261); + var P = P || []; + P[e(3019)](s), s = "", x[e(2324)] !== !1 ? (s += e(2793) + "format" + e(795) + x[e(1115)] + " , schemaPath: " + x[e(3036)].toQuotedString(d) + e(539), g ? s += "" + h : s += "" + x.util[e(782)](c), s += e(1600), x.opts[e(709)] !== !1 && (s += e(1049), g ? s += e(1238) + h + e(2601) : s += "" + x.util[e(1783)](c), s += `"' `), x.opts[e(2330)] && (s += e(1221), g ? s += e(2139) + u : s += "" + x[e(3036)][e(782)](c), s += e(1167) + x[e(1913)] + e(2960) + f + " "), s += e(2670)) : s += e(331); var C = s; - return s = E[e(2900)](), !x.compositeRule && l ? x.async ? s += e(1499) + C + "]); " : s += e(2213) + C + "]; return false; " : s += e(2636) + C + e(2653), s += e(1411), l && (s += e(1961)), s; + return s = P[e(2906)](), !x[e(1629)] && l ? x[e(2538)] ? s += e(1464) + C + e(1420) : s += e(1973) + C + "]; return false; " : s += e(1533) + C + e(1548), s += e(2670), l && (s += e(401)), s; }), bt; } var gt, Rr; -function v2() { +function mc() { return Rr || (Rr = 1, gt = function(x, t, r) { - const e = K; - var s = " ", n = x[e(1082)], i = x[e(1498)], c = x.schema[t], u = x[e(1262)] + x[e(1975)].getProperty(t), f = x.errSchemaPath + "/" + t, l = !x[e(1544)].allErrors, d = e(2663) + (i || ""), g = e(1122) + n, h = "errs__" + n, m = x[e(1975)][e(2615)](x); - m[e(1082)]++; - var v = e(1122) + m[e(1082)], k = x[e(1425)].then, P = x[e(1425)][e(2629)], T = k !== void 0 && (x[e(1544)].strictKeywords ? typeof k == e(1304) && Object.keys(k).length > 0 || k === !1 : x[e(1975)][e(1733)](k, x[e(2996)][e(1096)])), q = P !== void 0 && (x.opts[e(868)] ? typeof P == "object" && Object[e(2123)](P)[e(2710)] > 0 || P === !1 : x[e(1975)][e(1733)](P, x[e(2996)][e(1096)])), R = m[e(805)]; + const e = Z; + var s = " ", n = x[e(1113)], i = x.dataLevel, c = x[e(2238)][t], u = x[e(1913)] + x[e(3036)][e(2528)](t), d = x[e(601)] + "/" + t, l = !x[e(569)][e(2354)], f = "data" + (i || ""), g = e(467) + n, h = "errs__" + n, m = x[e(3036)].copy(x); + m.level++; + var v = e(467) + m[e(1113)], k = x[e(2238)][e(634)], I = x[e(2238)][e(2674)], T = k !== void 0 && (x[e(569)][e(493)] ? typeof k == e(2220) && Object.keys(k).length > 0 || k === !1 : x[e(3036)][e(793)](k, x[e(730)].all)), q = I !== void 0 && (x[e(569)][e(493)] ? typeof I == e(2220) && Object.keys(I)[e(1148)] > 0 || I === !1 : x[e(3036)].schemaHasRules(I, x.RULES[e(2497)])), R = m.baseId; if (T || q) { - var E; - m[e(559)] = !1, m[e(1425)] = c, m[e(1262)] = u, m[e(569)] = f, s += e(2675) + h + e(905) + g + " = true; "; - var C = x[e(2612)]; - x[e(2612)] = m[e(2612)] = !0, s += " " + x[e(3181)](m) + " ", m[e(805)] = R, m.createErrors = !0, s += " errors = " + h + "; if (vErrors !== null) { if (" + h + e(2563) + h + e(2320), x[e(2612)] = m[e(2612)] = C, T ? (s += e(1754) + v + e(929), m[e(1425)] = x[e(1425)][e(2517)], m.schemaPath = x[e(1262)] + e(3109), m[e(569)] = x.errSchemaPath + e(3015), s += " " + x[e(3181)](m) + " ", m[e(805)] = R, s += " " + g + e(2486) + v + "; ", T && q ? (E = "ifClause" + n, s += e(2675) + E + e(615)) : E = "'then'", s += e(1411), q && (s += e(1961))) : s += e(1102) + v + ") { ", q && (m[e(1425)] = x[e(1425)][e(2629)], m.schemaPath = x[e(1262)] + ".else", m[e(569)] = x[e(569)] + "/else", s += " " + x[e(3181)](m) + " ", m[e(805)] = R, s += " " + g + e(2486) + v + "; ", T && q ? (E = "ifClause" + n, s += e(2675) + E + " = 'else'; ") : E = e(1443), s += " } "), s += e(1102) + g + e(2240), x[e(559)] !== !1 ? (s += e(1108) + "if" + e(2387) + x[e(1935)] + " , schemaPath: " + x[e(1975)][e(1767)](f) + e(2610) + E + e(1411), x[e(1544)][e(1696)] !== !1 && (s += e(1191) + E + e(3044)), x[e(1544)][e(2491)] && (s += e(1346) + u + " , parentSchema: validate.schema" + x.schemaPath + " , data: " + d + " "), s += e(1411)) : s += e(3261), s += e(2653), !x[e(2612)] && l && (x[e(2416)] ? s += e(903) : s += " validate.errors = vErrors; return false; "), s += e(2648), l && (s += " else { "); - } else l && (s += " if (true) { "); + var P; + m[e(2324)] = !1, m.schema = c, m[e(1913)] = u, m[e(601)] = d, s += e(465) + h + e(2827) + g + e(544); + var C = x[e(1629)]; + x[e(1629)] = m[e(1629)] = !0, s += " " + x[e(2029)](m) + " ", m[e(882)] = R, m.createErrors = !0, s += " errors = " + h + e(2046) + h + e(2665) + h + e(1525), x.compositeRule = m[e(1629)] = C, T ? (s += e(982) + v + e(2369), m[e(2238)] = x.schema[e(634)], m[e(1913)] = x[e(1913)] + ".then", m.errSchemaPath = x[e(601)] + "/then", s += " " + x[e(2029)](m) + " ", m[e(882)] = R, s += " " + g + e(1035) + v + "; ", T && q ? (P = "ifClause" + n, s += e(465) + P + " = 'then'; ") : P = e(2687), s += e(2670), q && (s += e(401))) : s += e(543) + v + e(2719), q && (m.schema = x[e(2238)][e(2674)], m[e(1913)] = x[e(1913)] + e(1324), m[e(601)] = x.errSchemaPath + e(912), s += " " + x.validate(m) + " ", m[e(882)] = R, s += " " + g + e(1035) + v + "; ", T && q ? (P = e(713) + n, s += e(465) + P + " = 'else'; ") : P = e(2818), s += e(2670)), s += e(543) + g + e(1425), x[e(2324)] !== !1 ? (s += e(2793) + "if" + e(795) + x[e(1115)] + e(1218) + x[e(3036)][e(782)](d) + e(322) + P + e(2670), x[e(569)][e(709)] !== !1 && (s += ` , message: 'should match "' + ` + P + ` + '" schema' `), x.opts.verbose && (s += " , schema: validate.schema" + u + " , parentSchema: validate.schema" + x[e(1913)] + e(2960) + f + " "), s += e(2670)) : s += " {} ", s += e(1548), !x[e(1629)] && l && (x[e(2538)] ? s += e(1460) : s += " validate.errors = vErrors; return false; "), s += e(2445), l && (s += e(401)); + } else l && (s += e(1857)); return s; }), gt; } var yt, Cr; -function w2() { +function bc() { return Cr || (Cr = 1, yt = function(x, t, r) { - const e = K; - var s = " ", n = x[e(1082)], i = x.dataLevel, c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)][e(3039)](t), f = x.errSchemaPath + "/" + t, l = !x[e(1544)][e(3009)], d = e(2663) + (i || ""), g = e(1122) + n, h = e(1870) + n, m = x[e(1975)][e(2615)](x), v = ""; - m.level++; - var k = e(1122) + m[e(1082)], P = "i" + n, T = m[e(1498)] = x[e(1498)] + 1, q = e(2663) + T, R = x[e(805)]; - if (s += "var " + h + e(1156) + g + ";", Array.isArray(c)) { - var E = x[e(1425)][e(2410)]; - if (E === !1) { - s += " " + g + e(2486) + d + e(1723) + c[e(2710)] + "; "; - var C = f; - f = x[e(569)] + e(2214), s += e(2919) + g + e(1793); - var A = A || []; - A[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += e(1108) + e(2410) + e(2387) + x[e(1935)] + " , schemaPath: " + x[e(1975)][e(1767)](f) + e(2929) + c.length + e(1411), x[e(1544)][e(1696)] !== !1 && (s += e(3168) + c[e(2710)] + " items' "), x.opts.verbose && (s += " , schema: false , parentSchema: validate.schema" + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261); - var O = s; - s = A[e(2900)](), !x.compositeRule && l ? x[e(2416)] ? s += e(1499) + O + e(2300) : s += e(2213) + O + e(702) : s += " var err = " + O + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", s += e(1411), f = C, l && (v += "}", s += " else { "); + const e = Z; + var s = " ", n = x.level, i = x[e(2585)], c = x.schema[t], u = x.schemaPath + x.util[e(2528)](t), d = x[e(601)] + "/" + t, l = !x[e(569)][e(2354)], f = e(1506) + (i || ""), g = e(467) + n, h = "errs__" + n, m = x[e(3036)][e(1051)](x), v = ""; + m[e(1113)]++; + var k = e(467) + m[e(1113)], I = "i" + n, T = m[e(2585)] = x[e(2585)] + 1, q = e(1506) + T, R = x.baseId; + if (s += e(2161) + h + e(288) + g + ";", Array[e(500)](c)) { + var P = x[e(2238)].additionalItems; + if (P === !1) { + s += " " + g + e(1035) + f + ".length <= " + c[e(1148)] + "; "; + var C = d; + d = x.errSchemaPath + e(2295), s += " if (!" + g + e(2767); + var j = j || []; + j.push(s), s = "", x.createErrors !== !1 ? (s += " { keyword: '" + e(2296) + e(795) + x[e(1115)] + e(1218) + x[e(3036)][e(782)](d) + e(963) + c[e(1148)] + e(2670), x[e(569)][e(709)] !== !1 && (s += e(1630) + c[e(1148)] + e(1088)), x.opts.verbose && (s += e(985) + x[e(1913)] + e(2960) + f + " "), s += e(2670)) : s += e(331); + var D = s; + s = j[e(2906)](), !x[e(1629)] && l ? x[e(2538)] ? s += e(1464) + D + e(1420) : s += " validate.errors = [" + D + e(1948) : s += " var err = " + D + e(1548), s += e(2670), d = C, l && (v += "}", s += " else { "); } - var M = c; - if (M) { - for (var _, N = -1, z = M[e(2710)] - 1; N < z; ) - if (_ = M[N += 1], x.opts[e(868)] ? typeof _ == e(1304) && Object.keys(_).length > 0 || _ === !1 : x[e(1975)].schemaHasRules(_, x[e(2996)][e(1096)])) { - s += " " + k + " = true; if (" + d + ".length > " + N + e(2834); - var U = d + "[" + N + "]"; - m[e(1425)] = _, m[e(1262)] = u + "[" + N + "]", m.errSchemaPath = f + "/" + N, m[e(1935)] = x[e(1975)][e(2126)](x.errorPath, N, x[e(1544)][e(2761)], !0), m.dataPathArr[T] = N; - var H = x[e(3181)](m); - m[e(805)] = R, x.util[e(1109)](H, q) < 2 ? s += " " + x.util[e(650)](H, q, U) + " " : s += e(2675) + q + e(2486) + U + "; " + H + " ", s += e(2204), l && (s += " if (" + k + ") { ", v += "}"); + var O = c; + if (O) { + for (var N, _ = -1, z = O[e(1148)] - 1; _ < z; ) + if (N = O[_ += 1], x[e(569)][e(493)] ? typeof N == e(2220) && Object[e(1877)](N).length > 0 || N === !1 : x[e(3036)][e(793)](N, x[e(730)][e(2497)])) { + s += " " + k + " = true; if (" + f + e(2400) + _ + e(2719); + var U = f + "[" + _ + "]"; + m[e(2238)] = N, m[e(1913)] = u + "[" + _ + "]", m[e(601)] = d + "/" + _, m[e(1115)] = x[e(3036)][e(696)](x[e(1115)], _, x[e(569)][e(1448)], !0), m[e(2140)][T] = _; + var H = x[e(2029)](m); + m[e(882)] = R, x[e(3036)][e(2741)](H, q) < 2 ? s += " " + x.util[e(1350)](H, q, U) + " " : s += e(465) + q + e(1035) + U + "; " + H + " ", s += e(2750), l && (s += e(982) + k + ") { ", v += "}"); } } - if (typeof E == "object" && (x[e(1544)][e(868)] ? typeof E == e(1304) && Object.keys(E)[e(2710)] > 0 || E === !1 : x[e(1975)][e(1733)](E, x[e(2996)][e(1096)]))) { - m.schema = E, m[e(1262)] = x[e(1262)] + ".additionalItems", m[e(569)] = x[e(569)] + e(2214), s += " " + k + e(769) + d + e(1620) + c[e(2710)] + ") { for (var " + P + e(2486) + c[e(2710)] + "; " + P + e(1662) + d + e(2838) + P + e(609), m[e(1935)] = x.util.getPathExpr(x[e(1935)], P, x[e(1544)].jsonPointers, !0); - var U = d + "[" + P + "]"; - m[e(662)][T] = P; - var H = x[e(3181)](m); - m[e(805)] = R, x[e(1975)][e(1109)](H, q) < 2 ? s += " " + x.util[e(650)](H, q, U) + " " : s += e(2675) + q + " = " + U + "; " + H + " ", l && (s += e(1102) + k + e(1418)), s += " } } ", l && (s += e(1754) + k + e(2834), v += "}"); + if (typeof P == e(2220) && (x.opts[e(493)] ? typeof P == "object" && Object.keys(P).length > 0 || P === !1 : x.util[e(793)](P, x.RULES[e(2497)]))) { + m[e(2238)] = P, m[e(1913)] = x.schemaPath + e(718), m[e(601)] = x[e(601)] + "/additionalItems", s += " " + k + e(281) + f + e(2400) + c[e(1148)] + e(2545) + I + " = " + c[e(1148)] + "; " + I + " < " + f + e(1609) + I + e(900), m.errorPath = x.util[e(696)](x.errorPath, I, x[e(569)][e(1448)], !0); + var U = f + "[" + I + "]"; + m.dataPathArr[T] = I; + var H = x[e(2029)](m); + m.baseId = R, x[e(3036)][e(2741)](H, q) < 2 ? s += " " + x[e(3036)].varReplace(H, q, U) + " " : s += " var " + q + e(1035) + U + "; " + H + " ", l && (s += e(543) + k + e(332)), s += e(684), l && (s += e(982) + k + e(2719), v += "}"); } - } else if (x[e(1544)][e(868)] ? typeof c == e(1304) && Object[e(2123)](c)[e(2710)] > 0 || c === !1 : x[e(1975)][e(1733)](c, x[e(2996)][e(1096)])) { - m[e(1425)] = c, m[e(1262)] = u, m[e(569)] = f, s += e(1883) + P + e(2486) + 0 + "; " + P + e(1662) + d + e(2838) + P + e(609), m.errorPath = x.util[e(2126)](x[e(1935)], P, x.opts[e(2761)], !0); - var U = d + "[" + P + "]"; - m.dataPathArr[T] = P; - var H = x.validate(m); - m.baseId = R, x.util[e(1109)](H, q) < 2 ? s += " " + x.util.varReplace(H, q, U) + " " : s += e(2675) + q + e(2486) + U + "; " + H + " ", l && (s += e(1102) + k + e(1418)), s += " }"; + } else if (x[e(569)][e(493)] ? typeof c == e(2220) && Object[e(1877)](c)[e(1148)] > 0 || c === !1 : x[e(3036)][e(793)](c, x[e(730)][e(2497)])) { + m[e(2238)] = c, m[e(1913)] = u, m[e(601)] = d, s += e(2677) + I + e(1035) + 0 + "; " + I + e(2518) + f + ".length; " + I + e(900), m[e(1115)] = x[e(3036)].getPathExpr(x[e(1115)], I, x[e(569)].jsonPointers, !0); + var U = f + "[" + I + "]"; + m.dataPathArr[T] = I; + var H = x[e(2029)](m); + m[e(882)] = R, x[e(3036)][e(2741)](H, q) < 2 ? s += " " + x[e(3036)][e(1350)](H, q, U) + " " : s += e(465) + q + " = " + U + "; " + H + " ", l && (s += e(543) + k + ") break; "), s += " }"; } - return l && (s += " " + v + " if (" + h + " == errors) {"), s; + return l && (s += " " + v + e(982) + h + e(2067)), s; }), yt; } -var vt, _r; -function Fr() { - return _r || (_r = 1, vt = function(x, t, r) { - const e = K; - var s = " ", n = x[e(1082)], i = x[e(1498)], c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)][e(3039)](t), f = x[e(569)] + "/" + t, l = !x[e(1544)].allErrors, R, d = e(2663) + (i || ""), g = x[e(1544)][e(568)] && c && c[e(568)], h; - g ? (s += e(1311) + n + e(2486) + x.util[e(1186)](c[e(568)], i, x.dataPathArr) + "; ", h = "schema" + n) : h = c; - var m = t == "maximum", v = e(m ? 3282 : 578), k = x[e(1425)][v], P = x[e(1544)][e(568)] && k && k[e(568)], T = m ? "<" : ">", q = m ? ">" : "<", R = void 0; - if (!(g || typeof c == e(2665) || c === void 0)) throw new Error(t + " must be number"); - if (!(P || k === void 0 || typeof k == e(2665) || typeof k == "boolean")) throw new Error(v + e(1590)); - if (P) { - var E = x[e(1975)].getData(k[e(568)], i, x[e(662)]), C = e(2257) + n, A = e(614) + n, O = "exclIsNumber" + n, M = "op" + n, _ = e(1064) + M + " + '"; - s += e(2895) + n + e(2486) + E + "; ", E = e(2142) + n, s += e(2675) + C + e(1691) + A + e(1715) + E + e(2318) + A + e(1864) + A + " != 'undefined' && " + A + " != 'number') { "; - var R = v, N = N || []; - N.push(s), s = "", x[e(559)] !== !1 ? (s += e(1108) + (R || e(2956)) + e(2387) + x.errorPath + e(2278) + x[e(1975)][e(1767)](f) + e(1676), x.opts[e(1696)] !== !1 && (s += e(1531) + v + " should be boolean' "), x[e(1544)].verbose && (s += e(1346) + u + e(2408) + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261); +var vt, Fr; +function _r() { + return Fr || (Fr = 1, vt = function(x, t, r) { + const e = Z; + var s = " ", n = x[e(1113)], i = x[e(2585)], c = x[e(2238)][t], u = x.schemaPath + x[e(3036)][e(2528)](t), d = x.errSchemaPath + "/" + t, l = !x.opts[e(2354)], R, f = e(1506) + (i || ""), g = x[e(569)].$data && c && c[e(2624)], h; + g ? (s += " var schema" + n + " = " + x[e(3036)][e(2802)](c[e(2624)], i, x[e(2140)]) + "; ", h = "schema" + n) : h = c; + var m = t == e(1613), v = e(m ? 2252 : 731), k = x[e(2238)][v], I = x[e(569)][e(2624)] && k && k[e(2624)], T = m ? "<" : ">", q = m ? ">" : "<", R = void 0; + if (!(g || typeof c == "number" || c === void 0)) throw new Error(t + " must be number"); + if (!(I || k === void 0 || typeof k == e(867) || typeof k == "boolean")) throw new Error(v + e(2649)); + if (I) { + var P = x.util.getData(k[e(2624)], i, x.dataPathArr), C = e(1083) + n, j = e(1663) + n, D = e(973) + n, O = "op" + n, N = e(1238) + O + e(2601); + s += e(1858) + n + e(1035) + P + "; ", P = "schemaExcl" + n, s += e(465) + C + e(1644) + j + e(2189) + P + e(2314) + j + e(2121) + j + " != 'undefined' && " + j + e(3025); + var R = v, _ = _ || []; + _.push(s), s = "", x[e(2324)] !== !1 ? (s += " { keyword: '" + (R || e(894)) + "' , dataPath: (dataPath || '') + " + x[e(1115)] + " , schemaPath: " + x[e(3036)][e(782)](d) + e(2777), x[e(569)].messages !== !1 && (s += " , message: '" + v + e(895)), x.opts.verbose && (s += e(1426) + u + e(2366) + x.schemaPath + e(2960) + f + " "), s += " } ") : s += " {} "; var z = s; - s = N.pop(), !x[e(2612)] && l ? x.async ? s += e(1499) + z + "]); " : s += e(2213) + z + e(702) : s += e(2636) + z + e(2653), s += e(3069), g && (s += " (" + h + e(2439) + h + e(1712)), s += " " + A + e(2403) + C + " = " + h + e(2952) + E + " " + T + "= " + h + e(2856) + d + " " + q + "= " + E + e(1171) + d + " " + q + " " + h + " ) : ( (" + C + e(2486) + E + " === true) ? " + d + " " + q + "= " + h + e(1171) + d + " " + q + " " + h + e(671) + d + e(2781) + d + e(679) + n + e(2486) + C + " ? '" + T + e(2866) + T + "='; ", c === void 0 && (R = v, f = x[e(569)] + "/" + v, h = E, g = P); + s = _[e(2906)](), !x.compositeRule && l ? x.async ? s += e(1464) + z + e(1420) : s += " validate.errors = [" + z + e(1948) : s += e(1533) + z + e(1548), s += e(393), g && (s += " (" + h + e(850) + h + e(422)), s += " " + j + e(2856) + C + " = " + h + e(1033) + P + " " + T + "= " + h + e(464) + f + " " + q + "= " + P + e(901) + f + " " + q + " " + h + " ) : ( (" + C + e(1035) + P + " === true) ? " + f + " " + q + "= " + h + e(901) + f + " " + q + " " + h + e(2201) + f + e(377) + f + ") { var op" + n + e(1035) + C + e(1941) + T + e(2732) + T + "='; ", c === void 0 && (R = v, d = x[e(601)] + "/" + v, h = P, g = I); } else { - var O = typeof k == e(2665), _ = T; - if (O && g) { - var M = "'" + _ + "'"; - s += e(836), g && (s += " (" + h + e(2439) + h + e(1712)), s += " ( " + h + e(2952) + k + " " + T + "= " + h + " ? " + d + " " + q + "= " + k + e(1171) + d + " " + q + " " + h + " ) || " + d + " !== " + d + e(2834); + var D = typeof k == e(867), N = T; + if (D && g) { + var O = "'" + N + "'"; + s += e(1992), g && (s += " (" + h + e(850) + h + e(422)), s += e(1275) + h + e(1033) + k + " " + T + "= " + h + e(1145) + f + " " + q + "= " + k + " : " + f + " " + q + " " + h + e(2201) + f + e(377) + f + e(2719); } else { - O && c === void 0 ? (C = !0, R = v, f = x[e(569)] + "/" + v, h = k, q += "=") : (O && (h = Math[e(m ? 521 : 753)](k, c)), k === (O ? h : !0) ? (C = !0, R = v, f = x[e(569)] + "/" + v, q += "=") : (C = !1, _ += "=")); - var M = "'" + _ + "'"; - s += e(836), g && (s += " (" + h + e(2439) + h + e(1712)), s += " " + d + " " + q + " " + h + e(1887) + d + e(2781) + d + e(2834); + D && c === void 0 ? (C = !0, R = v, d = x[e(601)] + "/" + v, h = k, q += "=") : (D && (h = Math[e(m ? 316 : 477)](k, c)), k === (D ? h : !0) ? (C = !0, R = v, d = x[e(601)] + "/" + v, q += "=") : (C = !1, N += "=")); + var O = "'" + N + "'"; + s += " if ( ", g && (s += " (" + h + e(850) + h + e(422)), s += " " + f + " " + q + " " + h + " || " + f + " !== " + f + e(2719); } } R = R || t; - var N = N || []; - N[e(3062)](s), s = "", x.createErrors !== !1 ? (s += e(1108) + (R || "_limit") + e(2387) + x.errorPath + e(2278) + x.util[e(1767)](f) + " , params: { comparison: " + M + e(2146) + h + e(1118) + C + e(1411), x.opts.messages !== !1 && (s += " , message: 'should be " + _ + " ", g ? s += e(1064) + h : s += "" + h + "'"), x[e(1544)][e(2491)] && (s += e(2827), g ? s += e(1063) + u : s += "" + c, s += e(2989) + x[e(1262)] + " , data: " + d + " "), s += " } ") : s += e(3261); + var _ = _ || []; + _[e(3019)](s), s = "", x.createErrors !== !1 ? (s += " { keyword: '" + (R || e(1951)) + e(795) + x.errorPath + " , schemaPath: " + x[e(3036)][e(782)](d) + e(2541) + O + e(1223) + h + e(1062) + C + e(2670), x[e(569)].messages !== !1 && (s += " , message: 'should be " + N + " ", g ? s += e(1238) + h : s += "" + h + "'"), x[e(569)][e(2330)] && (s += e(1221), g ? s += e(2139) + u : s += "" + c, s += e(1167) + x[e(1913)] + e(2960) + f + " "), s += e(2670)) : s += " {} "; var z = s; - return s = N[e(2900)](), !x[e(2612)] && l ? x[e(2416)] ? s += " throw new ValidationError([" + z + "]); " : s += e(2213) + z + e(702) : s += e(2636) + z + e(2653), s += " } ", l && (s += e(1961)), s; + return s = _[e(2906)](), !x.compositeRule && l ? x.async ? s += e(1464) + z + e(1420) : s += e(1973) + z + e(1948) : s += " var err = " + z + e(1548), s += e(2670), l && (s += " else { "), s; }), vt; } -var wt, Tr; -function Nr() { - return Tr || (Tr = 1, wt = function(x, t, r) { - const e = K; - var s = " ", n = x[e(1082)], i = x[e(1498)], c = x.schema[t], u = x.schemaPath + x[e(1975)].getProperty(t), f = x[e(569)] + "/" + t, l = !x[e(1544)].allErrors, v, d = e(2663) + (i || ""), g = x[e(1544)][e(568)] && c && c[e(568)], h; - if (g ? (s += e(1311) + n + e(2486) + x[e(1975)][e(1186)](c[e(568)], i, x.dataPathArr) + "; ", h = "schema" + n) : h = c, !(g || typeof c == e(2665))) throw new Error(t + e(1976)); - var m = t == "maxItems" ? ">" : "<"; - s += e(1932), g && (s += " (" + h + e(2439) + h + e(1712)), s += " " + d + e(2008) + m + " " + h + e(2834); +var wt, Nr; +function Tr() { + return Nr || (Nr = 1, wt = function(x, t, r) { + const e = Z; + var s = " ", n = x[e(1113)], i = x[e(2585)], c = x[e(2238)][t], u = x.schemaPath + x[e(3036)].getProperty(t), d = x[e(601)] + "/" + t, l = !x.opts[e(2354)], v, f = e(1506) + (i || ""), g = x[e(569)][e(2624)] && c && c[e(2624)], h; + if (g ? (s += " var schema" + n + e(1035) + x.util[e(2802)](c[e(2624)], i, x[e(2140)]) + "; ", h = e(2238) + n) : h = c, !(g || typeof c == e(867))) throw new Error(t + e(1519)); + var m = t == e(858) ? ">" : "<"; + s += e(2843), g && (s += " (" + h + e(850) + h + e(422)), s += " " + f + e(1867) + m + " " + h + ") { "; var v = t, k = k || []; - k.push(s), s = "", x[e(559)] !== !1 ? (s += e(1108) + (v || e(3157)) + e(2387) + x[e(1935)] + e(2278) + x[e(1975)][e(1767)](f) + " , params: { limit: " + h + e(1411), x[e(1544)][e(1696)] !== !1 && (s += " , message: 'should NOT have ", t == "maxItems" ? s += e(2414) : s += "fewer", s += e(1333), g ? s += e(1064) + h + e(2519) : s += "" + c, s += e(2715)), x[e(1544)][e(2491)] && (s += e(2827), g ? s += e(1063) + u : s += "" + c, s += e(2989) + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261); - var P = s; - return s = k.pop(), !x[e(2612)] && l ? x[e(2416)] ? s += e(1499) + P + "]); " : s += e(2213) + P + "]; return false; " : s += e(2636) + P + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", s += "} ", l && (s += e(1961)), s; + k[e(3019)](s), s = "", x[e(2324)] !== !1 ? (s += e(2793) + (v || "_limitItems") + e(795) + x[e(1115)] + e(1218) + x[e(3036)][e(782)](d) + e(963) + h + e(2670), x[e(569)][e(709)] !== !1 && (s += e(2335), t == e(858) ? s += e(2492) : s += e(2037), s += e(2943), g ? s += e(1238) + h + e(2601) : s += "" + c, s += e(1088)), x[e(569)].verbose && (s += " , schema: ", g ? s += e(2139) + u : s += "" + c, s += e(1167) + x[e(1913)] + e(2960) + f + " "), s += e(2670)) : s += " {} "; + var I = s; + return s = k.pop(), !x[e(1629)] && l ? x[e(2538)] ? s += e(1464) + I + e(1420) : s += e(1973) + I + "]; return false; " : s += e(1533) + I + e(1548), s += "} ", l && (s += e(401)), s; }), wt; } var St, qr; function Ar() { return qr || (qr = 1, St = function(x, t, r) { - const e = K; - var s = " ", n = x[e(1082)], i = x[e(1498)], c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)][e(3039)](t), f = x[e(569)] + "/" + t, l = !x[e(1544)].allErrors, v, d = e(2663) + (i || ""), g = x.opts[e(568)] && c && c.$data, h; - if (g ? (s += " var schema" + n + e(2486) + x[e(1975)][e(1186)](c[e(568)], i, x.dataPathArr) + "; ", h = "schema" + n) : h = c, !(g || typeof c == e(2665))) throw new Error(t + e(1976)); - var m = t == "maxLength" ? ">" : "<"; - s += e(1932), g && (s += " (" + h + e(2439) + h + e(1712)), x.opts[e(2714)] === !1 ? s += " " + d + e(2008) : s += e(1631) + d + ") ", s += " " + m + " " + h + e(2834); + const e = Z; + var s = " ", n = x.level, i = x.dataLevel, c = x.schema[t], u = x[e(1913)] + x.util[e(2528)](t), d = x.errSchemaPath + "/" + t, l = !x.opts.allErrors, v, f = e(1506) + (i || ""), g = x.opts.$data && c && c[e(2624)], h; + if (g ? (s += e(1643) + n + " = " + x.util[e(2802)](c[e(2624)], i, x[e(2140)]) + "; ", h = e(2238) + n) : h = c, !(g || typeof c == e(867))) throw new Error(t + e(1519)); + var m = t == e(388) ? ">" : "<"; + s += e(2843), g && (s += " (" + h + e(850) + h + " != 'number') || "), x.opts[e(1707)] === !1 ? s += " " + f + e(1867) : s += e(2540) + f + ") ", s += " " + m + " " + h + ") { "; var v = t, k = k || []; - k[e(3062)](s), s = "", x.createErrors !== !1 ? (s += e(1108) + (v || e(1098)) + "' , dataPath: (dataPath || '') + " + x[e(1935)] + e(2278) + x[e(1975)][e(1767)](f) + " , params: { limit: " + h + e(1411), x[e(1544)][e(1696)] !== !1 && (s += e(3144), t == e(649) ? s += e(828) : s += e(1152), s += e(1333), g ? s += e(1064) + h + e(2519) : s += "" + c, s += e(3252)), x[e(1544)][e(2491)] && (s += e(2827), g ? s += e(1063) + u : s += "" + c, s += " , parentSchema: validate.schema" + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += " {} "; - var P = s; - return s = k[e(2900)](), !x[e(2612)] && l ? x.async ? s += e(1499) + P + e(2300) : s += " validate.errors = [" + P + e(702) : s += e(2636) + P + e(2653), s += "} ", l && (s += " else { "), s; + k[e(3019)](s), s = "", x[e(2324)] !== !1 ? (s += e(2793) + (v || "_limitLength") + e(795) + x[e(1115)] + e(1218) + x[e(3036)][e(782)](d) + e(963) + h + " } ", x[e(569)].messages !== !1 && (s += " , message: 'should NOT be ", t == "maxLength" ? s += "longer" : s += e(1282), s += " than ", g ? s += e(1238) + h + e(2601) : s += "" + c, s += e(2800)), x[e(569)][e(2330)] && (s += " , schema: ", g ? s += e(2139) + u : s += "" + c, s += e(1167) + x[e(1913)] + e(2960) + f + " "), s += e(2670)) : s += e(331); + var I = s; + return s = k.pop(), !x[e(1629)] && l ? x[e(2538)] ? s += e(1464) + I + e(1420) : s += e(1973) + I + e(1948) : s += e(1533) + I + e(1548), s += "} ", l && (s += " else { "), s; }), St; } var kt, Or; function Dr() { return Or || (Or = 1, kt = function(x, t, r) { - const e = K; - var s = " ", n = x.level, i = x.dataLevel, c = x[e(1425)][t], u = x.schemaPath + x[e(1975)][e(3039)](t), f = x[e(569)] + "/" + t, l = !x[e(1544)][e(3009)], v, d = e(2663) + (i || ""), g = x[e(1544)][e(568)] && c && c[e(568)], h; - if (g ? (s += " var schema" + n + " = " + x[e(1975)][e(1186)](c[e(568)], i, x[e(662)]) + "; ", h = e(1425) + n) : h = c, !(g || typeof c == "number")) throw new Error(t + e(1976)); - var m = t == e(1651) ? ">" : "<"; - s += e(1932), g && (s += " (" + h + e(2439) + h + " != 'number') || "), s += " Object.keys(" + d + e(2149) + m + " " + h + e(2834); + const e = Z; + var s = " ", n = x[e(1113)], i = x[e(2585)], c = x[e(2238)][t], u = x[e(1913)] + x[e(3036)][e(2528)](t), d = x[e(601)] + "/" + t, l = !x.opts.allErrors, v, f = e(1506) + (i || ""), g = x[e(569)][e(2624)] && c && c.$data, h; + if (g ? (s += e(1643) + n + " = " + x.util[e(2802)](c.$data, i, x.dataPathArr) + "; ", h = e(2238) + n) : h = c, !(g || typeof c == e(867))) throw new Error(t + e(1519)); + var m = t == e(2568) ? ">" : "<"; + s += e(2843), g && (s += " (" + h + e(850) + h + e(422)), s += " Object.keys(" + f + e(1141) + m + " " + h + e(2719); var v = t, k = k || []; - k[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += e(1108) + (v || "_limitProperties") + e(2387) + x[e(1935)] + e(2278) + x.util[e(1767)](f) + e(2929) + h + e(1411), x[e(1544)][e(1696)] !== !1 && (s += e(1687), t == "maxProperties" ? s += e(2414) : s += "fewer", s += " than ", g ? s += e(1064) + h + e(2519) : s += "" + c, s += " properties' "), x[e(1544)][e(2491)] && (s += e(2827), g ? s += e(1063) + u : s += "" + c, s += e(2989) + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261); - var P = s; - return s = k[e(2900)](), !x[e(2612)] && l ? x[e(2416)] ? s += " throw new ValidationError([" + P + e(2300) : s += e(2213) + P + e(702) : s += e(2636) + P + e(2653), s += "} ", l && (s += e(1961)), s; + k[e(3019)](s), s = "", x[e(2324)] !== !1 ? (s += e(2793) + (v || "_limitProperties") + e(795) + x.errorPath + e(1218) + x.util.toQuotedString(d) + e(963) + h + " } ", x[e(569)].messages !== !1 && (s += e(2335), t == e(2568) ? s += e(2492) : s += e(2037), s += " than ", g ? s += e(1238) + h + e(2601) : s += "" + c, s += e(908)), x.opts[e(2330)] && (s += e(1221), g ? s += e(2139) + u : s += "" + c, s += e(1167) + x[e(1913)] + e(2960) + f + " "), s += e(2670)) : s += " {} "; + var I = s; + return s = k[e(2906)](), !x.compositeRule && l ? x.async ? s += e(1464) + I + e(1420) : s += e(1973) + I + "]; return false; " : s += e(1533) + I + e(1548), s += "} ", l && (s += " else { "), s; }), kt; } var Pt, jr; -function S2() { +function gc() { return jr || (jr = 1, Pt = function(x, t, r) { - const e = K; - var s = " ", n = x[e(1082)], i = x[e(1498)], c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)][e(3039)](t), f = x[e(569)] + "/" + t, l = !x[e(1544)][e(3009)], d = e(2663) + (i || ""), g = x.opts[e(568)] && c && c[e(568)], h; - if (g ? (s += e(1311) + n + " = " + x[e(1975)][e(1186)](c.$data, i, x[e(662)]) + "; ", h = "schema" + n) : h = c, !(g || typeof c == e(2665))) throw new Error(t + " must be number"); - s += e(2058) + n + ";if (", g && (s += " " + h + e(652) + h + " != 'number' || "), s += e(785) + n + e(2486) + d + e(1973) + h + ", ", x[e(1544)][e(2808)] ? s += e(1369) + n + e(2845) + n + e(1641) + x[e(1544)].multipleOfPrecision + " " : s += e(792) + n + e(1848) + n + ") ", s += e(2368), g && (s += e(1644)), s += e(3047); + const e = Z; + var s = " ", n = x.level, i = x[e(2585)], c = x[e(2238)][t], u = x[e(1913)] + x[e(3036)][e(2528)](t), d = x[e(601)] + "/" + t, l = !x[e(569)][e(2354)], f = "data" + (i || ""), g = x[e(569)][e(2624)] && c && c.$data, h; + if (g ? (s += e(1643) + n + " = " + x[e(3036)][e(2802)](c[e(2624)], i, x[e(2140)]) + "; ", h = "schema" + n) : h = c, !(g || typeof c == "number")) throw new Error(t + e(1519)); + s += e(1837) + n + e(2794), g && (s += " " + h + e(2080) + h + e(2511)), s += e(2735) + n + e(1035) + f + e(1189) + h + ", ", x.opts[e(1326)] ? s += " Math.abs(Math.round(division" + n + e(977) + n + e(700) + x.opts[e(1326)] + " " : s += e(2459) + n + " !== parseInt(division" + n + ") ", s += e(866), g && (s += e(2722)), s += e(621); var m = m || []; - m[e(3062)](s), s = "", x.createErrors !== !1 ? (s += e(1108) + "multipleOf" + e(2387) + x[e(1935)] + e(2278) + x[e(1975)][e(1767)](f) + e(1911) + h + e(1411), x[e(1544)].messages !== !1 && (s += e(2680), g ? s += e(1064) + h : s += "" + h + "'"), x.opts.verbose && (s += e(2827), g ? s += e(1063) + u : s += "" + c, s += e(2989) + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261); + m[e(3019)](s), s = "", x.createErrors !== !1 ? (s += e(2793) + e(2342) + e(795) + x[e(1115)] + e(1218) + x.util[e(782)](d) + " , params: { multipleOf: " + h + e(2670), x.opts[e(709)] !== !1 && (s += e(849), g ? s += e(1238) + h : s += "" + h + "'"), x[e(569)][e(2330)] && (s += " , schema: ", g ? s += e(2139) + u : s += "" + c, s += e(1167) + x.schemaPath + " , data: " + f + " "), s += e(2670)) : s += e(331); var v = s; - return s = m[e(2900)](), !x.compositeRule && l ? x[e(2416)] ? s += e(1499) + v + e(2300) : s += " validate.errors = [" + v + e(702) : s += e(2636) + v + e(2653), s += "} ", l && (s += " else { "), s; + return s = m[e(2906)](), !x[e(1629)] && l ? x[e(2538)] ? s += e(1464) + v + e(1420) : s += e(1973) + v + e(1948) : s += e(1533) + v + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", s += "} ", l && (s += " else { "), s; }), Pt; } -var It, Mr; -function k2() { - return Mr || (Mr = 1, It = function(x, t, r) { - const e = K; - var s = " ", n = x.level, i = x[e(1498)], c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)].getProperty(t), f = x[e(569)] + "/" + t, l = !x[e(1544)][e(3009)], d = e(2663) + (i || ""), g = e(1870) + n, h = x[e(1975)][e(2615)](x); - h[e(1082)]++; - var m = e(1122) + h[e(1082)]; - if (x[e(1544)][e(868)] ? typeof c == e(1304) && Object[e(2123)](c).length > 0 || c === !1 : x[e(1975)][e(1733)](c, x[e(2996)][e(1096)])) { - h[e(1425)] = c, h.schemaPath = u, h.errSchemaPath = f, s += e(2675) + g + " = errors; "; - var v = x[e(2612)]; - x[e(2612)] = h[e(2612)] = !0, h[e(559)] = !1; +var It, Lr; +function yc() { + return Lr || (Lr = 1, It = function(x, t, r) { + const e = Z; + var s = " ", n = x.level, i = x.dataLevel, c = x[e(2238)][t], u = x[e(1913)] + x.util.getProperty(t), d = x[e(601)] + "/" + t, l = !x[e(569)].allErrors, f = e(1506) + (i || ""), g = e(2233) + n, h = x[e(3036)][e(1051)](x); + h.level++; + var m = e(467) + h[e(1113)]; + if (x.opts[e(493)] ? typeof c == e(2220) && Object[e(1877)](c).length > 0 || c === !1 : x[e(3036)][e(793)](c, x.RULES[e(2497)])) { + h.schema = c, h[e(1913)] = u, h[e(601)] = d, s += " var " + g + e(2149); + var v = x.compositeRule; + x[e(1629)] = h.compositeRule = !0, h[e(2324)] = !1; var k; - h.opts[e(3009)] && (k = h[e(1544)][e(3009)], h[e(1544)].allErrors = !1), s += " " + x[e(3181)](h) + " ", h[e(559)] = !0, k && (h.opts.allErrors = k), x[e(2612)] = h[e(2612)] = v, s += e(1754) + m + e(1793); - var P = P || []; - P[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += e(1108) + "not' , dataPath: (dataPath || '') + " + x[e(1935)] + " , schemaPath: " + x[e(1975)][e(1767)](f) + e(1676), x[e(1544)].messages !== !1 && (s += " , message: 'should NOT be valid' "), x[e(1544)][e(2491)] && (s += e(1346) + u + " , parentSchema: validate.schema" + x.schemaPath + " , data: " + d + " "), s += e(1411)) : s += e(3261); + h[e(569)][e(2354)] && (k = h.opts[e(2354)], h[e(569)][e(2354)] = !1), s += " " + x[e(2029)](h) + " ", h.createErrors = !0, k && (h[e(569)][e(2354)] = k), x[e(1629)] = h[e(1629)] = v, s += " if (" + m + e(2767); + var I = I || []; + I[e(3019)](s), s = "", x[e(2324)] !== !1 ? (s += e(2793) + "not" + e(795) + x.errorPath + e(1218) + x[e(3036)][e(782)](d) + " , params: {} ", x[e(569)][e(709)] !== !1 && (s += e(1375)), x.opts[e(2330)] && (s += e(1426) + u + " , parentSchema: validate.schema" + x.schemaPath + " , data: " + f + " "), s += " } ") : s += " {} "; var T = s; - s = P[e(2900)](), !x[e(2612)] && l ? x[e(2416)] ? s += e(1499) + T + e(2300) : s += e(2213) + T + e(702) : s += e(2636) + T + e(2653), s += " } else { errors = " + g + e(1606) + g + ") vErrors.length = " + g + e(1999), x[e(1544)].allErrors && (s += e(1411)); - } else s += e(1381), x[e(559)] !== !1 ? (s += e(1108) + e(2535) + "' , dataPath: (dataPath || '') + " + x[e(1935)] + e(2278) + x.util[e(1767)](f) + e(1676), x.opts.messages !== !1 && (s += e(2927)), x[e(1544)][e(2491)] && (s += e(1346) + u + e(2408) + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261), s += e(2653), l && (s += e(2236)); + s = I[e(2906)](), !x.compositeRule && l ? x[e(2538)] ? s += e(1464) + T + e(1420) : s += e(1973) + T + e(1948) : s += e(1533) + T + e(1548), s += " } else { errors = " + g + e(2046) + g + e(2665) + g + e(2397), x[e(569)][e(2354)] && (s += e(2670)); + } else s += " var err = ", x[e(2324)] !== !1 ? (s += " { keyword: '" + e(1409) + e(795) + x[e(1115)] + e(1218) + x[e(3036)][e(782)](d) + " , params: {} ", x[e(569)][e(709)] !== !1 && (s += e(1375)), x.opts.verbose && (s += " , schema: validate.schema" + u + e(2366) + x[e(1913)] + e(2960) + f + " "), s += e(2670)) : s += e(331), s += e(1548), l && (s += " if (false) { "); return s; }), It; } -var Et, Lr; -function P2() { - return Lr || (Lr = 1, Et = function(x, t, r) { - const e = K; - var s = " ", n = x[e(1082)], i = x[e(1498)], c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)][e(3039)](t), f = x[e(569)] + "/" + t, l = !x[e(1544)][e(3009)], d = e(2663) + (i || ""), g = e(1122) + n, h = "errs__" + n, m = x[e(1975)][e(2615)](x), v = ""; - m[e(1082)]++; - var k = e(1122) + m[e(1082)], P = m[e(805)], T = e(842) + n, q = "passingSchemas" + n; - s += e(612) + h + e(1711) + T + e(1323) + g + e(1323) + q + e(3278); - var R = x[e(2612)]; - x.compositeRule = m.compositeRule = !0; - var E = c; - if (E) - for (var C, A = -1, O = E[e(2710)] - 1; A < O; ) - C = E[A += 1], (x.opts[e(868)] ? typeof C == e(1304) && Object[e(2123)](C).length > 0 || C === !1 : x[e(1975)][e(1733)](C, x.RULES[e(1096)])) ? (m[e(1425)] = C, m.schemaPath = u + "[" + A + "]", m.errSchemaPath = f + "/" + A, s += " " + x.validate(m) + " ", m.baseId = P) : s += e(2675) + k + e(2411), A && (s += e(1754) + k + " && " + T + e(2834) + g + e(1500) + q + e(2498) + q + ", " + A + e(1308), v += "}"), s += e(1754) + k + ") { " + g + " = " + T + e(2411) + q + " = " + A + e(501); - return x.compositeRule = m.compositeRule = R, s += "" + v + e(1778) + g + ") { var err = ", x[e(559)] !== !1 ? (s += e(1108) + e(2547) + e(2387) + x[e(1935)] + e(2278) + x.util.toQuotedString(f) + " , params: { passingSchemas: " + q + " } ", x[e(1544)][e(1696)] !== !1 && (s += e(3008)), x[e(1544)][e(2491)] && (s += e(1346) + u + e(2408) + x[e(1262)] + " , data: " + d + " "), s += e(1411)) : s += e(3261), s += e(2653), !x[e(2612)] && l && (x[e(2416)] ? s += e(903) : s += e(1021)), s += e(1943) + h + e(1606) + h + e(2563) + h + e(598), x[e(1544)][e(3009)] && (s += e(1411)), s; +var Et, Mr; +function vc() { + return Mr || (Mr = 1, Et = function(x, t, r) { + const e = Z; + var s = " ", n = x[e(1113)], i = x[e(2585)], c = x.schema[t], u = x[e(1913)] + x[e(3036)][e(2528)](t), d = x[e(601)] + "/" + t, l = !x[e(569)][e(2354)], f = e(1506) + (i || ""), g = e(467) + n, h = e(2233) + n, m = x[e(3036)][e(1051)](x), v = ""; + m.level++; + var k = e(467) + m[e(1113)], I = m[e(882)], T = e(522) + n, q = e(452) + n; + s += "var " + h + e(1430) + T + e(2877) + g + e(2877) + q + " = null; "; + var R = x[e(1629)]; + x[e(1629)] = m.compositeRule = !0; + var P = c; + if (P) + for (var C, j = -1, D = P[e(1148)] - 1; j < D; ) + C = P[j += 1], (x.opts[e(493)] ? typeof C == e(2220) && Object.keys(C).length > 0 || C === !1 : x.util[e(793)](C, x[e(730)].all)) ? (m[e(2238)] = C, m[e(1913)] = u + "[" + j + "]", m[e(601)] = d + "/" + j, s += " " + x.validate(m) + " ", m[e(882)] = I) : s += e(465) + k + e(2839), j && (s += e(982) + k + e(997) + T + ") { " + g + e(1734) + q + e(1450) + q + ", " + j + e(1050), v += "}"), s += e(982) + k + e(2719) + g + e(1035) + T + e(2839) + q + e(1035) + j + e(2569); + return x.compositeRule = m[e(1629)] = R, s += "" + v + e(2817) + g + e(1425), x[e(2324)] !== !1 ? (s += " { keyword: 'oneOf" + e(795) + x[e(1115)] + " , schemaPath: " + x[e(3036)][e(782)](d) + e(2655) + q + e(2670), x[e(569)][e(709)] !== !1 && (s += e(2097)), x.opts.verbose && (s += e(1426) + u + " , parentSchema: validate.schema" + x[e(1913)] + e(2960) + f + " "), s += e(2670)) : s += " {} ", s += e(1548), !x[e(1629)] && l && (x.async ? s += " throw new ValidationError(vErrors); " : s += e(2313)), s += "} else { errors = " + h + "; if (vErrors !== null) { if (" + h + e(2665) + h + e(2217), x[e(569)][e(2354)] && (s += e(2670)), s; }), Et; } var Rt, $r; -function I2() { +function wc() { return $r || ($r = 1, Rt = function(x, t, r) { - const e = K; - var s = " ", n = x[e(1082)], i = x.dataLevel, c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)].getProperty(t), f = x[e(569)] + "/" + t, l = !x[e(1544)].allErrors, d = e(2663) + (i || ""), g = x[e(1544)].$data && c && c[e(568)], h; - g ? (s += " var schema" + n + e(2486) + x[e(1975)][e(1186)](c[e(568)], i, x.dataPathArr) + "; ", h = e(1425) + n) : h = c; - var m = g ? e(2931) + h + "))" : x[e(2399)](c); - s += "if ( ", g && (s += " (" + h + e(2439) + h + e(2232)), s += " !" + m + e(2947) + d + e(1042); + const e = Z; + var s = " ", n = x.level, i = x.dataLevel, c = x[e(2238)][t], u = x.schemaPath + x[e(3036)].getProperty(t), d = x[e(601)] + "/" + t, l = !x[e(569)][e(2354)], f = e(1506) + (i || ""), g = x[e(569)][e(2624)] && c && c.$data, h; + g ? (s += " var schema" + n + e(1035) + x[e(3036)].getData(c.$data, i, x[e(2140)]) + "; ", h = "schema" + n) : h = c; + var m = g ? "(new RegExp(" + h + "))" : x[e(708)](c); + s += e(2843), g && (s += " (" + h + e(850) + h + e(2349)), s += " !" + m + ".test(" + f + e(2141); var v = v || []; - v[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += e(1108) + e(526) + e(2387) + x.errorPath + e(2278) + x[e(1975)][e(1767)](f) + " , params: { pattern: ", g ? s += "" + h : s += "" + x[e(1975)][e(1767)](c), s += e(3186), x[e(1544)][e(1696)] !== !1 && (s += e(2244), g ? s += e(1064) + h + e(2519) : s += "" + x.util.escapeQuotes(c), s += `"' `), x[e(1544)][e(2491)] && (s += e(2827), g ? s += e(1063) + u : s += "" + x[e(1975)][e(1767)](c), s += e(2989) + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261); + v[e(3019)](s), s = "", x.createErrors !== !1 ? (s += e(2793) + e(2248) + "' , dataPath: (dataPath || '') + " + x[e(1115)] + e(1218) + x[e(3036)].toQuotedString(d) + " , params: { pattern: ", g ? s += "" + h : s += "" + x[e(3036)][e(782)](c), s += e(1600), x[e(569)].messages !== !1 && (s += e(839), g ? s += e(1238) + h + " + '" : s += "" + x[e(3036)].escapeQuotes(c), s += e(2661)), x[e(569)][e(2330)] && (s += e(1221), g ? s += e(2139) + u : s += "" + x[e(3036)][e(782)](c), s += e(1167) + x[e(1913)] + e(2960) + f + " "), s += " } ") : s += " {} "; var k = s; - return s = v[e(2900)](), !x[e(2612)] && l ? x[e(2416)] ? s += " throw new ValidationError([" + k + "]); " : s += e(2213) + k + e(702) : s += e(2636) + k + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", s += "} ", l && (s += " else { "), s; + return s = v[e(2906)](), !x[e(1629)] && l ? x[e(2538)] ? s += e(1464) + k + e(1420) : s += e(1973) + k + "]; return false; " : s += " var err = " + k + e(1548), s += "} ", l && (s += e(401)), s; }), Rt; } var Ct, Ur; -function E2() { +function Sc() { return Ur || (Ur = 1, Ct = function(x, t, r) { - const e = K; - var s = " ", n = x[e(1082)], i = x[e(1498)], c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)].getProperty(t), f = x[e(569)] + "/" + t, l = !x[e(1544)][e(3009)], d = e(2663) + (i || ""), g = "errs__" + n, h = x[e(1975)][e(2615)](x), m = ""; - h[e(1082)]++; - var v = e(1122) + h.level, k = e(480) + n, P = "idx" + n, T = h[e(1498)] = x[e(1498)] + 1, q = e(2663) + T, R = e(2541) + n, E = Object[e(2123)](c || {})[e(2581)](fe), C = x[e(1425)][e(1688)] || {}, A = Object.keys(C).filter(fe), O = x[e(1425)][e(1872)], M = E[e(2710)] || A[e(2710)], _ = O === !1, N = typeof O == e(1304) && Object.keys(O).length, z = x[e(1544)][e(3137)], U = _ || N || z, H = x[e(1544)][e(951)], G = x.baseId, re = x[e(1425)].required; - if (re && !(x.opts[e(568)] && re[e(568)]) && re[e(2710)] < x[e(1544)].loopRequired) var se = x[e(1975)][e(709)](re); - function fe(Lx) { - return Lx !== e(1134); + const e = Z; + var s = " ", n = x[e(1113)], i = x[e(2585)], c = x[e(2238)][t], u = x.schemaPath + x[e(3036)][e(2528)](t), d = x[e(601)] + "/" + t, l = !x[e(569)].allErrors, f = e(1506) + (i || ""), g = e(2233) + n, h = x.util[e(1051)](x), m = ""; + h[e(1113)]++; + var v = e(467) + h[e(1113)], k = e(2651) + n, I = "idx" + n, T = h[e(2585)] = x[e(2585)] + 1, q = e(1506) + T, R = e(2648) + n, P = Object.keys(c || {}).filter(le), C = x[e(2238)][e(1073)] || {}, j = Object[e(1877)](C)[e(362)](le), D = x[e(2238)][e(435)], O = P.length || j.length, N = D === !1, _ = typeof D == e(2220) && Object[e(1877)](D).length, z = x[e(569)][e(1074)], U = N || _ || z, H = x[e(569)][e(520)], G = x[e(882)], ie = x[e(2238)][e(747)]; + if (ie && !(x[e(569)].$data && ie[e(2624)]) && ie.length < x.opts[e(3046)]) var ue = x[e(3036)][e(1655)](ie); + function le(Mx) { + return Mx !== e(2806); } - if (s += "var " + g + e(1156) + v + e(879), H && (s += " var " + R + e(2809)), U) { - if (H ? s += " " + R + " = " + R + e(2865) + d + e(1427) + P + e(599) + P + "<" + R + e(2838) + P + "++) { var " + k + e(2486) + R + "[" + P + e(3243) : s += e(2682) + k + e(1760) + d + e(2834), M) { - if (s += " var isAdditional" + n + e(2217), E[e(2710)]) - if (E[e(2710)] > 8) s += " || validate.schema" + u + e(3085) + k + ") "; + if (s += e(2161) + g + e(288) + v + " = true;", H && (s += e(465) + R + " = undefined;"), U) { + if (H ? s += " " + R + " = " + R + e(702) + f + e(1232) + I + e(2221) + I + "<" + R + e(1609) + I + e(764) + k + e(1035) + R + "[" + I + "]; " : s += e(1397) + k + e(672) + f + e(2719), O) { + if (s += " var isAdditional" + n + e(1526), P.length) + if (P[e(1148)] > 8) s += e(1457) + u + e(618) + k + ") "; else { - var de = E; - if (de) - for (var le, Se = -1, _e = de[e(2710)] - 1; Se < _e; ) - le = de[Se += 1], s += " || " + k + e(574) + x.util[e(1767)](le) + " "; + var oe = P; + if (oe) + for (var fe, Pe = -1, ye = oe[e(1148)] - 1; Pe < ye; ) + fe = oe[Pe += 1], s += e(2312) + k + " == " + x[e(3036)][e(782)](fe) + " "; } - if (A[e(2710)]) { - var Me = A; - if (Me) - for (var Fe, Je = -1, D = Me[e(2710)] - 1; Je < D; ) - Fe = Me[Je += 1], s += e(1887) + x[e(2399)](Fe) + e(2947) + k + ") "; + if (j[e(1148)]) { + var Le = j; + if (Le) + for (var _e, Je = -1, A = Le[e(1148)] - 1; Je < A; ) + _e = Le[Je += 1], s += e(2312) + x[e(708)](_e) + ".test(" + k + ") "; } - s += e(687) + n + ") { "; + s += " ); if (isAdditional" + n + ") { "; } - if (z == e(1096)) s += " delete " + d + "[" + k + e(3243); + if (z == e(2497)) s += e(2961) + f + "[" + k + "]; "; else { - var F = x[e(1935)], j = e(1064) + k + e(2519); - if (x[e(1544)][e(3124)] && (x[e(1935)] = x.util.getPathExpr(x[e(1935)], k, x.opts[e(2761)])), _) - if (z) s += e(2536) + d + "[" + k + e(3243); + var F = x[e(1115)], L = e(1238) + k + e(2601); + if (x[e(569)][e(280)] && (x[e(1115)] = x.util[e(696)](x[e(1115)], k, x[e(569)][e(1448)])), N) + if (z) s += e(2961) + f + "[" + k + "]; "; else { s += " " + v + " = false; "; - var J = f; - f = x[e(569)] + e(1527); - var X = X || []; - X[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += e(1108) + e(1872) + e(2387) + x.errorPath + e(2278) + x.util.toQuotedString(f) + e(1882) + j + e(871), x[e(1544)][e(1696)] !== !1 && (s += e(1531), x[e(1544)]._errorDataPathProperty ? s += e(768) : s += e(2277), s += "' "), x[e(1544)][e(2491)] && (s += " , schema: false , parentSchema: validate.schema" + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += " {} "; + var J = d; + d = x[e(601)] + e(1442); + var ee = ee || []; + ee.push(s), s = "", x[e(2324)] !== !1 ? (s += e(2793) + e(435) + e(795) + x.errorPath + " , schemaPath: " + x[e(3036)][e(782)](d) + e(2964) + L + e(1390), x.opts.messages !== !1 && (s += e(2199), x[e(569)]._errorDataPathProperty ? s += e(1532) : s += e(627), s += "' "), x[e(569)].verbose && (s += e(985) + x[e(1913)] + e(2960) + f + " "), s += e(2670)) : s += e(331); var V = s; - s = X[e(2900)](), !x[e(2612)] && l ? x[e(2416)] ? s += e(1499) + V + e(2300) : s += e(2213) + V + "]; return false; " : s += e(2636) + V + e(2653), f = J, l && (s += e(3239)); + s = ee.pop(), !x[e(1629)] && l ? x[e(2538)] ? s += " throw new ValidationError([" + V + "]); " : s += e(1973) + V + "]; return false; " : s += e(1533) + V + e(1548), d = J, l && (s += e(1801)); } - else if (N) - if (z == "failing") { - s += e(2675) + g + e(493); - var Y = x[e(2612)]; - x[e(2612)] = h.compositeRule = !0, h[e(1425)] = O, h[e(1262)] = x[e(1262)] + e(2466), h[e(569)] = x[e(569)] + e(1527), h[e(1935)] = x[e(1544)][e(3124)] ? x[e(1935)] : x[e(1975)][e(2126)](x[e(1935)], k, x[e(1544)].jsonPointers); - var ce = d + "[" + k + "]"; - h[e(662)][T] = k; - var oe = x.validate(h); - h[e(805)] = G, x[e(1975)][e(1109)](oe, q) < 2 ? s += " " + x.util[e(650)](oe, q, ce) + " " : s += e(2675) + q + e(2486) + ce + "; " + oe + " ", s += e(1102) + v + e(2578) + g + "; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete " + d + "[" + k + e(2209), x.compositeRule = h[e(2612)] = Y; + else if (_) + if (z == e(2975)) { + s += e(465) + g + e(2149); + var X = x[e(1629)]; + x[e(1629)] = h[e(1629)] = !0, h[e(2238)] = D, h[e(1913)] = x[e(1913)] + ".additionalProperties", h.errSchemaPath = x[e(601)] + e(1442), h[e(1115)] = x[e(569)][e(280)] ? x[e(1115)] : x[e(3036)][e(696)](x.errorPath, k, x[e(569)].jsonPointers); + var ce = f + "[" + k + "]"; + h[e(2140)][T] = k; + var se = x.validate(h); + h.baseId = G, x[e(3036)].varOccurences(se, q) < 2 ? s += " " + x[e(3036)][e(1350)](se, q, ce) + " " : s += e(465) + q + " = " + ce + "; " + se + " ", s += e(543) + v + e(2178) + g + e(313) + f + "[" + k + e(1947), x[e(1629)] = h[e(1629)] = X; } else { - h[e(1425)] = O, h.schemaPath = x[e(1262)] + e(2466), h[e(569)] = x.errSchemaPath + e(1527), h[e(1935)] = x.opts[e(3124)] ? x[e(1935)] : x[e(1975)][e(2126)](x[e(1935)], k, x[e(1544)][e(2761)]); - var ce = d + "[" + k + "]"; - h[e(662)][T] = k; - var oe = x[e(3181)](h); - h[e(805)] = G, x[e(1975)].varOccurences(oe, q) < 2 ? s += " " + x[e(1975)][e(650)](oe, q, ce) + " " : s += e(2675) + q + e(2486) + ce + "; " + oe + " ", l && (s += e(1102) + v + e(1418)); + h[e(2238)] = D, h[e(1913)] = x[e(1913)] + e(1805), h[e(601)] = x[e(601)] + e(1442), h[e(1115)] = x[e(569)][e(280)] ? x.errorPath : x[e(3036)][e(696)](x.errorPath, k, x.opts.jsonPointers); + var ce = f + "[" + k + "]"; + h[e(2140)][T] = k; + var se = x[e(2029)](h); + h[e(882)] = G, x[e(3036)][e(2741)](se, q) < 2 ? s += " " + x[e(3036)][e(1350)](se, q, ce) + " " : s += " var " + q + e(1035) + ce + "; " + se + " ", l && (s += e(543) + v + ") break; "); } - x[e(1935)] = F; + x[e(1115)] = F; } - M && (s += e(1411)), s += e(2204), l && (s += " if (" + v + ") { ", m += "}"); + O && (s += " } "), s += e(2750), l && (s += e(982) + v + e(2719), m += "}"); } - var te = x[e(1544)][e(2088)] && !x[e(2612)]; - if (E[e(2710)]) { - var Le = E; - if (Le) - for (var le, Ae = -1, ze = Le[e(2710)] - 1; Ae < ze; ) { - le = Le[Ae += 1]; - var ke = c[le]; - if (x[e(1544)][e(868)] ? typeof ke == e(1304) && Object.keys(ke).length > 0 || ke === !1 : x[e(1975)].schemaHasRules(ke, x[e(2996)].all)) { - var Ge = x[e(1975)].getProperty(le), ce = d + Ge, n0 = te && ke[e(2485)] !== void 0; - h.schema = ke, h.schemaPath = u + Ge, h[e(569)] = f + "/" + x.util.escapeFragment(le), h[e(1935)] = x[e(1975)][e(3077)](x[e(1935)], le, x[e(1544)][e(2761)]), h.dataPathArr[T] = x.util[e(1767)](le); - var oe = x[e(3181)](h); - if (h[e(805)] = G, x.util.varOccurences(oe, q) < 2) { - oe = x[e(1975)][e(650)](oe, q, ce); + var te = x[e(569)][e(1626)] && !x[e(1629)]; + if (P.length) { + var Me = P; + if (Me) + for (var fe, Ae = -1, ze = Me[e(1148)] - 1; Ae < ze; ) { + fe = Me[Ae += 1]; + var ke = c[fe]; + if (x.opts[e(493)] ? typeof ke == e(2220) && Object[e(1877)](ke).length > 0 || ke === !1 : x.util[e(793)](ke, x[e(730)].all)) { + var Ge = x[e(3036)].getProperty(fe), ce = f + Ge, n0 = te && ke[e(2096)] !== void 0; + h[e(2238)] = ke, h[e(1913)] = u + Ge, h.errSchemaPath = d + "/" + x[e(3036)][e(2095)](fe), h.errorPath = x[e(3036)][e(320)](x.errorPath, fe, x[e(569)][e(1448)]), h[e(2140)][T] = x.util[e(782)](fe); + var se = x[e(2029)](h); + if (h[e(882)] = G, x.util.varOccurences(se, q) < 2) { + se = x[e(3036)][e(1350)](se, q, ce); var Qe = ce; } else { var Qe = q; - s += e(2675) + q + e(2486) + ce + "; "; + s += e(465) + q + e(1035) + ce + "; "; } - if (n0) s += " " + oe + " "; + if (n0) s += " " + se + " "; else { - if (se && se[le]) { - s += e(836) + Qe + " === undefined ", H && (s += e(1578) + d + e(1167) + x[e(1975)].escapeQuotes(le) + e(2901)), s += ") { " + v + e(1500); - var F = x[e(1935)], J = f, Oe = x[e(1975)].escapeQuotes(le); - x[e(1544)][e(3124)] && (x[e(1935)] = x[e(1975)][e(3077)](F, le, x[e(1544)][e(2761)])), f = x.errSchemaPath + e(1359); - var X = X || []; - X[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += e(1108) + e(2438) + e(2387) + x[e(1935)] + e(2278) + x[e(1975)].toQuotedString(f) + e(2549) + Oe + e(871), x[e(1544)][e(1696)] !== !1 && (s += e(1531), x[e(1544)][e(3124)] ? s += "is a required property" : s += "should have required property \\'" + Oe + "\\'", s += "' "), x[e(1544)][e(2491)] && (s += e(1346) + u + e(2408) + x[e(1262)] + e(1844) + d + " "), s += " } ") : s += e(3261); + if (ue && ue[fe]) { + s += e(1992) + Qe + " === undefined ", H && (s += e(2274) + f + ", '" + x[e(3036)][e(1783)](fe) + e(1414)), s += e(2719) + v + e(1734); + var F = x[e(1115)], J = d, Oe = x[e(3036)][e(1783)](fe); + x[e(569)][e(280)] && (x[e(1115)] = x[e(3036)][e(320)](F, fe, x[e(569)][e(1448)])), d = x[e(601)] + "/required"; + var ee = ee || []; + ee.push(s), s = "", x[e(2324)] !== !1 ? (s += " { keyword: '" + e(747) + "' , dataPath: (dataPath || '') + " + x[e(1115)] + " , schemaPath: " + x[e(3036)][e(782)](d) + e(2449) + Oe + e(1390), x[e(569)][e(709)] !== !1 && (s += e(2199), x[e(569)]._errorDataPathProperty ? s += e(1660) : s += e(2641) + Oe + "\\'", s += "' "), x[e(569)][e(2330)] && (s += e(1426) + u + " , parentSchema: validate.schema" + x[e(1913)] + e(2960) + f + " "), s += e(2670)) : s += e(331); var V = s; - s = X[e(2900)](), !x.compositeRule && l ? x[e(2416)] ? s += " throw new ValidationError([" + V + "]); " : s += e(2213) + V + "]; return false; " : s += " var err = " + V + e(2653), f = J, x[e(1935)] = F, s += e(761); - } else l ? (s += e(836) + Qe + e(562), H && (s += " || ! Object.prototype.hasOwnProperty.call(" + d + e(1167) + x.util[e(1265)](le) + e(2901)), s += ") { " + v + " = true; } else { ") : (s += e(1754) + Qe + e(1949), H && (s += " && Object.prototype.hasOwnProperty.call(" + d + e(1167) + x[e(1975)][e(1265)](le) + e(2901)), s += e(774)); - s += " " + oe + e(1411); + s = ee[e(2906)](), !x[e(1629)] && l ? x.async ? s += " throw new ValidationError([" + V + e(1420) : s += e(1973) + V + "]; return false; " : s += e(1533) + V + e(1548), d = J, x[e(1115)] = F, s += e(2471); + } else l ? (s += " if ( " + Qe + e(1461), H && (s += e(2274) + f + e(1453) + x[e(3036)][e(1783)](fe) + e(1414)), s += ") { " + v + " = true; } else { ") : (s += " if (" + Qe + e(1961), H && (s += e(367) + f + ", '" + x[e(3036)].escapeQuotes(fe) + e(1414)), s += " ) { "); + s += " " + se + " } "; } } - l && (s += " if (" + v + e(2834), m += "}"); + l && (s += " if (" + v + ") { ", m += "}"); } } - if (A.length) { - var He = A; + if (j[e(1148)]) { + var He = j; if (He) - for (var Fe, Ye = -1, M0 = He[e(2710)] - 1; Ye < M0; ) { - Fe = He[Ye += 1]; - var ke = C[Fe]; - if (x[e(1544)][e(868)] ? typeof ke == e(1304) && Object.keys(ke)[e(2710)] > 0 || ke === !1 : x[e(1975)][e(1733)](ke, x[e(2996)][e(1096)])) { - h[e(1425)] = ke, h[e(1262)] = x[e(1262)] + ".patternProperties" + x[e(1975)][e(3039)](Fe), h[e(569)] = x.errSchemaPath + e(2107) + x[e(1975)][e(1675)](Fe), H ? s += " " + R + e(2486) + R + e(2865) + d + e(1427) + P + "=0; " + P + "<" + R + e(2838) + P + "++) { var " + k + e(2486) + R + "[" + P + "]; " : s += e(2682) + k + e(1760) + d + e(2834), s += " if (" + x[e(2399)](Fe) + e(2947) + k + e(2154), h[e(1935)] = x.util.getPathExpr(x[e(1935)], k, x[e(1544)][e(2761)]); - var ce = d + "[" + k + "]"; - h[e(662)][T] = k; - var oe = x[e(3181)](h); - h[e(805)] = G, x[e(1975)].varOccurences(oe, q) < 2 ? s += " " + x[e(1975)][e(650)](oe, q, ce) + " " : s += e(2675) + q + e(2486) + ce + "; " + oe + " ", l && (s += e(1102) + v + ") break; "), s += e(1411), l && (s += e(2695) + v + e(2411)), s += e(2204), l && (s += e(1754) + v + e(2834), m += "}"); + for (var _e, Ye = -1, ux = He.length - 1; Ye < ux; ) { + _e = He[Ye += 1]; + var ke = C[_e]; + if (x[e(569)][e(493)] ? typeof ke == e(2220) && Object[e(1877)](ke)[e(1148)] > 0 || ke === !1 : x[e(3036)].schemaHasRules(ke, x.RULES[e(2497)])) { + h[e(2238)] = ke, h[e(1913)] = x[e(1913)] + e(2948) + x[e(3036)].getProperty(_e), h[e(601)] = x[e(601)] + "/patternProperties/" + x[e(3036)].escapeFragment(_e), H ? s += " " + R + e(1035) + R + " || Object.keys(" + f + "); for (var " + I + e(2221) + I + "<" + R + e(1609) + I + e(764) + k + " = " + R + "[" + I + e(1327) : s += e(1397) + k + " in " + f + e(2719), s += e(982) + x.usePattern(_e) + e(1406) + k + e(1822), h[e(1115)] = x[e(3036)].getPathExpr(x.errorPath, k, x.opts.jsonPointers); + var ce = f + "[" + k + "]"; + h[e(2140)][T] = k; + var se = x[e(2029)](h); + h[e(882)] = G, x[e(3036)][e(2741)](se, q) < 2 ? s += " " + x[e(3036)][e(1350)](se, q, ce) + " " : s += e(465) + q + e(1035) + ce + "; " + se + " ", l && (s += " if (!" + v + e(332)), s += e(2670), l && (s += e(311) + v + e(2839)), s += " } ", l && (s += e(982) + v + e(2719), m += "}"); } } } - return l && (s += " " + m + e(1754) + g + e(2448)), s; + return l && (s += " " + m + e(982) + g + " == errors) {"), s; }), Ct; } -var _t, zr; -function R2() { - return zr || (zr = 1, _t = function(x, t, r) { - const e = K; - var s = " ", n = x[e(1082)], i = x.dataLevel, c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)].getProperty(t), f = x[e(569)] + "/" + t, l = !x[e(1544)].allErrors, d = e(2663) + (i || ""), g = "errs__" + n, h = x[e(1975)].copy(x), m = ""; - h[e(1082)]++; - var v = e(1122) + h.level; - if (s += e(612) + g + " = errors;", x[e(1544)].strictKeywords ? typeof c == e(1304) && Object[e(2123)](c).length > 0 || c === !1 : x[e(1975)][e(1733)](c, x.RULES[e(1096)])) { - h[e(1425)] = c, h.schemaPath = u, h.errSchemaPath = f; - var k = e(480) + n, P = e(1035) + n, T = "i" + n, q = e(1064) + k + e(2519), R = h[e(1498)] = x[e(1498)] + 1, E = "data" + R, C = e(2541) + n, A = x[e(1544)][e(951)], O = x[e(805)]; - A && (s += e(2675) + C + e(1415)), A ? s += " " + C + e(2486) + C + e(2865) + d + e(1427) + P + e(599) + P + "<" + C + e(2838) + P + e(1921) + k + " = " + C + "[" + P + e(3243) : s += e(2682) + k + e(1760) + d + e(2834), s += e(1103) + n + " = errors; "; - var M = k, _ = x[e(2612)]; - x[e(2612)] = h[e(2612)] = !0; - var N = x.validate(h); - h.baseId = O, x.util[e(1109)](N, E) < 2 ? s += " " + x.util[e(650)](N, E, M) + " " : s += " var " + E + " = " + M + "; " + N + " ", x[e(2612)] = h[e(2612)] = _, s += " if (!" + v + e(1163) + T + e(2651) + n + "; " + T + e(1989) + T + e(2599) + T + "].propertyName = " + k + e(1717), x[e(559)] !== !1 ? (s += e(1108) + "propertyNames" + e(2387) + x.errorPath + e(2278) + x[e(1975)][e(1767)](f) + " , params: { propertyName: '" + q + e(871), x.opts[e(1696)] !== !1 && (s += e(1086) + q + "\\' is invalid' "), x[e(1544)][e(2491)] && (s += e(1346) + u + " , parentSchema: validate.schema" + x.schemaPath + " , data: " + d + " "), s += " } ") : s += e(3261), s += e(2653), !x[e(2612)] && l && (x[e(2416)] ? s += e(903) : s += e(1021)), l && (s += e(3239)), s += e(1250); +var Ft, zr; +function kc() { + return zr || (zr = 1, Ft = function(x, t, r) { + const e = Z; + var s = " ", n = x[e(1113)], i = x[e(2585)], c = x.schema[t], u = x.schemaPath + x[e(3036)][e(2528)](t), d = x[e(601)] + "/" + t, l = !x.opts[e(2354)], f = e(1506) + (i || ""), g = e(2233) + n, h = x.util[e(1051)](x), m = ""; + h[e(1113)]++; + var v = e(467) + h.level; + if (s += e(2161) + g + e(825), x.opts[e(493)] ? typeof c == e(2220) && Object[e(1877)](c)[e(1148)] > 0 || c === !1 : x[e(3036)].schemaHasRules(c, x.RULES[e(2497)])) { + h[e(2238)] = c, h.schemaPath = u, h.errSchemaPath = d; + var k = e(2651) + n, I = "idx" + n, T = "i" + n, q = e(1238) + k + e(2601), R = h.dataLevel = x[e(2585)] + 1, P = e(1506) + R, C = e(2648) + n, j = x[e(569)][e(520)], D = x[e(882)]; + j && (s += e(465) + C + e(2048)), j ? s += " " + C + e(1035) + C + e(702) + f + "); for (var " + I + e(2221) + I + "<" + C + ".length; " + I + e(764) + k + e(1035) + C + "[" + I + "]; " : s += " for (var " + k + " in " + f + ") { ", s += e(1247) + n + " = errors; "; + var O = k, N = x[e(1629)]; + x[e(1629)] = h[e(1629)] = !0; + var _ = x[e(2029)](h); + h[e(882)] = D, x[e(3036)][e(2741)](_, P) < 2 ? s += " " + x.util[e(1350)](_, P, O) + " " : s += e(465) + P + e(1035) + O + "; " + _ + " ", x[e(1629)] = h.compositeRule = N, s += e(543) + v + e(1312) + T + e(1661) + n + "; " + T + " 0 || q === !1 : x[e(1975)][e(1733)](q, x[e(2996)][e(1096)]))) && (R[R[e(2710)]] = k); - } - } else var R = c; - if (h || R[e(2710)]) { - var E = x[e(1935)], C = h || R.length >= x.opts[e(3094)], A = x.opts[e(951)]; - if (l) - if (s += e(1488) + n + "; ", C) { - !h && (s += e(2675) + m + e(1699) + u + "; "); - var O = "i" + n, M = "schema" + n + "[" + O + "]", _ = e(1064) + M + e(2519); - x[e(1544)][e(3124)] && (x[e(1935)] = x[e(1975)][e(2126)](E, M, x[e(1544)][e(2761)])), s += e(2675) + g + e(2411), h && (s += e(3121) + n + e(1144) + g + e(3244) + n + e(1345) + g + e(991)), s += e(2682) + O + e(2174) + O + " < " + m + ".length; " + O + e(609) + g + e(2486) + d + "[" + m + "[" + O + e(1420), A && (s += e(2647) + d + ", " + m + "[" + O + e(2894)), s += e(1221) + g + e(1360), h && (s += e(2882)), s += e(2919) + g + e(1793); - var N = N || []; - N[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += e(1108) + e(2438) + e(2387) + x[e(1935)] + " , schemaPath: " + x[e(1975)][e(1767)](f) + e(2549) + _ + "' } ", x[e(1544)][e(1696)] !== !1 && (s += e(1531), x[e(1544)][e(3124)] ? s += e(2892) : s += e(2407) + _ + "\\'", s += "' "), x[e(1544)].verbose && (s += e(1346) + u + e(2408) + x.schemaPath + e(1844) + d + " "), s += " } ") : s += " {} "; - var z = s; - s = N[e(2900)](), !x.compositeRule && l ? x[e(2416)] ? s += e(1499) + z + e(2300) : s += e(2213) + z + e(702) : s += e(2636) + z + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", s += " } else { "; - } else { - s += " if ( "; - var U = R; - if (U) - for (var H, O = -1, G = U.length - 1; O < G; ) { - H = U[O += 1], O && (s += e(1887)); - var re = x.util[e(3039)](H), se = d + re; - s += e(1330) + se + e(562), A && (s += e(1578) + d + e(1167) + x[e(1975)][e(1265)](H) + "') "), s += e(3033) + n + e(2486) + x[e(1975)].toQuotedString(x.opts.jsonPointers ? H : re) + e(2130); - } - s += e(929); - var M = "missing" + n, _ = e(1064) + M + e(2519); - x.opts[e(3124)] && (x.errorPath = x[e(1544)].jsonPointers ? x[e(1975)][e(2126)](E, M, !0) : E + " + " + M); - var N = N || []; - N[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += e(1108) + e(2438) + e(2387) + x.errorPath + " , schemaPath: " + x[e(1975)][e(1767)](f) + " , params: { missingProperty: '" + _ + e(871), x[e(1544)][e(1696)] !== !1 && (s += e(1531), x[e(1544)][e(3124)] ? s += e(2892) : s += e(2407) + _ + "\\'", s += "' "), x[e(1544)][e(2491)] && (s += e(1346) + u + " , parentSchema: validate.schema" + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261); - var z = s; - s = N[e(2900)](), !x[e(2612)] && l ? x[e(2416)] ? s += " throw new ValidationError([" + z + e(2300) : s += " validate.errors = [" + z + e(702) : s += e(2636) + z + e(2653), s += e(761); - } - else if (C) { - !h && (s += " var " + m + " = validate.schema" + u + "; "); - var O = "i" + n, M = e(1425) + n + "[" + O + "]", _ = "' + " + M + e(2519); - x[e(1544)]._errorDataPathProperty && (x[e(1935)] = x[e(1975)][e(2126)](E, M, x[e(1544)][e(2761)])), h && (s += e(1754) + m + " && !Array.isArray(" + m + e(1853), x.createErrors !== !1 ? (s += e(1108) + e(2438) + e(2387) + x[e(1935)] + e(2278) + x[e(1975)][e(1767)](f) + e(2549) + _ + "' } ", x[e(1544)][e(1696)] !== !1 && (s += e(1531), x.opts[e(3124)] ? s += "is a required property" : s += e(2407) + _ + "\\'", s += "' "), x[e(1544)][e(2491)] && (s += e(1346) + u + e(2408) + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261), s += e(1146) + m + e(2515)), s += " for (var " + O + " = 0; " + O + " < " + m + e(2838) + O + e(613) + d + "[" + m + "[" + O + e(825), A && (s += e(1578) + d + ", " + m + "[" + O + e(2894)), s += e(1939), x.createErrors !== !1 ? (s += e(1108) + e(2438) + e(2387) + x.errorPath + e(2278) + x.util[e(1767)](f) + e(2549) + _ + e(871), x[e(1544)][e(1696)] !== !1 && (s += e(1531), x.opts[e(3124)] ? s += "is a required property" : s += "should have required property \\'" + _ + "\\'", s += "' "), x[e(1544)][e(2491)] && (s += " , schema: validate.schema" + u + e(2408) + x[e(1262)] + e(1844) + d + " "), s += " } ") : s += e(3261), s += e(1009), h && (s += e(2882)); - } else { - var fe = R; - if (fe) - for (var H, de = -1, le = fe[e(2710)] - 1; de < le; ) { - H = fe[de += 1]; - var re = x[e(1975)][e(3039)](H), _ = x.util.escapeQuotes(H), se = d + re; - x[e(1544)][e(3124)] && (x.errorPath = x[e(1975)].getPath(E, H, x.opts[e(2761)])), s += " if ( " + se + e(562), A && (s += " || ! Object.prototype.hasOwnProperty.call(" + d + e(1167) + x[e(1975)][e(1265)](H) + e(2901)), s += e(1939), x[e(559)] !== !1 ? (s += e(1108) + e(2438) + e(2387) + x[e(1935)] + " , schemaPath: " + x[e(1975)][e(1767)](f) + " , params: { missingProperty: '" + _ + "' } ", x[e(1544)][e(1696)] !== !1 && (s += e(1531), x[e(1544)][e(3124)] ? s += e(2892) : s += "should have required property \\'" + _ + "\\'", s += "' "), x[e(1544)][e(2491)] && (s += e(1346) + u + " , parentSchema: validate.schema" + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += " {} ", s += e(2784); - } - } - x[e(1935)] = E; - } else l && (s += e(1107)); - return s; + return l && (s += " " + m + e(982) + g + e(2067)), s; }), Ft; } -var Tt, Vr; -function _2() { - return Vr || (Vr = 1, Tt = function(x, t, r) { - const e = K; - var s = " ", n = x[e(1082)], i = x.dataLevel, c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)][e(3039)](t), f = x.errSchemaPath + "/" + t, l = !x[e(1544)][e(3009)], d = e(2663) + (i || ""), g = e(1122) + n, h = x.opts[e(568)] && c && c[e(568)], m; - if (h ? (s += " var schema" + n + e(2486) + x[e(1975)].getData(c.$data, i, x[e(662)]) + "; ", m = "schema" + n) : m = c, (c || h) && x[e(1544)][e(1684)] !== !1) { - h && (s += " var " + g + "; if (" + m + " === false || " + m + " === undefined) " + g + e(1564) + m + e(2093) + g + " = false; else { "), s += e(1546) + d + e(3248) + g + e(1483); - var v = x.schema[e(2286)] && x.schema[e(2286)][e(2076)], k = Array[e(3255)](v); - if (!v || v == e(1304) || v == e(529) || k && (v.indexOf(e(1304)) >= 0 || v[e(2436)](e(529)) >= 0)) s += e(834) + d + e(3127) + d + e(2702) + g + " = false; break outer; } } } "; - else { - s += e(850) + d + e(2533); - var P = e(1947) + (k ? "s" : ""); - s += e(1754) + x[e(1975)][P](v, e(2624), x[e(1544)][e(1565)], !0) + e(2248), k && (s += e(2067)), s += e(2593) + g + e(2600); +var _t, Hr; +function Pc() { + return Hr || (Hr = 1, _t = function(x, t, r) { + const e = Z; + var s = " ", n = x[e(1113)], i = x[e(2585)], c = x[e(2238)][t], u = x[e(1913)] + x[e(3036)][e(2528)](t), d = x.errSchemaPath + "/" + t, l = !x[e(569)].allErrors, f = e(1506) + (i || ""), g = "valid" + n, h = x[e(569)].$data && c && c.$data; + h && (s += e(1643) + n + e(1035) + x[e(3036)][e(2802)](c[e(2624)], i, x[e(2140)]) + "; "); + var m = "schema" + n; + if (!h) + if (c[e(1148)] < x[e(569)][e(3046)] && x[e(2238)].properties && Object[e(1877)](x[e(2238)][e(1117)])[e(1148)]) { + var R = [], v = c; + if (v) + for (var k, I = -1, T = v[e(1148)] - 1; I < T; ) { + k = v[I += 1]; + var q = x[e(2238)][e(1117)][k]; + !(q && (x[e(569)].strictKeywords ? typeof q == e(2220) && Object[e(1877)](q)[e(1148)] > 0 || q === !1 : x[e(3036)][e(793)](q, x.RULES[e(2497)]))) && (R[R[e(1148)]] = k); + } + } else var R = c; + if (h || R[e(1148)]) { + var P = x[e(1115)], C = h || R[e(1148)] >= x[e(569)][e(3046)], j = x[e(569)][e(520)]; + if (l) + if (s += e(416) + n + "; ", C) { + !h && (s += e(465) + m + " = validate.schema" + u + "; "); + var D = "i" + n, O = e(2238) + n + "[" + D + "]", N = e(1238) + O + e(2601); + x[e(569)][e(280)] && (x.errorPath = x.util[e(696)](P, O, x[e(569)][e(1448)])), s += e(465) + g + " = true; ", h && (s += e(1624) + n + e(2537) + g + " = true; else if (!Array.isArray(schema" + n + e(1756) + g + " = false; else {"), s += e(1397) + D + " = 0; " + D + e(2518) + m + e(1609) + D + "++) { " + g + " = " + f + "[" + m + "[" + D + "]] !== undefined ", j && (s += e(367) + f + ", " + m + "[" + D + e(1727)), s += e(2542) + g + e(2483), h && (s += " } "), s += e(275) + g + e(2767); + var _ = _ || []; + _[e(3019)](s), s = "", x.createErrors !== !1 ? (s += e(2793) + e(747) + e(795) + x.errorPath + e(1218) + x.util[e(782)](d) + " , params: { missingProperty: '" + N + "' } ", x[e(569)][e(709)] !== !1 && (s += " , message: '", x[e(569)]._errorDataPathProperty ? s += e(1660) : s += e(2641) + N + "\\'", s += "' "), x[e(569)][e(2330)] && (s += e(1426) + u + e(2366) + x[e(1913)] + e(2960) + f + " "), s += e(2670)) : s += e(331); + var z = s; + s = _[e(2906)](), !x[e(1629)] && l ? x.async ? s += " throw new ValidationError([" + z + e(1420) : s += e(1973) + z + "]; return false; " : s += e(1533) + z + e(1548), s += " } else { "; + } else { + s += e(1992); + var U = R; + if (U) + for (var H, D = -1, G = U[e(1148)] - 1; D < G; ) { + H = U[D += 1], D && (s += e(2312)); + var ie = x[e(3036)][e(2528)](H), ue = f + ie; + s += " ( ( " + ue + " === undefined ", j && (s += e(2274) + f + e(1453) + x.util[e(1783)](H) + "') "), s += ") && (missing" + n + e(1035) + x.util[e(782)](x[e(569)][e(1448)] ? H : ie) + e(2213); + } + s += ") { "; + var O = e(302) + n, N = e(1238) + O + " + '"; + x[e(569)]._errorDataPathProperty && (x[e(1115)] = x[e(569)][e(1448)] ? x[e(3036)][e(696)](P, O, !0) : P + e(2608) + O); + var _ = _ || []; + _[e(3019)](s), s = "", x[e(2324)] !== !1 ? (s += " { keyword: '" + e(747) + "' , dataPath: (dataPath || '') + " + x[e(1115)] + " , schemaPath: " + x[e(3036)][e(782)](d) + e(2449) + N + e(1390), x.opts.messages !== !1 && (s += e(2199), x.opts._errorDataPathProperty ? s += e(1660) : s += e(2641) + N + "\\'", s += "' "), x[e(569)][e(2330)] && (s += e(1426) + u + " , parentSchema: validate.schema" + x[e(1913)] + e(2960) + f + " "), s += e(2670)) : s += " {} "; + var z = s; + s = _[e(2906)](), !x[e(1629)] && l ? x[e(2538)] ? s += e(1464) + z + e(1420) : s += e(1973) + z + e(1948) : s += e(1533) + z + e(1548), s += e(2471); + } + else if (C) { + !h && (s += " var " + m + e(1440) + u + "; "); + var D = "i" + n, O = e(2238) + n + "[" + D + "]", N = e(1238) + O + e(2601); + x.opts._errorDataPathProperty && (x.errorPath = x[e(3036)][e(696)](P, O, x.opts[e(1448)])), h && (s += " if (" + m + e(536) + m + e(1669), x[e(2324)] !== !1 ? (s += e(2793) + e(747) + "' , dataPath: (dataPath || '') + " + x[e(1115)] + e(1218) + x[e(3036)][e(782)](d) + " , params: { missingProperty: '" + N + e(1390), x[e(569)][e(709)] !== !1 && (s += e(2199), x[e(569)][e(280)] ? s += e(1660) : s += e(2641) + N + "\\'", s += "' "), x[e(569)].verbose && (s += e(1426) + u + e(2366) + x[e(1913)] + e(2960) + f + " "), s += e(2670)) : s += " {} ", s += e(2409) + m + " !== undefined) { "), s += " for (var " + D + e(870) + D + e(2518) + m + e(1609) + D + e(1579) + f + "[" + m + "[" + D + e(2679), j && (s += " || ! Object.prototype.hasOwnProperty.call(" + f + ", " + m + "[" + D + "]) "), s += e(2720), x[e(2324)] !== !1 ? (s += e(2793) + e(747) + e(795) + x.errorPath + e(1218) + x[e(3036)][e(782)](d) + e(2449) + N + "' } ", x[e(569)][e(709)] !== !1 && (s += " , message: '", x.opts[e(280)] ? s += e(1660) : s += "should have required property \\'" + N + "\\'", s += "' "), x[e(569)][e(2330)] && (s += e(1426) + u + " , parentSchema: validate.schema" + x[e(1913)] + e(2960) + f + " "), s += e(2670)) : s += e(331), s += e(2440), h && (s += e(1445)); + } else { + var le = R; + if (le) + for (var H, oe = -1, fe = le[e(1148)] - 1; oe < fe; ) { + H = le[oe += 1]; + var ie = x[e(3036)][e(2528)](H), N = x.util[e(1783)](H), ue = f + ie; + x[e(569)][e(280)] && (x[e(1115)] = x.util.getPath(P, H, x[e(569)][e(1448)])), s += e(1992) + ue + e(1461), j && (s += e(2274) + f + e(1453) + x[e(3036)][e(1783)](H) + e(1414)), s += ") { var err = ", x.createErrors !== !1 ? (s += e(2793) + e(747) + e(795) + x.errorPath + " , schemaPath: " + x[e(3036)][e(782)](d) + e(2449) + N + e(1390), x[e(569)][e(709)] !== !1 && (s += e(2199), x[e(569)]._errorDataPathProperty ? s += e(1660) : s += e(2641) + N + "\\'", s += "' "), x[e(569)][e(2330)] && (s += " , schema: validate.schema" + u + e(2366) + x[e(1913)] + e(2960) + f + " "), s += e(2670)) : s += e(331), s += e(2614); + } } - s += e(1411), h && (s += " } "), s += e(1102) + g + e(1793); - var T = T || []; - T.push(s), s = "", x.createErrors !== !1 ? (s += e(1108) + e(1684) + e(2387) + x[e(1935)] + e(2278) + x[e(1975)][e(1767)](f) + e(1138), x[e(1544)][e(1696)] !== !1 && (s += e(883)), x[e(1544)].verbose && (s += e(2827), h ? s += e(1063) + u : s += "" + c, s += e(2989) + x[e(1262)] + e(1844) + d + " "), s += e(1411)) : s += e(3261); - var q = s; - s = T[e(2900)](), !x[e(2612)] && l ? x[e(2416)] ? s += " throw new ValidationError([" + q + e(2300) : s += e(2213) + q + e(702) : s += " var err = " + q + e(2653), s += " } ", l && (s += " else { "); - } else l && (s += " if (true) { "); + x.errorPath = P; + } else l && (s += e(996)); return s; - }), Tt; + }), _t; } -var Nt, Br; -function F2() { - return Br || (Br = 1, Nt = { $ref: f2(), allOf: l2(), anyOf: d2(), $comment: h2(), const: p2(), contains: m2(), dependencies: b2(), enum: g2(), format: y2(), if: v2(), items: w2(), maximum: Fr(), minimum: Fr(), maxItems: Nr(), minItems: Nr(), maxLength: Ar(), minLength: Ar(), maxProperties: Dr(), minProperties: Dr(), multipleOf: S2(), not: k2(), oneOf: P2(), pattern: I2(), properties: E2(), propertyNames: R2(), required: C2(), uniqueItems: _2(), validate: wn() }), Nt; +var Nt, Vr; +function Ic() { + return Vr || (Vr = 1, Nt = function(x, t, r) { + const e = Z; + var s = " ", n = x[e(1113)], i = x[e(2585)], c = x[e(2238)][t], u = x[e(1913)] + x.util[e(2528)](t), d = x[e(601)] + "/" + t, l = !x[e(569)][e(2354)], f = e(1506) + (i || ""), g = e(467) + n, h = x[e(569)][e(2624)] && c && c[e(2624)], m; + if (h ? (s += " var schema" + n + e(1035) + x[e(3036)][e(2802)](c[e(2624)], i, x[e(2140)]) + "; ", m = e(2238) + n) : m = c, (c || h) && x.opts.uniqueItems !== !1) { + h && (s += e(465) + g + "; if (" + m + e(2078) + m + e(2537) + g + e(2277) + m + e(1927) + g + e(2657)), s += e(390) + f + e(1594) + g + e(2288); + var v = x[e(2238)].items && x[e(2238)][e(1603)][e(2291)], k = Array.isArray(v); + if (!v || v == e(2220) || v == e(1912) || k && (v[e(2273)](e(2220)) >= 0 || v[e(2273)]("array") >= 0)) s += e(705) + f + e(1583) + f + e(2890) + g + e(1563); + else { + s += " var itemIndices = {}, item; for (;i--;) { var item = " + f + e(1345); + var I = e(1006) + (k ? "s" : ""); + s += " if (" + x[e(3036)][I](v, e(370), x[e(569)][e(832)], !0) + ") continue; ", k && (s += ` if (typeof item == 'string') item = '"' + item; `), s += " if (typeof itemIndices[item] == 'number') { " + g + e(2743); + } + s += e(2670), h && (s += " } "), s += e(543) + g + ") { "; + var T = T || []; + T.push(s), s = "", x[e(2324)] !== !1 ? (s += e(2793) + "uniqueItems' , dataPath: (dataPath || '') + " + x[e(1115)] + e(1218) + x.util.toQuotedString(d) + " , params: { i: i, j: j } ", x[e(569)].messages !== !1 && (s += e(1974)), x[e(569)].verbose && (s += e(1221), h ? s += e(2139) + u : s += "" + c, s += e(1167) + x[e(1913)] + " , data: " + f + " "), s += e(2670)) : s += e(331); + var q = s; + s = T[e(2906)](), !x[e(1629)] && l ? x[e(2538)] ? s += e(1464) + q + "]); " : s += " validate.errors = [" + q + e(1948) : s += e(1533) + q + e(1548), s += e(2670), l && (s += e(401)); + } else l && (s += e(1857)); + return s; + }), Nt; +} +var Tt, Br; +function Ec() { + return Br || (Br = 1, Tt = { $ref: oc(), allOf: ic(), anyOf: cc(), $comment: uc(), const: dc(), contains: lc(), dependencies: fc(), enum: hc(), format: pc(), if: mc(), items: bc(), maximum: _r(), minimum: _r(), maxItems: Tr(), minItems: Tr(), maxLength: Ar(), minLength: Ar(), maxProperties: Dr(), minProperties: Dr(), multipleOf: gc(), not: yc(), oneOf: vc(), pattern: wc(), properties: Sc(), propertyNames: kc(), required: Pc(), uniqueItems: Ic(), validate: bn() }), Tt; } var qt, Wr; -function T2() { +function Rc() { + const o = a; if (Wr) return qt; Wr = 1; - var o = F2(), x = W0().toHash; + var x = Ec(), t = B0()[o(1655)]; return qt = function() { - const r = K; - var e = [{ type: r(2665), rules: [{ maximum: [r(3282)] }, { minimum: [r(578)] }, r(2798), "format"] }, { type: r(1361), rules: ["maxLength", r(1312), r(526), r(802)] }, { type: r(529), rules: [r(1335), r(1919), r(2286), r(688), "uniqueItems"] }, { type: "object", rules: [r(1651), r(2371), r(2438), r(1110), r(2238), { properties: [r(1872), r(1688)] }] }, { rules: [r(885), r(1603), r(2218), r(2535), r(2122), r(2547), r(704), "if"] }], s = [r(2076), "$comment"], n = ["$schema", r(3154), "id", r(568), "$async", r(2141), r(541), r(2485), r(2451), r(3078), r(1370), r(2604), r(3264), "contentEncoding", r(2410), r(2517), "else"], i = ["number", r(766), r(1361), r(529), r(1304), r(3106), "null"]; - return e[r(1096)] = x(s), e[r(2795)] = x(i), e[r(2617)](function(c) { - const u = r; - c[u(2293)] = c[u(2293)].map(function(f) { - const l = u; - var d; - if (typeof f == l(1304)) { - var g = Object[l(2123)](f)[0]; - d = f[g], f = g, d[l(2617)](function(m) { - const v = l; - s[v(3062)](m), e[v(1096)][m] = !0; + const e = o; + var s = [{ type: "number", rules: [{ maximum: [e(2252)] }, { minimum: ["exclusiveMinimum"] }, e(2342), "format"] }, { type: e(2028), rules: [e(388), e(1979), e(2248), e(2350)] }, { type: "array", rules: [e(858), e(2547), e(1603), e(1222), e(2098)] }, { type: "object", rules: ["maxProperties", "minProperties", "required", e(600), e(2374), { properties: [e(435), "patternProperties"] }] }, { rules: [e(2495), e(588), e(2897), e(1409), e(2395), e(1322), e(2952), "if"] }], n = [e(2291), "$comment"], i = [e(2933), e(1101), "id", e(2624), e(1611), e(2673), "description", e(2096), e(2870), e(1389), e(1059), "writeOnly", e(1075), e(279), e(2296), e(634), e(2674)], c = [e(867), "integer", e(2028), e(1912), e(2220), "boolean", "null"]; + return s[e(2497)] = t(n), s.types = t(c), s[e(430)](function(u) { + const d = e; + u[d(1354)] = u[d(1354)][d(2739)](function(l) { + const f = d; + var g; + if (typeof l == f(2220)) { + var h = Object.keys(l)[0]; + g = l[h], l = h, g[f(430)](function(v) { + n.push(v), s.all[v] = !0; }); } - s[l(3062)](f); - var h = e[l(1096)][f] = { keyword: f, code: o[f], implements: d }; - return h; - }), e[u(1096)][u(2786)] = { keyword: u(2786), code: o[u(2786)] }, c[u(2076)] && (e[u(2795)][c[u(2076)]] = c); - }), e[r(1997)] = x(s[r(2700)](n)), e[r(1618)] = {}, e; + n.push(l); + var m = s[f(2497)][l] = { keyword: l, code: x[l], implements: g }; + return m; + }), s[d(2497)].$comment = { keyword: d(1922), code: x[d(1922)] }, u[d(2291)] && (s[d(2875)][u.type] = u); + }), s.keywords = t(n[e(1557)](i)), s[e(2126)] = {}, s; }, qt; } -var At, Zr; -function N2() { +var At, Kr; +function Cc() { const o = a; - if (Zr) return At; - Zr = 1; - var x = [o(2798), "maximum", o(3282), o(2226), o(578), o(649), o(1312), o(526), "additionalItems", o(1335), "minItems", o(1684), o(1651), "minProperties", "required", o(1872), o(2218), o(802), o(1603)]; + if (Kr) return At; + Kr = 1; + var x = ["multipleOf", "maximum", o(2252), "minimum", "exclusiveMinimum", o(388), o(1979), o(2248), o(2296), "maxItems", "minItems", o(2098), "maxProperties", o(1741), o(747), o(435), o(2897), o(2350), o(588)]; return At = function(t, r) { const e = o; - for (var s = 0; s < r[e(2710)]; s++) { - t = JSON[e(2774)](JSON[e(1031)](t)); - var n = r[s][e(3263)]("/"), i = t, c; - for (c = 1; c < n[e(2710)]; c++) i = i[n[c]]; + for (var s = 0; s < r[e(1148)]; s++) { + t = JSON[e(1598)](JSON.stringify(t)); + var n = r[s][e(1958)]("/"), i = t, c; + for (c = 1; c < n.length; c++) i = i[n[c]]; for (c = 0; c < x.length; c++) { - var u = x[c], f = i[u]; - f && (i[u] = { anyOf: [f, { $ref: e(1253) }] }); + var u = x[c], d = i[u]; + d && (i[u] = { anyOf: [d, { $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#" }] }); } } return t; }, At; } -var Ot, Kr; -function q2() { - const o = a; - if (Kr) return Ot; - Kr = 1; - var x = ha()[o(2003)]; - Ot = t; - function t(r, e, s) { - const n = o; - var i = this; - if (typeof this[n(1068)][n(2330)] != n(1936)) throw new Error(n(809)); - typeof e == n(1936) && (s = e, e = void 0); - var c = u(r)[n(2517)](function() { - const l = n; - var d = i[l(2669)](r, void 0, e); - return d[l(3181)] || f(d); +var Ot, Zr; +function Fc() { + if (Zr) return Ot; + Zr = 1; + var o = ha().MissingRef; + Ot = x; + function x(t, r, e) { + const s = Z; + var n = this; + if (typeof this._opts[s(1342)] != "function") throw new Error(s(2520)); + typeof r == s(1149) && (e = r, r = void 0); + var i = c(t).then(function() { + var l = n[s(3028)](t, void 0, r); + return l.validate || u(l); }); - return s && c.then(function(l) { - s(null, l); - }, s), c; - function u(l) { - const d = n; - var g = l[d(2144)]; - return g && !i[d(1535)](g) ? t[d(1522)](i, { $ref: g }, !0) : Promise[d(2457)](); + return e && i[s(634)](function(d) { + e(null, d); + }, e), i; + function c(d) { + const l = s; + var f = d[l(2933)]; + return f && !n[l(1381)](f) ? x.call(n, { $ref: f }, !0) : Promise[l(855)](); } - function f(l) { - const d = n; + function u(d) { + const l = s; try { - return i[d(1026)](l); - } catch (h) { - if (h instanceof x) return g(h); - throw h; + return n[l(994)](d); + } catch (g) { + if (g instanceof o) return f(g); + throw g; } - function g(h) { - const m = d; - var v = h.missingSchema; - if (T(v)) throw new Error(m(2867) + v + m(2933) + h[m(2883)] + m(2868)); - var k = i._loadingSchemas[v]; - return !k && (k = i[m(2979)][v] = i._opts[m(2330)](v), k[m(2517)](P, P)), k[m(2517)](function(q) { - if (!T(v)) return u(q).then(function() { - const R = K; - T(v) || i[R(1461)](q, v, void 0, e); + function f(g) { + const h = l; + var m = g[h(599)]; + if (I(m)) throw new Error("Schema " + m + " is loaded but " + g.missingRef + h(1606)); + var v = n[h(592)][m]; + return !v && (v = n[h(592)][m] = n._opts[h(1342)](m), v[h(634)](k, k)), v[h(634)](function(T) { + const q = h; + if (!I(m)) return c(T)[q(634)](function() { + const R = q; + I(m) || n[R(2068)](T, m, void 0, r); }); - })[m(2517)](function() { - return f(l); + }).then(function() { + return u(d); }); - function P() { - const q = m; - delete i[q(2979)][v]; + function k() { + const T = h; + delete n[T(592)][m]; } - function T(q) { - const R = m; - return i[R(497)][q] || i[R(2265)][q]; + function I(T) { + const q = h; + return n[q(667)][T] || n[q(638)][T]; } } } @@ -6942,280 +6940,280 @@ function q2() { return Ot; } var Dt, Gr; -function A2() { +function _c() { return Gr || (Gr = 1, Dt = function(x, t, r) { - const e = K; - var s = " ", n = x[e(1082)], i = x[e(1498)], c = x[e(1425)][t], u = x[e(1262)] + x[e(1975)][e(3039)](t), f = x[e(569)] + "/" + t, l = !x.opts[e(3009)], d, g = "data" + (i || ""), h = e(1122) + n, m = e(1870) + n, v = x.opts[e(568)] && c && c.$data, k; - v ? (s += " var schema" + n + e(2486) + x.util[e(1186)](c[e(568)], i, x.dataPathArr) + "; ", k = e(1425) + n) : k = c; - var P = this, T = e(1686) + n, q = P.definition, R = "", E, C, A, O, M; - if (v && q.$data) { - M = e(2325) + n; - var _ = q[e(2605)]; - s += e(2675) + T + " = RULES.custom['" + t + e(600) + M + e(2486) + T + e(2566); + const e = Z; + var s = " ", n = x.level, i = x[e(2585)], c = x[e(2238)][t], u = x[e(1913)] + x[e(3036)][e(2528)](t), d = x.errSchemaPath + "/" + t, l = !x[e(569)].allErrors, f, g = e(1506) + (i || ""), h = e(467) + n, m = e(2233) + n, v = x.opts.$data && c && c[e(2624)], k; + v ? (s += e(1643) + n + " = " + x[e(3036)][e(2802)](c[e(2624)], i, x[e(2140)]) + "; ", k = "schema" + n) : k = c; + var I = this, T = e(528) + n, q = I[e(528)], R = "", P, C, j, D, O; + if (v && q[e(2624)]) { + O = "keywordValidate" + n; + var N = q[e(2951)]; + s += e(465) + T + " = RULES.custom['" + t + "'].definition; var " + O + e(1035) + T + e(1249); } else { - if (O = x[e(2908)](P, c, x[e(1425)], x), !O) return; - k = e(1063) + u, M = O[e(2427)], E = q.compile, C = q[e(3228)], A = q.macro; + if (D = x[e(2017)](I, c, x.schema, x), !D) return; + k = e(2139) + u, O = D.code, P = q[e(2869)], C = q.inline, j = q[e(1711)]; } - var N = M + e(1554), z = "i" + n, U = e(2205) + n, H = q[e(2416)]; - if (H && !x[e(2416)]) throw new Error(e(1329)); - if (!(C || A) && (s += "" + N + e(2913)), s += "var " + m + e(1156) + h + ";", v && q[e(568)] && (R += "}", s += e(1754) + k + " === undefined) { " + h + " = true; } else { ", _ && (R += "}", s += " " + h + " = " + T + ".validateSchema(" + k + e(2857) + h + e(2834))), C) q[e(2367)] ? s += " " + O[e(3181)] + " " : s += " " + h + " = " + O[e(3181)] + "; "; - else if (A) { - var G = x[e(1975)][e(2615)](x), R = ""; - G[e(1082)]++; - var re = "valid" + G[e(1082)]; - G[e(1425)] = O.validate, G[e(1262)] = ""; - var se = x[e(2612)]; - x[e(2612)] = G[e(2612)] = !0; - var fe = x[e(3181)](G)[e(1521)](/validate\.schema/g, M); - x[e(2612)] = G.compositeRule = se, s += " " + fe; + var _ = O + ".errors", z = "i" + n, U = e(1539) + n, H = q[e(2538)]; + if (H && !x.async) throw new Error(e(1596)); + if (!(C || j) && (s += "" + _ + e(2963)), s += e(2161) + m + e(288) + h + ";", v && q[e(2624)] && (R += "}", s += e(982) + k + " === undefined) { " + h + e(2453), N && (R += "}", s += " " + h + " = " + T + e(1745) + k + e(2980) + h + e(2719))), C) q.statements ? s += " " + D.validate + " " : s += " " + h + e(1035) + D[e(2029)] + "; "; + else if (j) { + var G = x.util[e(1051)](x), R = ""; + G.level++; + var ie = "valid" + G[e(1113)]; + G[e(2238)] = D.validate, G[e(1913)] = ""; + var ue = x[e(1629)]; + x[e(1629)] = G[e(1629)] = !0; + var le = x.validate(G)[e(1252)](/validate\.schema/g, O); + x.compositeRule = G[e(1629)] = ue, s += " " + le; } else { - var de = de || []; - de[e(3062)](s), s = "", s += " " + M + ".call( ", x[e(1544)][e(2698)] ? s += "this" : s += e(2007), E || q[e(1425)] === !1 ? s += e(3135) + g + " " : s += e(3135) + k + e(3135) + g + e(2390) + x.schemaPath + " ", s += e(2583), x[e(1935)] != '""' && (s += e(2693) + x[e(1935)]); - var le = i ? e(2663) + (i - 1 || "") : "parentData", Se = i ? x[e(662)][i] : "parentDataProperty"; - s += e(3135) + le + " , " + Se + e(2783); - var _e = s; - s = de[e(2900)](), q.errors === !1 ? (s += " " + h + e(2486), H && (s += e(2630)), s += "" + _e + "; ") : H ? (N = e(604) + n, s += e(2675) + N + e(1752) + h + e(1588) + _e + e(663) + h + e(659) + N + " = e.errors; else throw e; } ") : s += " " + N + e(3278) + h + e(2486) + _e + "; "; + var oe = oe || []; + oe[e(3019)](s), s = "", s += " " + O + e(2111), x[e(569)][e(2606)] ? s += "this" : s += e(1987), P || q[e(2238)] === !1 ? s += e(1796) + g + " " : s += e(1796) + k + " , " + g + e(1724) + x[e(1913)] + " ", s += e(909), x.errorPath != '""' && (s += " + " + x[e(1115)]); + var fe = i ? e(1506) + (i - 1 || "") : e(1764), Pe = i ? x[e(2140)][i] : e(1708); + s += e(1796) + fe + e(1796) + Pe + e(1960); + var ye = s; + s = oe[e(2906)](), q[e(1139)] === !1 ? (s += " " + h + e(1035), H && (s += e(2654)), s += "" + ye + "; ") : H ? (_ = "customErrors" + n, s += e(465) + _ + " = null; try { " + h + e(643) + ye + e(1359) + h + e(2994) + _ + e(817)) : s += " " + _ + " = null; " + h + e(1035) + ye + "; "; } - if (q.modifying && (s += " if (" + le + ") " + g + " = " + le + "[" + Se + "];"), s += "" + R, q[e(1122)]) l && (s += e(523)); + if (q[e(2064)] && (s += e(982) + fe + ") " + g + " = " + fe + "[" + Pe + "];"), s += "" + R, q[e(467)]) l && (s += e(1857)); else { - s += e(836), q[e(1122)] === void 0 ? (s += " !", A ? s += "" + re : s += "" + h) : s += " " + !q[e(1122)] + " ", s += e(2834), d = P[e(2442)]; - var de = de || []; - de[e(3062)](s), s = ""; - var de = de || []; - de[e(3062)](s), s = "", x[e(559)] !== !1 ? (s += " { keyword: '" + (d || e(1618)) + "' , dataPath: (dataPath || '') + " + x[e(1935)] + e(2278) + x[e(1975)][e(1767)](f) + e(2540) + P[e(2442)] + e(871), x[e(1544)][e(1696)] !== !1 && (s += e(3272) + P[e(2442)] + e(1266)), x.opts[e(2491)] && (s += e(1346) + u + " , parentSchema: validate.schema" + x[e(1262)] + e(1844) + g + " "), s += e(1411)) : s += e(3261); - var Me = s; - s = de.pop(), !x[e(2612)] && l ? x[e(2416)] ? s += e(1499) + Me + e(2300) : s += e(2213) + Me + "]; return false; " : s += e(2636) + Me + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "; - var Fe = s; - s = de[e(2900)](), C ? q[e(2800)] ? q[e(2800)] != e(2977) && (s += e(1883) + z + "=" + m + "; " + z + e(1989) + z + e(1921) + U + " = vErrors[" + z + e(2513) + U + e(1615) + U + e(1672) + x[e(1935)] + e(2318) + U + e(2046) + U + e(2298) + f + e(2554), x[e(1544)].verbose && (s += " " + U + e(1357) + k + "; " + U + e(2726) + g + "; "), s += e(1411)) : q.errors === !1 ? s += " " + Fe + " " : (s += e(1754) + m + e(794) + Fe + e(592) + z + "=" + m + "; " + z + e(1989) + z + e(1921) + U + e(1224) + z + e(2513) + U + e(1615) + U + e(1672) + x[e(1935)] + e(2318) + U + ".schemaPath === undefined) { " + U + e(2298) + f + e(2554), x[e(1544)][e(2491)] && (s += " " + U + ".schema = " + k + "; " + U + ".data = " + g + "; "), s += e(870)) : A ? (s += e(2222), x[e(559)] !== !1 ? (s += " { keyword: '" + (d || e(1618)) + e(2387) + x.errorPath + e(2278) + x.util.toQuotedString(f) + e(2540) + P.keyword + e(871), x[e(1544)][e(1696)] !== !1 && (s += e(3272) + P[e(2442)] + e(1266)), x[e(1544)][e(2491)] && (s += e(1346) + u + e(2408) + x[e(1262)] + " , data: " + g + " "), s += e(1411)) : s += " {} ", s += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", !x[e(2612)] && l && (x.async ? s += e(903) : s += " validate.errors = vErrors; return false; ")) : q[e(2800)] === !1 ? s += " " + Fe + " " : (s += e(1472) + N + e(1300) + N + e(3260) + N + e(1741) + z + "=" + m + "; " + z + e(1989) + z + e(1921) + U + e(1224) + z + e(2513) + U + e(1615) + U + ".dataPath = (dataPath || '') + " + x[e(1935)] + e(2884) + U + e(2298) + f + e(2620), x[e(1544)].verbose && (s += " " + U + e(1357) + k + "; " + U + e(2726) + g + "; "), s += " } } else { " + Fe + e(1411)), s += e(1411), l && (s += e(1961)); + s += e(1992), q[e(467)] === void 0 ? (s += " !", j ? s += "" + ie : s += "" + h) : s += " " + !q[e(467)] + " ", s += e(2719), f = I[e(2396)]; + var oe = oe || []; + oe[e(3019)](s), s = ""; + var oe = oe || []; + oe.push(s), s = "", x[e(2324)] !== !1 ? (s += " { keyword: '" + (f || "custom") + e(795) + x[e(1115)] + e(1218) + x.util[e(782)](d) + e(447) + I.keyword + e(1390), x[e(569)][e(709)] !== !1 && (s += e(2327) + I[e(2396)] + e(1683)), x[e(569)].verbose && (s += " , schema: validate.schema" + u + e(2366) + x[e(1913)] + e(2960) + g + " "), s += e(2670)) : s += e(331); + var Le = s; + s = oe[e(2906)](), !x[e(1629)] && l ? x[e(2538)] ? s += e(1464) + Le + e(1420) : s += " validate.errors = [" + Le + "]; return false; " : s += e(1533) + Le + e(1548); + var _e = s; + s = oe[e(2906)](), C ? q[e(1139)] ? q[e(1139)] != "full" && (s += e(2677) + z + "=" + m + "; " + z + " this[r(3134)](s)), this.setNotificationHandler(on, () => { + super(t), this[r(2758)] = x, this[r(824)] = (e = t == null ? void 0 : t[r(2183)]) !== null && e !== void 0 ? e : {}, this[r(2472)] = t == null ? void 0 : t.instructions, this[r(2623)](tn, (s) => this[r(801)](s)), this[r(566)](an, () => { const s = r; var n; - return (n = this[s(741)]) === null || n === void 0 ? void 0 : n.call(this); + return (n = this[s(3009)]) === null || n === void 0 ? void 0 : n.call(this); }); } - [a(1545)](x) { + registerCapabilities(x) { const t = a; - if (this[t(516)]) throw new Error(t(1048)); - this._capabilities = a2(this[t(2911)], x); + if (this[t(2276)]) throw new Error(t(1710)); + this[t(824)] = Y2(this[t(824)], x); } - [a(557)](x) { + [a(957)](x) { const t = a; var r, e, s; switch (x) { - case t(2180): - if (!(!((r = this[t(1509)]) === null || r === void 0) && r[t(2398)])) throw new Error("Client does not support sampling (required for " + x + ")"); + case t(916): + if (!(!((r = this[t(365)]) === null || r === void 0) && r.sampling)) throw new Error("Client does not support sampling (required for " + x + ")"); break; - case t(1206): - if (!(!((e = this._clientCapabilities) === null || e === void 0) && e[t(2780)])) throw new Error(t(2106) + x + ")"); + case "elicitation/create": + if (!(!((e = this._clientCapabilities) === null || e === void 0) && e.elicitation)) throw new Error("Client does not support elicitation (required for " + x + ")"); break; - case t(2089): - if (!(!((s = this[t(1509)]) === null || s === void 0) && s[t(2013)])) throw new Error(t(3052) + x + ")"); + case t(1314): + if (!(!((s = this[t(365)]) === null || s === void 0) && s.roots)) throw new Error(t(842) + x + ")"); break; } } - [a(2670)](x) { + [a(1943)](x) { const t = a; switch (x) { - case t(989): - if (!this[t(2911)][t(1022)]) throw new Error(t(1295) + x + ")"); + case "notifications/message": + if (!this._capabilities[t(1104)]) throw new Error(t(515) + x + ")"); break; - case t(2014): - case t(1629): - if (!this[t(2911)].resources) throw new Error("Server does not support notifying about resources (required for " + x + ")"); + case t(2704): + case t(961): + if (!this[t(824)][t(1813)]) throw new Error(t(2500) + x + ")"); break; - case "notifications/tools/list_changed": - if (!this[t(2911)].tools) throw new Error("Server does not support notifying of tool list changes (required for " + x + ")"); + case t(1920): + if (!this[t(824)][t(2388)]) throw new Error(t(2321) + x + ")"); break; - case t(2727): - if (!this._capabilities.prompts) throw new Error(t(2935) + x + ")"); + case t(1192): + if (!this._capabilities[t(2723)]) throw new Error("Server does not support notifying of prompt list changes (required for " + x + ")"); break; } } - [a(1465)](x) { + [a(1742)](x) { const t = a; switch (x) { - case t(2180): - if (!this[t(2911)][t(2398)]) throw new Error(t(2079) + x + ")"); + case t(916): + if (!this[t(824)][t(1259)]) throw new Error(t(1767) + x + ")"); break; case "logging/setLevel": - if (!this[t(2911)][t(1022)]) throw new Error(t(1295) + x + ")"); + if (!this[t(824)][t(1104)]) throw new Error(t(515) + x + ")"); break; - case t(1143): - case "prompts/list": - if (!this[t(2911)][t(2649)]) throw new Error("Server does not support prompts (required for " + x + ")"); + case "prompts/get": + case t(1869): + if (!this[t(824)][t(2723)]) throw new Error("Server does not support prompts (required for " + x + ")"); break; - case t(2002): - case t(2847): - case "resources/read": - if (!this[t(2911)][t(1673)]) throw new Error(t(1218) + x + ")"); + case "resources/list": + case t(884): + case t(742): + if (!this[t(824)][t(1813)]) throw new Error(t(2245) + x + ")"); break; - case "tools/call": - case t(2744): - if (!this[t(2911)][t(2365)]) throw new Error(t(3215) + x + ")"); + case t(2979): + case t(2896): + if (!this[t(824)][t(2388)]) throw new Error(t(773) + x + ")"); break; } } - async [a(3134)](x) { - const t = a, r = x[t(1656)][t(1861)]; - return this[t(1509)] = x[t(1656)][t(2395)], this[t(2464)] = x[t(1656)].clientInfo, { protocolVersion: ec[t(2978)](r) ? r : Xs, capabilities: this[t(1634)](), serverInfo: this._serverInfo, ...this[t(2176)] && { instructions: this[t(2176)] } }; + async [a(801)](x) { + const t = a, r = x[t(434)].protocolVersion; + return this[t(365)] = x[t(434)][t(2183)], this[t(2365)] = x[t(434)][t(2864)], { protocolVersion: Ji[t(555)](r) ? r : Zs, capabilities: this.getCapabilities(), serverInfo: this[t(2758)], ...this[t(2472)] && { instructions: this[t(2472)] } }; } - getClientCapabilities() { - return this._clientCapabilities; + [a(1447)]() { + return this[a(365)]; } - getClientVersion() { - return this[a(2464)]; + [a(1794)]() { + return this[a(2365)]; } - [a(1634)]() { - return this[a(2911)]; + [a(1263)]() { + return this[a(824)]; } - async [a(2509)]() { - return this[a(494)]({ method: "ping" }, ta); + async [a(2666)]() { + const x = a; + return this[x(1093)]({ method: x(2666) }, ta); } - async createMessage(x, t) { + async [a(1135)](x, t) { const r = a; - return this.request({ method: r(2180), params: x }, mn, t); + return this[r(1093)]({ method: r(916), params: x }, ln, t); } - async [a(1164)](x, t) { - const r = a, e = await this.request({ method: r(1206), params: x }, bn, t); - if (e.action === r(995) && e[r(3170)]) try { - const s = new Y2(), n = s[r(1835)](x[r(2920)]); - if (!n(e[r(3170)])) throw new q0(v0.InvalidParams, "Elicitation response content does not match requested schema: " + s[r(2766)](n.errors)); + async [a(1477)](x, t) { + const r = a, e = await this[r(1093)]({ method: r(1543), params: x }, fn, t); + if (e[r(2429)] === r(1315) && e[r(803)]) try { + const s = new Gc(), n = s[r(2869)](x.requestedSchema); + if (!n(e[r(803)])) throw new q0(v0.InvalidParams, r(2974) + s[r(2215)](n[r(1139)])); } catch (s) { - throw s instanceof q0 ? s : new q0(v0[r(2898)], r(1497) + s); + throw s instanceof q0 ? s : new q0(v0[r(614)], r(294) + s); } return e; } - async [a(808)](x, t) { + async listRoots(x, t) { const r = a; - return this.request({ method: r(2089), params: x }, gn, t); + return this[r(1093)]({ method: r(1314), params: x }, hn, t); } - async [a(2751)](x) { + async [a(786)](x) { const t = a; - return this[t(2487)]({ method: t(989), params: x }); + return this[t(1455)]({ method: t(1370), params: x }); } - async [a(1270)](x) { + async [a(260)](x) { const t = a; - return this.notification({ method: t(2014), params: x }); + return this[t(1455)]({ method: t(2704), params: x }); } async sendResourceListChanged() { const x = a; - return this[x(2487)]({ method: x(1629) }); + return this[x(1455)]({ method: x(961) }); } - async [a(1277)]() { + async [a(1725)]() { const x = a; - return this.notification({ method: x(1600) }); + return this[x(1455)]({ method: x(1920) }); } - async [a(2982)]() { + async [a(2519)]() { const x = a; - return this.notification({ method: x(2727) }); + return this[x(1455)]({ method: x(1192) }); } } -class xu extends Error { +class Qc extends Error { constructor(x, t) { const r = a; - super(r(1666) + x + r(1161) + t + "ms"), this.name = r(920); + super(r(299) + x + r(2565) + t + "ms"), this[r(1166)] = r(1671); } } const mx = /* @__PURE__ */ new Map(); -class tu { +class Xc { constructor(x) { const t = a; - if (this[t(2729)] = [], this[t(1710)] = Date[t(3275)](), mx[t(2348)](x.posterIdentifier)) { - const i = mx[t(674)](x.posterIdentifier); - i && i[t(1489)](); + if (this[t(720)] = [], this[t(2692)] = Date[t(804)](), mx[t(1281)](x[t(1808)])) { + const i = mx.get(x[t(1808)]); + i && i[t(880)](); } - this[t(3279)] = x[t(3279)], this[t(1066)] = x.messagePoster, this[t(987)] = x.addMessageEventListener, this[t(2532)] = x[t(2532)]; - const r = x.heartbeatInterval ?? x[t(2595)], e = x[t(2595)] ?? x.heartbeatInterval, s = this[t(2056)](r), n = this.normalizeDuration(e); - s && n && (this[t(1777)] = s, this[t(2595)] = n), this[t(2468)] = x[t(2468)] ?? !1, mx[t(780)](this[t(3279)], this), this[t(2393)] = this.listenMessageCallback[t(1386)](this), this[t(1036)] = this[t(987)](this.listenMessageCallback); + this[t(1808)] = x[t(1808)], this[t(1066)] = x[t(1066)], this[t(2065)] = x.addMessageEventListener, this[t(854)] = x[t(854)]; + const r = x.heartbeatInterval ?? x[t(1300)], e = x[t(1300)] ?? x.heartbeatInterval, s = this[t(918)](r), n = this[t(918)](e); + s && n && (this[t(1799)] = s, this[t(1300)] = n), this[t(845)] = x[t(845)] ?? !1, mx[t(823)](this[t(1808)], this), this[t(334)] = this[t(334)].bind(this), this[t(2382)] = this[t(2065)](this.listenMessageCallback); } - [a(2056)](x) { - const t = a; - if (typeof x == "number" && !(!Number[t(643)](x) || x <= 0)) + [a(918)](x) { + if (typeof x === a(867) && !(!Number.isFinite(x) || x <= 0)) return x; } - isHeartbeatEnabled() { + [a(1659)]() { const x = a; - return typeof this[x(1777)] === x(2665) && typeof this[x(2595)] == "number"; + return typeof this[x(1799)] === x(867) && typeof this[x(1300)] === x(867); } - [a(2393)](x) { + [a(334)](x) { const t = a; - if (x.posterIdentifier === this[t(3279)]) { - if (x[t(2967)] === t(508)) { - x[t(2076)] === t(2509) && !this[t(2468)] ? this.messagePoster({ channel: t(508), posterIdentifier: this[t(3279)], type: "pong", timestamp: x[t(606)] }) : x[t(2076)] === t(1627) && (this[t(1710)] = Date[t(3275)](), this.heartbeatTimeoutTimer && (clearTimeout(this.heartbeatTimeoutTimer), this.heartbeatTimeoutTimer = void 0)); + if (x[t(1808)] === this[t(1808)]) { + if (x[t(1570)] === t(1712)) { + x.type === t(2666) && !this[t(845)] ? this[t(1066)]({ channel: t(1712), posterIdentifier: this[t(1808)], type: t(2972), timestamp: x[t(1428)] }) : x[t(2291)] === "pong" && (this[t(2692)] = Date[t(804)](), this.heartbeatTimeoutTimer && (clearTimeout(this[t(2586)]), this[t(2586)] = void 0)); return; } - x.channel === t(2516) && (this[t(1803)] && "payload" in x ? this.onmessage(x[t(1962)]) : t(1962) in x && this[t(2729)][t(3062)](x[t(1962)])); + x.channel === t(902) && (this[t(1903)] && t(485) in x ? this[t(1903)](x.payload) : "payload" in x && this[t(720)].push(x[t(485)])); } } - async [a(1392)]() { + async [a(1171)]() { const x = a; - for (; this[x(2729)][x(2710)] > 0; ) { - const t = this.messageQueue[x(1263)](); - t && this[x(1803)] && this[x(1803)](t); + for (; this[x(720)].length > 0; ) { + const t = this.messageQueue.shift(); + t && this[x(1903)] && this[x(1903)](t); } - this[x(807)]() && this[x(2564)](); + this.isHeartbeatEnabled() && this[x(1207)](); } - startHeartbeat() { + [a(1207)]() { const x = a; - if (!this[x(807)]()) return; - const t = this[x(1777)], r = this[x(2595)]; - this[x(2545)](), this.heartbeatTimer = setInterval(() => { - const e = x, s = Date.now(); - this[e(1066)]({ channel: "sdppp-heartbeat", posterIdentifier: this.posterIdentifier, type: e(2509), timestamp: s }), this[e(2280)] = setTimeout(() => { - const n = e, i = new xu(this[n(3279)], r); - this[n(934)] && this[n(934)](i); + if (!this[x(1659)]()) return; + const t = this[x(1799)], r = this[x(1300)]; + this[x(1723)](), this[x(1952)] = setInterval(() => { + const e = x, s = Date[e(804)](); + this[e(1066)]({ channel: e(1712), posterIdentifier: this[e(1808)], type: "ping", timestamp: s }), this[e(2586)] = setTimeout(() => { + const n = e, i = new Qc(this[n(1808)], r); + this[n(2917)] && this[n(2917)](i); }, r); }, t); } - [a(2545)]() { + [a(1723)]() { const x = a; - this[x(2686)] && (clearInterval(this[x(2686)]), this.heartbeatTimer = void 0), this[x(2280)] && (clearTimeout(this[x(2280)]), this[x(2280)] = void 0); + this[x(1952)] && (clearInterval(this[x(1952)]), this[x(1952)] = void 0), this[x(2586)] && (clearTimeout(this[x(2586)]), this.heartbeatTimeoutTimer = void 0); } - async [a(1838)](x, t) { + async [a(1865)](x, t) { const r = a; - this[r(1066)]({ channel: r(2516), posterIdentifier: this[r(3279)], payload: x }); + this[r(1066)]({ channel: r(902), posterIdentifier: this.posterIdentifier, payload: x }); } - async [a(1489)]() { + async [a(880)]() { const x = a; - this.clearHeartbeatTimers(), mx[x(875)](this[x(3279)]), this[x(2532)](this[x(1036)]); + this[x(1723)](), mx.delete(this[x(1808)]), this.removeMessageEventListener(this[x(2382)]); } } -const au = ix[a(919)](a(2415)); -async function kn() { +const Yc = ox[a(1735)](a(1245)); +async function yn() { const o = a; - if (!window[o(2458)]) return; - const x = new tu({ posterIdentifier: "comfy-uxp", messagePoster: (e) => { - const s = o; - window[s(2458)][s(2794)](e, "*"); + if (!window[o(1248)]) return; + const x = new Xc({ posterIdentifier: o(757), messagePoster: (e) => { + window[o(1248)].postMessage(e, "*"); }, addMessageEventListener: (e) => { const s = o, n = (i) => { - e(i.data); + e(i[Z(1506)]); }; - return window[s(731)](s(1044), n), n; + return window[s(2322)](s(2461), n), n; }, removeMessageEventListener: (e) => { - const s = o; - window[s(2234)](s(1044), e); + window[o(1034)]("message", e); } }); - x[o(934)] = (e) => { - au(o(2526), e); + x[o(2917)] = (e) => { + Yc("comfy side transport.onerror", e); }; - const t = new eu({ name: "comfy-uxp", version: o(2319) }, {}), r = new _o(t); - return await r[o(1645)](x), window.uxpHost[o(2794)]({ channel: o(942), meshName: o(886), action: o(1645), version: o(1319) }, "*"), await Ie[o(1645)]("uxp", r); + const t = new Jc({ name: o(757), version: "1.0.0" }, {}), r = new Io(t); + return await r[o(1501)](x), window[o(1248)][o(931)]({ channel: o(2346), meshName: o(1631), action: o(1501), version: o(2507) }, "*"), await Ee[o(1501)](o(1020), r); } -const ru = Object[a(1100)](Object[a(2796)]({ __proto__: null, connectUXP: kn, mcpMesh: Ie }, Symbol.toStringTag, { value: a(639) })); -function Pn(o) { - const x = a, t = Te[x(2542)] || Te.extensionManager.workflow, r = t[x(3176)]; - if (o && o[x(788)] && o.detail.id !== r[x(3266)].id) return; - const e = Ie[x(872)][x(1079)]().widgetableStructure, s = ea(Te.graph, r); - En(s, e) && Ie[x(872)][x(738)]({ widgetableStructure: s }), Ie[x(872)][x(738)]({ widgetableValues: Nx(Te[x(1843)]) }); +const eu = Object[a(1466)](Object[a(2717)]({ __proto__: null, connectUXP: yn, mcpMesh: Ee }, Symbol[a(2010)], { value: a(547) })); +function vn(o) { + const x = a, t = Ne[x(878)] || Ne.extensionManager[x(1774)], r = t.activeWorkflow; + if (o && o.detail && o[x(3030)].id !== r[x(2617)].id) return; + const e = Ee[x(2788)].getState().widgetableStructure, s = ea(Ne[x(2603)], r); + Sn(s, e) && Ee[x(2788)][x(734)]({ widgetableStructure: s }), Ee.store[x(734)]({ widgetableValues: Tx(Ne[x(2603)]) }); } -R0[a(731)](a(693), Pn), R0.addEventListener(a(544), () => { +R0[a(2322)](a(1443), vn), R0[a(2322)](a(921), () => { const o = a; - Ie.store[o(738)]({ widgetableValues: Nx(Te[o(1843)]) }); + Ee.store[o(734)]({ widgetableValues: Tx(Ne[o(2603)]) }); }); let Yr = 0, es = !0, xs = ""; -function In() { +function wn() { const o = a; - requestAnimationFrame(In); - const x = Te[o(2542)] || Te[o(1797)][o(538)], t = x[o(3176)], r = (t == null ? void 0 : t.id) || 0, e = (t == null ? void 0 : t[o(2474)]) || "", s = (t == null ? void 0 : t[o(1260)]) || !0; + requestAnimationFrame(wn); + const x = Ne[o(878)] || Ne[o(1108)].workflow, t = x[o(1763)], r = (t == null ? void 0 : t.id) || 0, e = (t == null ? void 0 : t[o(648)]) || "", s = (t == null ? void 0 : t.isPersisted) || !0; if (r === Yr && e === xs && s === es) return; - const n = Date.now(); + const n = Date[o(804)](); Yr = r, xs = e, es = s; - const i = ea(Te[o(1843)], t), c = Nx(Te[o(1843)]); - Ie.store[o(738)]({ widgetableStructure: i, widgetableValues: c }), console[o(1635)](o(2586) + (Date.now() - n) + "ms"), setTimeout(() => { + const i = ea(Ne.graph, t), c = Tx(Ne[o(2603)]); + Ee[o(2788)][o(734)]({ widgetableStructure: i, widgetableValues: c }), console.log(o(758) + (Date[o(804)]() - n) + "ms"), setTimeout(() => { const u = o; - if (t !== x[u(3176)]) return; - const f = ea(Te[u(1843)], t), l = Nx(Te.graph); - En(f, i) && Ie[u(872)][u(738)]({ widgetableStructure: f }), Ie[u(872)][u(738)]({ widgetableValues: l }); + if (t !== x[u(1763)]) return; + const d = ea(Ne[u(2603)], t), l = Tx(Ne[u(2603)]); + Sn(d, i) && Ee[u(2788)][u(734)]({ widgetableStructure: d }), Ee.store[u(734)]({ widgetableValues: l }); }, 800); } -requestAnimationFrame(In); -function En(o, x) { +requestAnimationFrame(wn); +function Sn(o, x) { const t = a; - return o[t(2522)].length !== x[t(2522)][t(2710)] || JSON.stringify(o[t(2522)]) !== JSON[t(1031)](x[t(2522)]) || JSON[t(1031)](o.nodes) !== JSON.stringify(x[t(669)]); + return o[t(1722)][t(1148)] !== x[t(1722)][t(1148)] || JSON[t(3038)](o.nodeIndexes) !== JSON[t(3038)](x.nodeIndexes) || JSON.stringify(o[t(2844)]) !== JSON[t(3038)](x[t(2844)]); } let ts = !1; -async function su() { +async function xu() { const o = a; - if (ts) return Promise[o(2457)](); - R0[o(1747)] && Ie[o(872)][o(738)]({ comfyUserToken: R0[o(1747)] }), ts = !0; + if (ts) return Promise[o(855)](); + R0[o(772)] && Ee.store[o(734)]({ comfyUserToken: R0[o(772)] }), ts = !0; } -ix[a(919)](a(1704)); -async function nu(o, x, t) { +ox[a(1735)]("comfy-entry"); +async function tu(o, x, t) { const r = a; - x.addEventListener(r(2560), ({ detail: n }) => { + x.addEventListener(r(364), ({ detail: n }) => { const i = r; if (!n) return; let c = 0, u = 0; - !isNaN(n[i(2446)] / n.max) && (c = Math.round(n[i(2446)] / n[i(753)] * 100)); - const f = n[i(2480)], l = graph[i(669)][i(3146)]((d) => d.id == f); - if (l && l[i(1744)]) { - const d = 100 / graph[i(669)][i(2710)]; - u = Math.round(l[i(1744)] * d) + (c ? c / 100 * d : 0); + !isNaN(n.value / n[i(477)]) && (c = Math.round(n[i(935)] / n[i(477)] * 100)); + const d = n[i(2489)], l = graph[i(2844)][i(304)]((f) => f.id == d); + if (l && l[i(2589)]) { + const f = 100 / graph[i(2844)][i(1148)]; + u = Math[i(2944)](l[i(2589)] * f) + (c ? c / 100 * f : 0); } - Ie[i(872)][i(738)]({ progress: c, graphProgress: u }); - }), x[r(731)](r(1227), (n) => { + Ee[i(2788)][i(734)]({ progress: c, graphProgress: u }); + }), x[r(2322)](r(1071), (n) => { var c; const i = r; - (c = n.detail) != null && c[i(725)] && Ie[i(872)][i(738)]({ queueSize: n.detail[i(725)][i(2201)] }); - }), x[r(731)](r(711), ({ detail: n }) => { + (c = n[i(3030)]) != null && c.exec_info && Ee[i(2788)].setState({ queueSize: n[i(3030)][i(1366)][i(769)] }); + }), x[r(2322)]("execution_error", ({ detail: n }) => { const i = r; - if (Ie[i(872)][i(738)]({ executingNodeTitle: "", executingNodeID: "", lastError: n.exception_message }), n[i(666)]) { - const c = o.graph[i(669)][i(3146)]((u) => u.id == n.node_id); - Ie[i(872)][i(738)]({ widgetableErrors: { [n[i(666)]]: "[" + ((c == null ? void 0 : c.title) || n[i(666)]) + "]" + n.exception_message } }); + if (Ee[i(2788)].setState({ executingNodeTitle: "", executingNodeID: "", lastError: n.exception_message }), n[i(1907)]) { + const c = o[i(2603)].nodes[i(304)]((u) => u.id == n[i(1907)]); + Ee[i(2788)][i(734)]({ widgetableErrors: { [n.node_id]: "[" + ((c == null ? void 0 : c.title) || n[i(1907)]) + "]" + n.exception_message } }); } - }), x[r(731)](r(593), (n) => { - const i = r, c = n[i(788)], u = graph[i(669)].find((f) => f.id == c); + }), x[r(2322)](r(707), (n) => { + const i = r, c = n[i(3030)], u = graph[i(2844)][i(304)]((d) => d.id == c); if (u) { - const f = 100 / graph[i(669)][i(2710)]; - Ie[i(872)].setState({ executingNodeTitle: u[i(2141)], executingNodeID: u.id, graphProgress: Math.round(u[i(1744)] * f) }); + const d = 100 / graph[i(2844)][i(1148)]; + Ee[i(2788)][i(734)]({ executingNodeTitle: u[i(2673)], executingNodeID: u.id, graphProgress: Math.round(u[i(2589)] * d) }); } - }), x[r(731)]("execution_interrupted", () => { + }), x[r(2322)](r(402), () => { const n = r; - Ie.store[n(738)]({ progress: 0, executingNodeTitle: "", executingNodeID: "" }); - }), x[r(731)]("execution_start", ({ detail: n }) => { + Ee[n(2788)][n(734)]({ progress: 0, executingNodeTitle: "", executingNodeID: "" }); + }), x[r(2322)](r(1675), ({ detail: n }) => { const i = r; - Ie[i(872)].setState({ lastError: "", widgetableErrors: {}, progress: 0, executingNodeTitle: "", executingNodeID: "", lastRunTime: Date[i(3275)]() }); + Ee[i(2788)][i(734)]({ lastError: "", widgetableErrors: {}, progress: 0, executingNodeTitle: "", executingNodeID: "", lastRunTime: Date.now() }); }); const e = /* @__PURE__ */ new Map(); - x[r(731)]("execution_success", (n) => { + x.addEventListener("execution_success", (n) => { const i = r; - Ie[i(872)][i(738)]({ progress: 0, executingNodeTitle: "", executingNodeID: "" }); - const c = (e[i(674)](n[i(788)].prompt_id) || [])[i(1930)]((u) => ({ url: u, thumbnail: u })); - Hi(n[i(788)][i(931)], c), e[i(875)](n[i(788)].prompt_id); - }), x.addEventListener(r(544), (n) => { - const i = r, c = e.get(n[i(788)][i(931)]) || []; - n.detail[i(1121)] && Array.isArray(n[i(788)].output[i(3222)]) && n[i(788)][i(1121)].images[i(2710)] > 0 && c[i(3062)](...n[i(788)][i(1121)][i(3222)].filter((u) => u[i(2076)] == i(1121)).map((u) => { - const f = i; - return location[f(1230)] + location[f(2167)] + f(1552) + u[f(2076)] + "&filename=" + encodeURIComponent(u[f(1165)]) + (u[f(1563)] ? "&subfolder=" + encodeURIComponent(u[f(1563)]) : ""); - })), n[i(788)][i(1121)] && Array.isArray(n[i(788)].output[i(1574)]) && n[i(788)].output[i(1574)][i(2710)] > 0 && c[i(3062)](...n[i(788)][i(1121)][i(1574)].map((u) => { - const f = i; - return location[f(1230)] + location.pathname + f(491) + encodeURIComponent(u); - })), e.set(n[i(788)][i(931)], c); + Ee.store.setState({ progress: 0, executingNodeTitle: "", executingNodeID: "" }); + const c = (e[i(1507)](n[i(3030)][i(2712)]) || [])[i(2739)]((u) => ({ url: u, thumbnail: u })); + Mi(n[i(3030)][i(2712)], c), e[i(2375)](n[i(3030)][i(2712)]); + }), x[r(2322)](r(921), (n) => { + const i = r, c = e[i(1507)](n[i(3030)][i(2712)]) || []; + n[i(3030)][i(1749)] && Array[i(500)](n[i(3030)][i(1749)][i(2477)]) && n[i(3030)].output[i(2477)].length > 0 && c[i(3019)](...n[i(3030)].output[i(2477)][i(362)]((u) => u[i(2291)] == i(1749)).map((u) => { + const d = i; + return location[d(1444)] + location[d(962)] + d(2950) + u[d(2291)] + "&filename=" + encodeURIComponent(u.filename) + (u[d(783)] ? d(2209) + encodeURIComponent(u[d(783)]) : ""); + })), n[i(3030)][i(1749)] && Array[i(500)](n[i(3030)][i(1749)][i(2160)]) && n.detail[i(1749)].sdppp_assets[i(1148)] > 0 && c[i(3019)](...n[i(3030)][i(1749)][i(2160)][i(2739)]((u) => { + const d = i; + return location.origin + location.pathname + d(610) + encodeURIComponent(u); + })), e[i(823)](n[i(3030)][i(2712)], c); }); let s = null; - x[r(731)]("reconnecting", (n) => { + x.addEventListener("reconnecting", (n) => { s = setTimeout(() => { - const i = K; - Ie.store[i(738)]({ comfyWSState: i(1097) }); + const i = Z; + Ee.store[i(734)]({ comfyWSState: i(2285) }); }, 1e3); - }), x[r(731)]("reconnected", (n) => { + }), x.addEventListener(r(1155), (n) => { const i = r; - Ie[i(872)][i(738)]({ comfyWSState: i(1880) }), clearTimeout(s); + Ee.store.setState({ comfyWSState: i(698) }), clearTimeout(s); }); } let $t = []; (async function() { var x, t, r, e, s, n; const o = a; - if (typeof gradioApp == o(993)) { + if (typeof gradioApp == o(2781)) { try { - const i = (t = (x = window[o(1608)]) == null ? void 0 : x.app) == null ? void 0 : t[o(2012)], c = (e = (r = window[o(1608)]) == null ? void 0 : r.ui) == null ? void 0 : e[o(2787)], u = (n = (s = window[o(1608)]) == null ? void 0 : s[o(706)]) == null ? void 0 : n.api; - if (!i || !u || !c) throw new Error("comfyAPI is not initialized, maybe comfyUI is too old"); - await su(), await kn(), await nu(i, u, c), import(o(1821))[o(2517)]((f) => { - f[o(2485)](tx, 2); + const i = (t = (x = window.comfyAPI) == null ? void 0 : x.app) == null ? void 0 : t[o(2837)], c = (e = (r = window[o(2914)]) == null ? void 0 : r.ui) == null ? void 0 : e[o(2194)], u = (n = (s = window[o(2914)]) == null ? void 0 : s.api) == null ? void 0 : n[o(2753)]; + if (!i || !u || !c) throw new Error(o(701)); + await xu(), await yn(), await tu(i, u, c), import("./sdppp-custom.js")[o(634)]((d) => { + d[o(2096)](xx, 2); }); } catch (i) { - $t[o(3062)](i[o(2101)] || i[o(1044)] || i); + $t[o(3019)](i[o(2810)] || i.message || i); } - await new Promise((i) => setTimeout(i, 2e3)), $t[o(2710)] && console[o(490)]($t[0]); + await new Promise((i) => setTimeout(i, 2e3)), $t.length && console.error($t[0]); } })(); diff --git a/plugins/photoshop/css/styles.css b/plugins/photoshop/css/styles.css deleted file mode 100644 index cda084c..0000000 --- a/plugins/photoshop/css/styles.css +++ /dev/null @@ -1,966 +0,0 @@ -@media (prefers-color-scheme: darkest) { - :root { - --sdppp-widget-background-color: #1a1a1a; - --sdppp-widget-hover-background-color: #080808; - --sdppp-widget-text-color: #a2a2a2; - --sdppp-widget-hover-text-color: #efefef; - - --sdppp-widget-hover-border-color: #5c5c5c; - } -} - -@media (prefers-color-scheme: dark) { - :root { - --sdppp-widget-background-color: #2f2f2f; - --sdppp-widget-hover-background-color: #252525; - --sdppp-widget-text-color: #b9b9b9; - --sdppp-widget-hover-text-color: #fff; - - --sdppp-widget-hover-border-color: #6e6e6e; - } -} - -@media (prefers-color-scheme: light) { - :root { - --sdppp-widget-background-color: #fafafa; - --sdppp-widget-hover-background-color: #fff; - --sdppp-widget-text-color: #6e6e6e; - --sdppp-widget-hover-text-color: #2c2c2c; - - --sdppp-widget-hover-border-color: #b3b3b3; - } -} - -@media (prefers-color-scheme: lightest) { - :root { - --sdppp-widget-background-color: #fff; - --sdppp-widget-hover-background-color: #fff; - --sdppp-widget-text-color: #747474; - --sdppp-widget-hover-text-color: #323232; - - --sdppp-widget-hover-border-color: #bcbcbc; - } -} - -a { - color: var(--uxp-host-text-color); - text-decoration: underline; -} - -sp-label.error-label { - color: lightcoral; - white-space: normal; -} - -sp-progressbar { - width: 100%; -} - -.tabbar { - display: flex; - flex: 0 0 auto; - padding: 12px; - background-color: rgba(0, 0, 0, .25); - border-bottom-left-radius: 4px; - border-bottom-right-radius: 4px; - flex-wrap: wrap; -} - -.tabsection { - flex: 1 1 auto; - display: flex; - flex-direction: row; - flex-wrap: wrap; -} - -.tabsection:nth-of-type(2) { - justify-content: flex-end; -} - -.tabsection * { - margin: 0 4px; -} - -#url-bar { - flex: 2; -} - -.status-bar { - display: flex; - justify-content: left; - align-items: center; -} - -.status-bar.connected { - color: lightgreen; -} - -.status-bar.connecting { - color: lightyellow; -} - -.status-bar.disconnected { - color: lightcoral; - white-space: normal; -} - -.header { - width: 100%; - display: flex; - flex-direction: row; - align-items: center; - margin: 5px 0; -} - -.header-right { - flex: 1; - display: flex; - flex-direction: column; - justify-content: start; -} - -.header-container { - margin-bottom: 12px; -} - -.connect-box { - width: 100%; - display: flex; - justify-content: space-between; - align-items: center; - overflow: hidden; - height: 28px; - margin-top: 4px; -} - -.connect-box #url-bar { - margin: 0 5px; -} - -.connect-box sp-action-button { - font-size: 1.5rem; - font-weight: bold; - display: flex; - align-items: center; - line-height: 30px; -} - -.identifier-bar { - display: flex; - flex-direction: row; - justify-content: space-between; - align-items: center; -} - -.identifier-bar-right { - display: flex; - flex-direction: row; - align-items: end; -} - -.identifier-bar-right a { - margin-left: 5px; -} - -.container { - flex-direction: column; - display: flex; - height: 100%; - width: 100%; - padding: 0 8px; -} - -.sdppp-container { - display: flex; - flex-direction: column; -} - -.panel-body { - flex: 1; - width: 400%; - display: flex; - flex-direction: row; - overflow: hidden; -} - -.comfy-list-wrap { - height: 100%; - overflow-y: scroll; - margin-right: -12px; -} - -.editor-card { - width: 25%; - margin-right: 8.333%; - height: 100%; - overflow: hidden; -} - -.editor-card.webview-container { - display: flex; - flex-direction: column; -} - -.workflow-edit-wrap { - display: flex; - flex-direction: column; - height: 100%; - overflow: hidden; -} - -.workflow-edit { - overflow-y: scroll; - scrollbar-width: thin; - overflow-x: hidden; - flex: 1; - padding: 0 5px; -} - -.workflow-edit-title { - flex-direction: row; - justify-content: space-between; - display: flex; - align-items: center; -} - -.workflow-edit-title a { - text-decoration: underline; -} - -.workflow-edit-title sp-label { - font-weight: bold; - ; -} - -.workflow-edit-field.error-field { - color: lightcoral; -} - -.workflow-edit-field-title { - color: var(--uxp-host-text-color-secondary); - border-left: 4px solid rgba(127, 127, 127, .4); - padding: 2px 2px 2px 5px; - font-size: 12px; - display: inline-flex; - align-items: center; - -} - -.workflow-edit-field { - display: flex; - flex-direction: row; - flex-wrap: wrap; - margin-bottom: 10px; -} - -.workflow-edit-field>*:only-child { - flex: 1 0 100%; -} - -.workflow-edit-field sp-slider.sdppp-slider { - position: relative; -} - -.workflow-edit-field sp-slider.sdppp-slider sp-textfield { - position: absolute; - right: 0; - top: -25px; - width: 70px; - height: 20px; - text-align: right; -} - -.workflow-edit-field .image-widget { - display: flex; - flex-direction: row; -} - -.workflow-edit-field .image-widget .image-widget-left { - width: 100px; - height: 100px; - flex: none; -} - -.workflow-edit-field .image-widget .image-widget-left .image-widget-image { - width: 100%; - height: 100%; -} - -.workflow-edit-field .image-widget .image-widget-left .image-widget-image-empty { - background: white; -} - - -.workflow-edit-field .image-widget .image-widget-right { - flex: 1 1 0; - margin-left: 5px; - display: flex; - flex-direction: column; - align-items: start; - justify-content: start; - -} - -.workflow-edit-field .image-widget-layer-widget-container { - width: 100%; -} - -.widget-mode-selection { - display: flex; - flex-direction: row; - justify-content: stretch; - background: var(--uxp-host-border-color); - padding: 2px; - margin-bottom: 5px; -} - -.widget-mode-selection-button { - border: 1px solid var(--uxp-host-border-color); - color: var(--uxp-host-text-color-secondary); - /* background-color: var(--uxp-host-background-color); */ - font-weight: normal; - cursor: pointer; - font-size: 12px; - margin: 0 1px; -} - - -.widget-mode-selection-button.selected { - background-color: var(--uxp-host-widget-hover-background-color); - color: var(--uxp-host-widget-hover-text-color); - font-weight: bold; -} - - -.sdppp-dropdown-widget { - position: relative; -} - -.sdppp-dropdown-widget-options { - position: absolute; - top: 100%; - left: 0; - z-index: 1000; - background-color: var(--uxp-host-background-color); - color: var(--uxp-host-text-color-secondary); - width: 100%; -} - -.sdppp-dropdown-widget-options ul { - margin: 0; - padding: 4px 0; - list-style: none -} - -.sdppp-dropdown-widget-options ul li { - padding: 6px 12px; - cursor: pointer; -} - -.sdppp-dropdown-widget-options ul li:hover { - padding: 6px 12px; - cursor: pointer; - background-color: var(--spectrum-global-color-gray-200); -} - -.sdppp-layer-widget { - display: flex; - flex-direction: column; - align-items: start; - justify-content: start; -} - -.sdppp-layer-widget-dropdown { - display: flex; - flex-direction: row; - width: 95%; -} - -.sdppp-layer-widget-quick-set { - display: none; - flex-direction: row; - align-items: center; - justify-content: start; -} - -.sdppp-layer-widget:hover .sdppp-layer-widget-quick-set, -.sdppp-layer-widget-quick-set.sdppp-layer-widget-quick-set-only { - display: flex; -} - -.sdppp-layer-widget-quick-set a, -.image-widget-more-quickset a { - color: var(--uxp-host-widget-hover-text-color); - text-decoration: underline; - cursor: pointer; - margin-left: 5px; -} - -.image-widget-more-quickset { - margin-top: -5px; - display: flex; - flex-direction: column; - align-items: start; -} - -.image-widget-right .sdppp-layer-widget-quick-set { - align-items: start; - flex-direction: column; -} - -.workflow-edit-controls { - display: flex; - flex-direction: row; - justify-content: space-between; - align-items: stretch; -} - -.workflow-edit-controls-left { - flex: 1; - display: flex; - flex-direction: column; - justify-content: start; -} - -.workflow-edit-controls-left .workflow-edit-button-line { - display: flex; - flex-direction: row; - justify-content: space-between; -} - -.workflow-edit-button-line-left sp-textfield { - width: 54px; -} - -.workflow-edit-controls-center sp-action-button { - width: 72px; - height: 72px; - margin-left: 3px; -} - -.workflow-edit-controls-right { - display: flex; - flex-direction: column; - justify-content: stretch; - width: 20px; -} - -.workflow-edit-controls-right .action-button { - flex: 1; - padding: 0 1px; -} - -.workflow-run-status { - flex: 1; - display: flex; - flex-direction: column; - justify-content: start; -} - - -.client-list { - margin-top: -5px; -} - -.client-list-title { - min-height: 15px; - display: flex; - align-items: center; - flex-direction: column; - margin-top: 10px; -} - -.client-list-title h3 { - color: var(--uxp-host-text-color); -} - -.client-list-title-container { - display: flex; - flex-direction: row; - justify-content: space-between; - font-size: 48px; -} - -.client-list-title-container sp-picker { - width: 80px; - height: 20px; -} - -.client-list-item { - min-height: 15px; - display: flex; - justify-content: space-between; - align-items: baseline; - position: relative; - cursor: pointer; -} - -.client-list-item.show-tips .client-list-item-right .tips-icon, -.client-list-item:hover .client-list-item-right .tips-icon { - display: inline-flex; -} - -.client-list-item.checked .client-list-item-left { - color: var(--uxp-host-widget-hover-text-color); -} - -.client-list-item:hover { - background-color: rgba(127, 127, 127, .1); -} - -.client-list-item .client-list-item-left { - display: flex; - flex: 2; - flex-direction: row; - align-items: center; - height: 20px; -} - -.client-list-item .client-list-item-left>div, -.client-list-item .client-list-item-left>span { - margin-left: 5px; -} - -.client-list-item .client-list-item-left svg { - cursor: pointer; -} - -.client-list-item .client-list-item-left-active { - color: var(--uxp-host-widget-hover-text-color); -} - -.client-list-item sp-checkbox { - margin-right: 2px; -} - -.client-list-item .client-progress { - margin-right: 5px; - text-align: right; - display: flex; - justify-content: end; -} - -.client-list-item .client-list-item-right { - white-space: nowrap; - color: #bbb; - display: flex; - flex-direction: row; - align-items: center; - justify-content: end; - cursor: default; -} - - -.client-list-item .client-list-item-right .tips-icon { - cursor: pointer; - display: none; -} - -.client-list-item .client-list-item-right sp-label { - justify-content: flex-end; - cursor: pointer; - height: 20px; -} - -.client-list-item .client-list-item-right sp-label.active { - color: var(--uxp-host-widget-hover-text-color); -} - -.client-list-item .client-list-item-right .action-button { - height: 20px; - width: 30px; - margin-left: 5px; -} - -.client-list-item .client-list-item-right sp-link:active { - color: var(--uxp-host-widget-hover-text-color) -} - -.list-error-label { - color: lightcoral; - text-align: center; - word-break: break-all; - white-space: normal; -} - -.autorun-desc { - font-size: 10px; - display: block; -} - -.action-button { - background-color: var(--sdppp-widget-background-color); - color: var(--sdppp-widget-text-color); - border: 1px solid var(--uxp-host-border-color); - padding: 2px 4px; - border-radius: 4px; - display: inline-flex; - align-items: center; - justify-content: center; -} - -.action-button:hover { - background-color: var(--sdppp-widget-hover-background-color); - border-color: var(--sdppp-widget-hover-border-color); - color: var(--sdppp-widget-hover-text-color); -} - -.action-button:active { - background-color: var(--uxp-host-text-color); -} - -sp-action-button.highlight, -.action-button.highlight { - background-color: var(--uxp-host-text-color); -} - -sp-action-button.highlight:hover, -.action-button.highlight:hover { - background-color: var(--uxp-host-text-color-secondary); -} - -.about-card { - font-size: 12px; - width: 100%; - color: var(--uxp-host-text-color); - overflow-y: scroll; -} - -.about-card h2, -h1 { - display: block; - text-align: center; -} - -.about-card-sections { - display: flex; - width: 100%; - margin-bottom: 15px; - flex-direction: row; - justify-content: space-around; - align-items: center; - flex-wrap: wrap; -} - -.about-card-sections:first-child { - margin-top: 15px; -} - -.about-card-sections.about-card-title { - flex-direction: column; -} - -.about-card a { - color: var(--uxp-host-widget-hover-text-color); - text-decoration: underline; - display: inline-block; - margin-top: 10px; - margin-right: 15px; -} - -.sdppp-primitive-string-widget { - position: relative; -} - -.sdppp-primitive-string-widget sp-textarea { - position: absolute; - height: 100%; - width: 100%; - top: 0; - left: 0; -} - -.sdppp-primitive-string-widget p { - font-size: 14px; - /* visibility: hidden; */ - white-space: pre-line; - color: var(--uxp-host-text-color-secondary); - cursor: pointer; - background-color: var(--uxp-host-label-text-color); -} - -/* .sdppp-primitive-string-widget p:hover { - background-color: rgba(127, 127, 127, .1); -} */ - -.sdppp-primitive-string-edit-dialog { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; -} - -.sdppp-primitive-string-edit-dialog-buttons { - display: flex; - flex-direction: row; - align-items: center; - justify-content: space-around; - width: 100%; - margin-top: 10px; -} - -.sdppp-icon { - stroke: currentcolor; - stroke-width: 0; - display: flex; - flex-direction: row; - text-decoration: none; -} - -.sdppp-dialog { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - padding: 0; - width: 540px; -} - -.sdppp-dialog-content { - width: 500px; - max-height: 420px; - padding-top: 20px; -} - -.sdppp-dialog-buttons { - display: flex; - flex-direction: row; - align-items: center; - justify-content: space-around; - width: 100%; - padding-bottom: 20px; -} - -.promote-webview { - width: 100%; - height: 30px; - background-color: var(--uxp-host-background-color); -} - -.sdppp-login-block { - cursor: pointer; - width: 20px; - height: 20px; -} - -.sdppp-login-block img { - opacity: 0.5; - width: 100%; - height: 100%; -} - -.connect-configuration { - background-color: rgba(127, 127, 127, .5); - margin: 0 5px; - flex: 2; - color: var(--uxp-host-text-color); - height: 100%; - padding-left: 5px; - display: flex; - flex-direction: row; - font-size: 12px; - border-radius: 3px; - cursor: pointer; - position: relative; - padding-bottom: 2px; -} - -.connect-config-progress { - position: absolute; - bottom: 0; - left: 0; - width: 0; - height: 2px; - background-color: var(--uxp-host-text-color-secondary); -} - -.connect-configuration:hover { - background-color: rgba(127, 127, 127, .7); -} - -.connect-config-content span { - display: flex; -} - -.connect-config-content { - align-items: center; - justify-content: center; - flex: 1; - flex-direction: column; - display: flex; -} - -.connect-config-actions { - width: 28px; - height: 28px; - display: flex; - align-items: center; - justify-content: center; -} - -.connect-config-error { - color: lightcoral; -} - -.connect-config-message { - color: var(--uxp-host-text-color-secondary); - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - max-width: 100%; -} - -.web-page-list .client-list-item-left { - font-size: 16px; - color: var(--uxp-host-text-color); -} - -.app-login-container { - width: 100%; - padding: 8px; - display: flex; - flex-direction: column; - align-items: center; -} - -.app-login-line { - width: 100%; - display: flex; - flex-direction: row; - justify-content: space-between; - align-items: center; - margin-top: 10px; -} - -.app-login-line-left { - display: flex; - align-items: center; - justify-content: start; - flex: 1 -} - -.app-login-line-right { - display: flex; - align-items: center; - justify-content: end; - flex: 1; -} - - - -/* agent config panel */ -.client-panel { - border-radius: 16px; - padding: 24px; - width: 456px; - color: var(--uxp-host-text-color); - font-family: sans-serif; - font-size: 12px; -} - -.client-panel .client-panel-title { - text-align: center; - margin: 0 0 16px 0; - font-size: 1.2em; - /* 21px */ - color: var(--uxp-host-text-color); -} - -.client-panel .agent-list { - border-radius: 12px; - padding: 0; - margin-bottom: 24px; - border: 1px solid var(--uxp-host-border-color); -} - -.client-panel .agent-list-item { - padding: 16px 20px; - background: transparent; - cursor: pointer; - font-size: 1em; - /* 16.8px */ - border-bottom: 1px solid var(--uxp-host-border-color); - transition: background 0.2s; - color: var(--uxp-host-text-color); -} - -.client-panel .agent-list-item.selected { - background: rgba(127, 127, 127, 0.1); -} - -.client-panel .agent-list-item:last-child { - border-bottom: none; -} - -.client-panel .login-block { - margin-bottom: 24px; - border-bottom: 1px solid var(--uxp-host-border-color); - padding-bottom: 16px; - width: 100%; - display: flex; - flex-direction: row; - justify-content: space-between; - align-items: center; -} - -.client-panel .login-title { - font-size: 1.1em; - /* 15.4px */ - margin-bottom: 4px; - color: var(--uxp-host-text-color); -} - -.client-panel .login-title-secondary { - color: var(--uxp-host-text-color-secondary); - font-size: 1em; - /* 14px */ -} - -.client-panel .login-desc { - color: var(--uxp-host-text-color-secondary); - font-size: 1em; - /* 14px */ - margin-bottom: 8px; -} - -.client-panel .logout-btn { - color: var(--uxp-host-text-color); - border: none; - padding: 10px 24px; - font-size: 1.1em; - cursor: pointer; -} - -.client-panel .api-key-title { - /* 15.4px */ - margin-bottom: 8px; - color: var(--uxp-host-text-color); -} - -.client-panel .api-key-input { - width: 100%; - color: var(--uxp-host-text-color); - font-size: 1em; - /* 14px */ -} -/* end of agent config panel */ - -/* GroupFilter component styles */ -.group-filter { - display: flex; - flex-wrap: wrap; - padding: 4px 0; -} - -.group-filter-item { - padding: 2px 8px; - border-radius: 4px; - cursor: pointer; - white-space: nowrap; - flex-shrink: 0; -} - -.group-filter-item:not(:first-child) { - margin-left: 8px; -} -/* end of GroupFilter component styles */ \ No newline at end of file diff --git a/plugins/photoshop/dist/index.js.map b/plugins/photoshop/dist/index.js.map deleted file mode 100644 index 0a7f3da..0000000 --- a/plugins/photoshop/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["external-global-plugin:SDPPPInternal", "external-global-plugin:react", "external-global-plugin:react/jsx-runtime", "external-global-plugin:react-dom/client", "../../../typescripts/modules/photoshop/src/tsx/SDPPPInternalBridge.tsx", "../../../typescripts/src/common/en.mts", "../../../typescripts/src/common/zh-cn.mts", "../../../typescripts/src/common/i18n.mts", "../../../typescripts/modules/photoshop/src/tsx/ActionButton.tsx", "../../../typescripts/modules/photoshop/src/tsx/icons/EditIcon.tsx", "../../../typescripts/modules/photoshop/src/tsx/icons/FolderIcon.tsx", "../../../typescripts/modules/photoshop/src/tsx/icons/LivePaintingIcon.tsx", "../../../typescripts/modules/photoshop/src/tsx/icons/PlayIcon.tsx", "../../../typescripts/modules/photoshop/src/tsx/WorkflowListItem.tsx", "../../../typescripts/modules/photoshop/src/tsx/WorkflowList.tsx", "../../../typescripts/modules/photoshop/src/tsx/Content.tsx", "../../../typescripts/modules/photoshop/src/tsx/WorkflowEditWrap.tsx", "../../../typescripts/modules/photoshop/src/tsx/icons/RefreshIcon.tsx", "../../../typescripts/modules/photoshop/src/tsx/icons/SaveIcon.tsx", "../../../typescripts/modules/photoshop/src/tsx/icons/PlayMultiIcon.tsx", "../../../typescripts/modules/photoshop/src/tsx/icons/WebEditIcon.tsx", "../../../typescripts/modules/photoshop/src/tsx/icons/CrossIcon.tsx", "../../../typescripts/modules/photoshop/src/tsx/icons/StopIcon.tsx", "../../../typescripts/modules/photoshop/src/tsx/icons/CancelIcon.tsx", "../../../typescripts/src/common/sdpppX.mts", "../../../typescripts/modules/photoshop/src/tsx/Main.tsx", "../../../typescripts/modules/photoshop/src/entry.tsx"], - "sourcesContent": ["module.exports = window.SDPPPInternal", "module.exports = window.React", "module.exports = window.ReactJSXRuntime", "module.exports = window.ReactDOMClient", "export * from \"SDPPPInternal\";", "export default {\n 'SDPPP Get Document': 'DEPRECATED! Get Document',\n 'SDPPP Get Layer By ID': 'DEPRECATED! Get Layer',\n 'SDPPP Get Linked Layers': 'DEPRECATED! Get Linked Layers',\n 'SDPPP Get Layers In Group': 'DEPRECATED! Get Layers In Group',\n 'SDPPP Get Text From Layer': 'DEPRECATED! Get Text From Layer',\n 'SDPPP Parse Layer Info': 'DEPRECATED! Parse Layer Info',\n 'SDPPP Get Selection': 'DEPRECATED! Get Selection', \n 'SDPPP Get Image From Photoshop': 'DEPRECATED! Get Image From Photoshop',\n 'SDPPP Send Images To Photoshop': 'DEPRECATED! Send Images To Photoshop',\n 'SDPPP Send Text To Layer': 'DEPRECATED! Send Text To Layer',\n 'SDPPP Select Layer And Run PS Action': 'DEPRECATED! Select Layer And Run PS Action',\n \"Photoshop Disconnected!\" : \"Photoshop Disconnected!\\n(2.0+ use LoadImage node)\",\n\n}\n", "export default {\n // speicial document/ layer\n '### Active Document ###': '### \u5F53\u524D\u6587\u6863 ###',\n '### The Canvas ###': '### \u6574\u4E2A\u753B\u5E03 ###',\n '### New Layer ###': '### \u65B0\u56FE\u5C42 ###',\n '### Selected Layer ###': '### \u6240\u9009\u56FE\u5C42 ###',\n '### Keep Size or Fit Canvas ###': '### \u4FDD\u6301\u5C3A\u5BF8\u6216\u9002\u5E94\u753B\u5E03 ###',\n '_SDPPP_PSD_': '_SDPPP_PSD_',\n\n // A1111 UI\n 'Save and run immediately': '\u4FDD\u5B58\u5E76\u7ACB\u5373\u6267\u884C',\n 'Close': '\u5173\u95ED',\n 'Select a {0}': `\u9009\u62E9\u4E00\u4E2A {0}`,\n\n // comfyui dialog\n 'How to use .ccx file': '\u5982\u4F55\u4F7F\u7528 .ccx \u6587\u4EF6',\n '1. If you have installed Adobe Creative Cloud': '1. \u5982\u679C\u4F60\u5DF2\u7ECF\u5B89\u88C5\u4E86 Adobe Creative Cloud', \n 'Just double click the .ccx file, it will install the plugin automatically': '\u53CC\u51FB .ccx \u6587\u4EF6\uFF0C\u5B83\u4F1A\u81EA\u52A8\u5B89\u88C5',\n \"2. If you don't have Adobe Creative Cloud\": '2. \u5982\u679C\u4F60\u6CA1\u6709 Adobe Creative Cloud',\n 'Rename .ccx to .zip and extract it into ': '\u5C06 .ccx \u91CD\u547D\u540D\u4E3A .zip \u5E76\u89E3\u538B\u5230',\n 'or': '\u6216',\n 'Photoshop directory': 'Photoshop \u5B89\u88C5\u76EE\u5F55',\n\n // comfyui error\n 'Cannot connect multiple different document widgets with same value': '\u4E0D\u80FD\u8FDE\u63A5\u591A\u4E2A\u5177\u6709\u76F8\u540C\u503C\u7684\u6587\u6863\u5C0F\u90E8\u4EF6',\n 'You can only have one SDPPP Settings node in a workflow': '\u4E00\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u53EA\u80FD\u6709\u4E00\u4E2A SDPPP Settings \u8282\u70B9',\n 'convert widget {0} failed:': '\u63A7\u4EF6{0}\u8F6C\u6362\u5931\u8D25\uFF1A',\n 'hidden webview load failed: {0}, please select a browser page to continue': '\u5185\u7F6E webview \u52A0\u8F7D\u5931\u8D25: {0}\uFF0C\u8BF7\u9009\u62E9\u4E00\u4E2A\u6D4F\u89C8\u5668\u9875\u9762\u7EE7\u7EED',\n \n // comfy node title\n 'SDPPP Get Document': '\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u6587\u6863(GetDocument)',\n 'SDPPP Get Layer By ID': '\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u56FE\u5C42(GetLayer)',\n 'SDPPP Get Linked Layers': '\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u94FE\u63A5\u56FE\u5C42(GetLinkedLayers)',\n 'SDPPP Get Layers In Group': '\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u7EC4\u4E2D\u56FE\u5C42(GetLayersInGroup)',\n 'SDPPP Get Text From Layer': '\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u56FE\u5C42\u6587\u672C(GetTextFromLayer)',\n 'SDPPP Parse Layer Info': '\u5E9F\u5F03\u8282\u70B9! \u89E3\u6790\u56FE\u5C42\u4FE1\u606F(ParseLayerInfo)',\n 'SDPPP Get Selection': '\u5E9F\u5F03\u8282\u70B9! \u83B7\u53D6\u9009\u533A(GetSelection)', \n 'SDPPP Get Image From Photoshop': '\u5E9F\u5F03\u8282\u70B9! \u4ECEPS\u83B7\u53D6\u56FE\u50CF(GetImageFromPhotoshop)',\n 'SDPPP Send Images To Photoshop': '\u5E9F\u5F03\u8282\u70B9! \u53D1\u9001\u56FE\u50CF\u5230PS(SendImagesToPhotoshop)',\n 'SDPPP Send Text To Layer': '\u5E9F\u5F03\u8282\u70B9! \u53D1\u9001\u6587\u672C\u5230\u56FE\u5C42(SendTextToLayer)',\n 'SDPPP Select Layer And Run PS Action': '\u5E9F\u5F03\u8282\u70B9! \u9009\u4E2D\u56FE\u5C42\u5E76\u8FD0\u884CPS Action(RunPhotoshopAction)',\n\n// comfy widget/input\n 'download PS plugin (.ccx)': '\u4E0B\u8F7D Photoshop \u63D2\u4EF6 (.ccx)',\n 'current ComfyUI pageid: {0}': '\u5F53\u524D ComfyUI \u9875\u9762ID: {0}',\n 'current A1111 pageid: {0}': '\u5F53\u524D A1111 \u9875\u9762ID: {0}',\n 'document linked': '\u6587\u6863\u53C2\u6570\u5DF2\u94FE\u63A5',\n 'layer linked': '\u56FE\u5C42\u53C2\u6570\u5DF2\u94FE\u63A5',\n 'bound linked': '\u8303\u56F4\u53C2\u6570\u5DF2\u94FE\u63A5',\n 'document': '\u6587\u6863', \n 'Document': '\u6587\u6863', \n 'DOCUMENT': '\u6587\u6863', \n 'document_name': '\u6587\u6863\u540D\u5B57id',\n 'layer_nameid': '\u56FE\u5C42\u540D\u5B57id',\n 'layer_name': '\u56FE\u5C42\u540D\u5B57',\n 'layer_info': '\u56FE\u5C42\u4FE1\u606F',\n 'bound_top': '\u8303\u56F4\u4E0A\u8FB9\u8DDD',\n 'bound_left': '\u8303\u56F4\u5DE6\u8FB9\u8DDD',\n 'bound_width': '\u8303\u56F4\u5BBD\u5EA6',\n 'bound_height': '\u8303\u56F4\u9AD8\u5EA6',\n 'center_x': '\u4E2D\u5FC3\u70B9x',\n 'center_y': '\u4E2D\u5FC3\u70B9y',\n 'opacity': '\u900F\u660E\u5EA6',\n 'layer': '\u56FE\u5C42',\n 'layer_or_group': '\u56FE\u5C42(\u6216\u7EC4)',\n 'Layer_or_group': '\u56FE\u5C42(\u6216\u7EC4)',\n 'bound': '\u8303\u56F4',\n 'bounds': '\u8303\u56F4',\n 'bounds [optional]': '\u8303\u56F4[\u53EF\u9009]',\n 'boundary': '\u8303\u56F4',\n 'Boundary': '\u8303\u56F4',\n 'canvas_boundary': '\u753B\u5E03\u8303\u56F4',\n 'canvas_bound': '\u753B\u5E03\u8303\u56F4',\n 'layer_boundary': '\u56FE\u5C42\u8303\u56F4',\n 'layer_bound': '\u56FE\u5C42\u8303\u56F4',\n \"Photoshop Disconnected!\" : \"Photoshop \u672A\u8FDE\u63A5\uFF01\\n(2.0+ \u8BF7\u6539\u7528LoadImage\u8282\u70B9)\",\n 'rgb_out': 'RGB\u8F93\u51FA',\n 'alpha_out': 'Alpha\u8F93\u51FA',\n 'images': '\u56FE\u50CF',\n 'text': '\u6587\u672C',\n 'ID_mode': '\u7CBE\u786EID\u6A21\u5F0F',\n 'name_mode': '\u540D\u5B57\u5339\u914D\u6A21\u5F0F',\n 'select': '\u9009\u62E9',\n 'document boundary': '\u6587\u6863\u8303\u56F4',\n 'layer boundary': '\u56FE\u5C42\u8303\u56F4',\n 'selection boundary': '\u9009\u4E2D\u8303\u56F4',\n 'save .psd to this workflow': '\u4FDD\u5B58.psd\u5230\u8FD9\u4E2A\u5DE5\u4F5C\u6D41',\n 'extract saved .psd to Photoshop': '\u63D0\u53D6\u4FDD\u5B58\u7684.psd\u5230Photoshop',\n 'sample .psd': '\u793A\u4F8B.psd',\n 'mask': '\u906E\u7F69',\n 'name': '\u540D\u79F0',\n 'quality': '\u56FE\u50CF\u8D28\u91CF',\n 'action_set': '\u52A8\u4F5C\u7EC4',\n 'action': '\u52A8\u4F5C',\n \n // photoshop UI\n 'Runner': '\u8FD0\u884C\u8F7D\u4F53',\n 'PS Webview': 'PS \u5185\u7F6E\u7F51\u9875',\n 'Browser {0}': '\u6D4F\u89C8\u5668\u9875\u9762 {0}',\n 'timeout': '\u8D85\u65F6',\n 'Loading...': '\u52A0\u8F7D\u4E2D...',\n '--multi-user Not Login!': '--multi-user\u5DF2\u6FC0\u6D3B\uFF0C\u4F46\u672A\u767B\u5F55\uFF01',\n 'Logout': '\u767B\u51FA',\n 'User: ': '\u7528\u6237: ',\n 'connect': '\u8FDE\u63A5',\n 'connected': '\u5DF2\u8FDE\u63A5',\n 'disconnect': '\u65AD\u5F00',\n 'disconnected': '\u5DF2\u65AD\u5F00\u8FDE\u63A5',\n 'reconnecting...': '\u91CD\u8FDE\u4E2D...', \n 'connecting': '\u8FDE\u63A5\u4E2D', \n 'webpages': '\u7F51\u9875\u5217\u8868',\n 'workflows': '\u5DE5\u4F5C\u6D41',\n 'workflow': '\u5DE5\u4F5C\u6D41',\n 'auto run page [{0}] after change..': '\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u9875\u9762 {0}..',\n 'auto run workflow [{0}] after change..': '\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41 {0}..',\n 'auto run workflow after change..': '\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41..',\n 'selection_only': '\u4EC5\u9009\u533A',\n 'Queue:': '\u961F\u5217:',\n 'Set As:': '\u8BBE\u7F6E\u4E3A:',\n 'Error {0}... please contact me via Discord/Github': '\u51FA\u73B0\u9519\u8BEF {0}...\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211',\n 'Webview initialize failed. Please report to me via Discord/Github with your ComfyURL, Operate System': 'Webview \u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211\u5E76\u9644\u4E0A\u4F60\u7684Comfy\u5730\u5740\u3001\u64CD\u4F5C\u7CFB\u7EDF',\n 'ComfyUI with --multi-user is only available for sponsors': '\u5E26\"--multi-user\"\u7684ComfyUI\u4EC5\u5BF9\u8D5E\u52A9\u8005\u5F00\u653E',\n 'Workflow Runner is loading...': '\u8FD0\u884C\u8F7D\u4F53\u5C1A\u5728\u52A0\u8F7D...',\n '(Page ID: {0})Queue: {1}': '(\u9875\u9762ID: {0}) \u961F\u5217\u957F\u5EA6 {1}',\n 'no suitable node to control in this workflow': '\u8FD9\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u6CA1\u6709\u80FD\u63A7\u5236\u7684\u8282\u70B9',\n \"Save\": \"\u4FDD\u5B58\",\n \"Edit\": \"\u7F16\u8F91\",\n \"Edit in ComfyUI\": \"\u5728 ComfyUI \u4E2D\u7F16\u8F91\",\n \"using browser page [{0}] for workflow running\": '\u6B63\u63A5\u7BA1\u7F51\u9875 [{0}] \u8FD0\u884C\u5DE5\u4F5C\u6D41',\n 'workflow running by hidden webview': '\u5DE5\u4F5C\u6D41\u5728\u9690\u85CF\u7684webview\u4E2D\u8FD0\u884C',\n 'Lock Image': '\u9501\u5B9A\u56FE\u50CF',\n 'Unlock Image': '\u89E3\u9501\u56FE\u50CF',\n 'search...': '\u641C\u7D22...',\n 'disabled when running in browser page': '\u63A5\u7BA1\u7F51\u9875\u65F6\u4E0D\u53EF\u7528',\n 'only supported in Photoshop': '\u4EC5\u5728 Photoshop \u4E2D\u652F\u6301',\n 'Login': '\u767B\u5F55',\n 'Invitation Code': '\u9080\u8BF7\u7801',\n 'Username': '\u7528\u6237\u540D',\n 'Password': '\u5BC6\u7801',\n 'Please input invitation code': '\u8BF7\u8F93\u5165\u9080\u8BF7\u7801',\n 'Please input username': '\u8BF7\u8F93\u5165\u7528\u6237\u540D',\n 'Please input password': '\u8BF7\u8F93\u5165\u5BC6\u7801',\n 'Open more ComfyUI pages to see more options here': '\u6253\u5F00\u66F4\u591A ComfyUI \u9875\u9762\u4EE5\u67E5\u770B\u66F4\u591A\u9009\u9879',\n 'Comfy multi-user: ': 'Comfy \u591A\u7528\u6237: ',\n 'Not Login': '\u672A\u767B\u5F55',\n 'Comfy API-Key: ': 'Comfy API-Key: ',\n 'Login/Auth': '\u767B\u5F55/\u8BA4\u8BC1',\n 'Logged in by email/password': '\u5DF2\u901A\u8FC7\u90AE\u7BB1/\u5BC6\u7801\u767B\u5F55',\n 'Set API Key': '\u8BBE\u7F6E API Key',\n 'Please input API key (will reload Runner)': '\u8BF7\u8F93\u5165 API Key (\u4F1A\u91CD\u542F\u8FD0\u884C\u8F7D\u4F53)',\n '### Active Workflow ###': '### \u5F53\u524D\u5DE5\u4F5C\u6D41 ###',\n '### Example SDXL ###': '### \u793A\u4F8BSDXL\u5DE5\u4F5C\u6D41 ###',\n 'Open ComfyUI in the browser to see more options': '\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00 ComfyUI \u4EE5\u5F97\u5230\u66F4\u591A\u9009\u9879',\n 'Webview load timeout, please switch to a different runner': 'Webview \u52A0\u8F7D\u8D85\u65F6\uFF0C\u8BF7\u5207\u6362\u5230\u5176\u4ED6\u8FD0\u884C\u8F7D\u4F53',\n 'Save workflow to ComfyUI': '\u4FDD\u5B58\u5DE5\u4F5C\u6D41\u5230 ComfyUI',\n 'Reload workflow': '\u91CD\u65B0\u52A0\u8F7D\u5DE5\u4F5C\u6D41',\n 'Stop and cancel all': '\u505C\u6B62\u5E76\u53D6\u6D88\u6240\u6709',\n 'Start auto running after change': '\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C',\n 'Stop auto run': '\u505C\u6B62\u81EA\u52A8\u8FD0\u884C',\n 'Run workflow': '\u8FD0\u884C\u5DE5\u4F5C\u6D41',\n 'Run workflow xN': '\u8FD0\u884C\u5DE5\u4F5C\u6D41N\u6B21',\n 'Back to workflow list': '\u8FD4\u56DE\u5DE5\u4F5C\u6D41\u5217\u8868',\n\n // photoshop connect error\n '502: Maybe the server is not running': '502: \u670D\u52A1\u5668\u53EF\u80FD\u672A\u8FD0\u884C',\n '404: Maybe SDPPP is not installed or failed to run in ComfyUI': '404: \u53EF\u80FD\u5728ComfyUI\u4E2DSDPPP\u672A\u5B89\u88C5\u6216\u8FD0\u884C\u5931\u8D25',\n '{0}. reconnecting...': '{0}. \u91CD\u8FDE\u4E2D...',\n 'disconnected to {0} failed {1}': `\u65AD\u5F00\u8FDE\u63A5 {0} \u9519\u8BEF {1}`,\n 'version mismatch, please reinstall PS plugin': '\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u91CD\u65B0\u5B89\u88C5 PS \u63D2\u4EF6',\n 'instance type not recognized': '\u672A\u8BC6\u522B\u7684\u8F6F\u4EF6\u7C7B\u578B',\n 'Error: {0}': '\u9519\u8BEF: {0}',\n 'Verification Error': '\u9A8C\u8BC1\u9519\u8BEF',\n\n // photoshop event error\n 'document {0} not found': '\u627E\u4E0D\u5230\u6587\u6863: {0}',\n 'only layer kind \"TEXT\" is supported, invalid layer: {0}': '\u4E0D\u652F\u6301\u975E\u6587\u672C\u56FE\u5C42: {0}',\n 'create layer failed': '\u521B\u5EFA\u56FE\u5C42\u5931\u8D25',\n 'layer not found {0}': '\u627E\u4E0D\u5230\u56FE\u5C42: {0}',\n 'no linked layer for {0}': '\u6CA1\u6709\u94FE\u63A5\u56FE\u5C42: {0}',\n 'layer {0} is not a group': '\u56FE\u5C42 {0} \u4E0D\u662F\u4E00\u4E2A\u7EC4',\n 'no layer in group {0}': '\u7EC4 {0} \u4E2D\u6CA1\u6709\u56FE\u5C42',\n 'layer not found: {0}': '\u627E\u4E0D\u5230\u56FE\u5C42: {0}',\n 'No upload_name': '\u4E0A\u4F20\u63A5\u53E3\u8FD4\u56DE\u4E86\u5931\u8D25',\n 'get pixel of {0} failed': '\u83B7\u53D6\u50CF\u7D20\u5931\u8D25: {0}',\n 'merge group failed': '\u5408\u5E76\u7EC4\u5931\u8D25',\n 'invalid name: {0}': '\u975E\u6CD5\u7684\u540D\u79F0: {0}',\n 'get_layer_info: layer_identify required': 'get_layer_info: \u9700\u8981 layer_identify',\n 'invalid action: {0}': '\u65E0\u6548\u7684\u64CD\u4F5C: {0}',\n 'create document failed': '\u521B\u5EFA\u6587\u6863\u5931\u8D25',\n 'create document for preview': '\u521B\u5EFA\u9884\u89C8\u6587\u6863',\n 'resize document for preview': '\u8C03\u6574\u9884\u89C8\u6587\u6863\u5C3A\u5BF8',\n 'no first related layer in {0}': '\u7EC4 {0} \u4E2D\u6CA1\u6709\u7B2C\u4E00\u4E2A\u76F8\u5173\u56FE\u5C42',\n \"imageDataError: data length is not multiple of width * height\": \"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: \u6570\u636E\u957F\u5EA6\u4E0D\u662F\u5BBD\u5EA6 * \u9AD8\u5EA6\u7684\u500D\u6570\",\n \"imageDataError: originComponents must be 1 or 3\": \"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: originComponents \u5FC5\u987B\u662F 1 \u6216 3\",\n 'unexpected connection lost, please try to reconnect': '\u610F\u5916\u65AD\u5F00\u8FDE\u63A5\uFF0C\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u8FDE\u63A5',\n \"Workflow list is empty, please save a workflow by Comfy's lastest UI\": '\u5DE5\u4F5C\u6D41\u5217\u8868\u4E3A\u7A7A\uFF0C\u8BF7\u5728Comfy\u7684\u65B0\u7248UI\u4E2D\u4FDD\u5B58\u4E00\u4E2A\u5DE5\u4F5C\u6D41',\n 'No opened ComfyUI pages': '\u6CA1\u6709\u5DF2\u6253\u5F00\u7684ComfyUI\u9875\u9762',\n 'comfyAPI is not initialized, maybe comfyUI is too old': '\u65E0\u6CD5\u83B7\u53D6 ComfyAPI\uFF0C\u53EF\u80FD ComfyUI \u7248\u672C\u592A\u65E7',\n 'unsupported channel counts: {0}': '\u4E0D\u652F\u6301\u7684\u901A\u9053\u6570: {0}',\n 'Timeout, Maybe the URL is wrong': '\u8D85\u65F6\uFF0C\u53EF\u80FD comfy\u5730\u5740 \u586B\u5199\u9519\u8BEF',\n 'Workflow list loading failed: {0}': '\u5DE5\u4F5C\u6D41\u5217\u8868\u52A0\u8F7D\u5931\u8D25: {0}',\n 'Please register a user in ComfyUI': '\u8BF7\u5728 ComfyUI \u4E2D\u6CE8\u518C\u4E00\u4E2A\u7528\u6237',\n 'GetSelection need Photoshop version 25+': 'GetSelection \u9700\u8981 Photoshop 25+ \u7248\u672C',\n 'Action {0} not found': 'Action {0} \u672A\u627E\u5230',\n 'Action set {0} not found': 'ActionSet {0} \u672A\u627E\u5230',\n '{0} cannot be used in Photoshop Action Node': '{0} \u4E0D\u80FD\u5728 Photoshop Action \u8282\u70B9\u4E2D\u4F7F\u7528',\n 'Group layers': '\u56FE\u5C42\u7EC4',\n 'Show All Groups': '\u663E\u793A\u6240\u6709\u7EC4',\n\n // photoshop modal state\n 'create document for sent images': '\u7ED9\u53D1\u9001\u7684\u56FE\u7247\u521B\u5EFA\u6587\u6863',\n 'show sent images': '\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247',\n 'fallback show sent images': '\u53D6\u6D88\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247',\n \"get content of layer {0}\": \"\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9\",\n 'fallback get content of layer {0}': '\u53D6\u6D88\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9',\n 'get layer info': '\u83B7\u53D6\u56FE\u5C42\u4FE1\u606F',\n 'sdppp extract PSD': 'sdppp \u5BFC\u5165 PSD',\n 'sdppp get PSD': 'sdppp \u83B7\u53D6 PSD', \n 'set text to layer': '\u8BBE\u7F6E\u56FE\u5C42\u7684\u6587\u672C',\n 'run Photoshop Action': 'sdppp \u8FD0\u884C Photoshop Action',\n 'select layer': 'sdppp \u9009\u4E2D\u56FE\u5C42',\n \n // photoshop dialog/widget\n '{0} wants to extract a PSD file to Photoshop, are you sure?': '{0} \u60F3\u8981\u91CA\u653E\u4E00\u4E2A.psd\u6587\u4EF6\u5230Photoshop\uFF0C\u786E\u5B9A\u5417\uFF1F',\n 'should sdppp refuse extracting PSD to Photoshop in this session anymore?': '\u662F\u5426\u8981\u8BA9 sdppp \u62D2\u7EDD\u672C\u6B21PS\u4F1A\u8BDD\u518D\u6B21\u63A5\u53D7.psd\u91CA\u653E\u8BF7\u6C42\uFF1F',\n 'Wide Mode': '\u5BBD\u5C4F\u6A21\u5F0F',\n 'Quick Set': '\u5FEB\u901F\u8BBE\u7F6E',\n 'Selected Layer': '\u9009\u4E2D\u56FE\u5C42',\n 'Selected Layer (invert)': '\u9009\u4E2D\u56FE\u5C42(\u53CD\u5411)',\n 'Canvas': '\u753B\u5E03',\n 'Selection': '\u9009\u533A',\n 'Manual': '\u624B\u52A8\u6A21\u5F0F',\n 'Auto': '\u81EA\u52A8\u6A21\u5F0F',\n\n // about\n 'This plugin is based on sd-ppp': '\u672C\u63D2\u4EF6\u57FA\u4E8Esd-ppp\u5F00\u53D1',\n 'And follows its open source license:': '\u5E76\u9075\u5FAA\u5176\u5F00\u6E90\u534F\u8BAE\uFF1A',\n \"Cloud\": \"\u4E91\u7AEF\u63A8\u8350\",\n \"Sponsors\": \"\u8D5E\u52A9\",\n \"waiting...\": '\u865A\u4F4D\u4EE5\u5F85',\n 'Links': '\u53CB\u60C5\u94FE\u63A5',\n 'Community': '\u793E\u533A',\n 'LICENSE:': '\u8BB8\u53EF\u8BC1\uFF1A',\n 'Official Site': '\u5B98\u65B9\u7F51\u7AD9',\n\n // comfy popup\n \"upload\": \"\u4E0A\u4F20\",\n \"Simplify Workflow\": \"\u7B80\u5316\u5DE5\u4F5C\u6D41\",\n \"Photoshop\": \"Photoshop\",\n \"Photoshop plugin settings\": \"Photoshop \u63D2\u4EF6\u8BBE\u7F6E\",\n \"Photoshop plugin\": \"Photoshop \u63D2\u4EF6\",\n \"SDPPP Settings/Misc\": \"SDPPP \u8BBE\u7F6E/\u6742\u9879\",\n \"Sample .PSD for this workflow:\": \"\u793A\u4F8B.PSD\",\n \"Download Example .PSD\": \"\u4E0B\u8F7D\u793A\u4F8B.PSD\",\n \"Maximum Image Size (px):\": \"\u6700\u5927\u56FE\u50CF\u5C3A\u5BF8(px)\",\n \"Download\": \"\u4E0B\u8F7D\",\n \"Upload\": \"\u4E0A\u4F20\",\n \"Reset\": \"\u91CD\u7F6E\",\n 'Refresh': '\u5237\u65B0',\n 'Comfy URL (You can copy it to connect ComfyUI in the plugin):': 'Comfy\u5730\u5740(\u4F60\u53EF\u4EE5\u590D\u5236\u5B83\u5230\u63D2\u4EF6\u4E2D\u8FDE\u63A5ComfyUI):',\n 'use slider for number widget:': '\u6570\u5B57\u63A7\u4EF6\u4F7F\u7528\u6ED1\u5757',\n 'Photoshop is not connected': 'Photoshop \u672A\u8FDE\u63A5',\n 'select...': '\u8BF7\u9009\u62E9',\n 'click to edit': '\u70B9\u51FB\u7F16\u8F91',\n\n // comfy call error\n 'ComfyManager not found, cannot reboot': 'Comfy Manager\u672A\u5B89\u88C5\uFF0C\u65E0\u6CD5\u91CD\u542F',\n 'Failed to reboot ComfyUI': '\u91CD\u542FComfyUI\u5931\u8D25',\n}\n", "import en from './en.mjs';\nimport zhcn from './zh-cn.mjs';\n//@ts-ignore\nconst require_ = typeof require != 'undefined' ? require : undefined\n\nlet locale = 'en'\nif (typeof navigator !== 'undefined' && navigator.language) {\n locale = navigator.language == \"zh-CN\" ? 'zhcn' : 'en'\n} else if (require_) {\n locale = require_('uxp').host.uiLocale.startsWith(\"zh\") ? 'zhcn' : 'en';\n}\n\nexport type I18nKey = keyof typeof zhcn;\n\nexport default function i18n(key: keyof typeof zhcn, ...args: any[]) {\n const formatStr: string = locale == 'zhcn' ? zhcn[key] : (key in en ? (en as any)[key] : key);\n if (!formatStr) throw new Error(`i18n key not found: ${key}`);\n\n return formatStr.replace(/{(\\d+)}/g, function (match, number) {\n return typeof args[number] != 'undefined' ? args[number] : match\n });\n}\n\nexport function isValidI18nKey(key: string) {\n return key in zhcn;\n}\n\nexport function isI18nOf(key: keyof typeof zhcn, str: string) {\n return key == str || zhcn[key] == str;\n}\n\nexport function getI18nLocale() {\n return locale;\n}\n", "import React from \"react\";\n\nexport default class ActionButton extends React.Component<{\n onClick?: (...args: any[]) => any\n highlight?: boolean\n children?: React.ReactNode\n}> {\n render() {\n return (\n
\n {this.props.children}\n
\n )\n }\n}\n", "import React from \"react\";\n\nexport default class EditIcon extends React.Component<{\n size?: number,\n onClick?: (...args: any[]) => any\n}> {\n render() {\n const size = this.props.size || 1\n return (\n
\n \n \n \n
\n )\n }\n}\n", "import React from \"react\";\n\nexport default class FolderIcon extends React.Component<{\n size?: number\n}> {\n render() {\n const size = this.props.size || 1\n return (\n
\n \n \n \n
\n )\n }\n}\n", "import React from \"react\";\n\nexport default class LivePaintingIcon extends React.Component<{\n size?: number,\n onClick?: (...args: any[]) => any\n}> {\n render() {\n const size = this.props.size || 1\n return (\n
\n \n \n \n \n
\n )\n }\n}", "import React from \"react\";\n\nexport default class PlayIcon extends React.Component<{\n size?: number\n}> {\n render() {\n const size = this.props.size || 1\n return (\n
\n \n \n \n
\n )\n }\n}\n", "import React from \"react\";\nimport ActionButton from \"./ActionButton.js\";\nimport EditIcon from \"./icons/EditIcon.js\";\nimport FolderIcon from \"./icons/FolderIcon.js\";\nimport LivePaintingIcon from \"./icons/LivePaintingIcon.js\";\nimport PlayIcon from \"./icons/PlayIcon.js\";\nimport { useSDPPPContext, useSDPPPComfyCaller } from \"./SDPPPInternalBridge.js\";\nimport i18n from \"../../../../src/common/i18n.mjs\";\n\nconst ICON_SIZE = 0.6;\nconst CLASS_NAMES = {\n LIST_ITEM: \"client-list-item\",\n LIST_ITEM_LEFT: \"client-list-item-left\",\n LIST_ITEM_RIGHT: \"client-list-item-right\",\n TIPS_ICON: \"tips-icon\",\n CHECKED: \"checked\"\n};\n\ninterface BaseListItemProps {\n isChecked?: boolean;\n children: React.ReactNode;\n rightContent?: React.ReactNode;\n onClick?: () => void;\n}\n\nconst BaseListItem: React.FC = ({\n isChecked = false,\n children,\n rightContent,\n onClick\n}) => {\n return (\n
  • \n \n {children}\n \n {rightContent && (\n
    \n {rightContent}\n
    \n )}\n
  • \n );\n};\n\ninterface DirectoryItemProps {\n path: string;\n dirname: string;\n onDirectorySet: (path: string) => void;\n}\n\nconst DirectoryItem: React.FC = ({\n path,\n dirname,\n onDirectorySet\n}) => {\n const handleClick = () => {\n if (path === '../') {\n const directoryWithoutSuffix = dirname || '';\n const lastSlashIndex = directoryWithoutSuffix.lastIndexOf('/');\n // no slash anymore. or meet the protocol name\n if (lastSlashIndex === -1 || directoryWithoutSuffix[lastSlashIndex - 1] === '/') {\n onDirectorySet?.('');\n } else {\n onDirectorySet?.(directoryWithoutSuffix.slice(0, lastSlashIndex));\n }\n } else {\n onDirectorySet?.(path);\n }\n };\n\n return (\n \n \n
    {path.slice(0, -1).split('/').pop()}
    \n
    \n );\n};\n\ninterface WorkflowItemProps {\n isChecked: boolean;\n workflow: {\n path: string;\n error: string;\n };\n onRun: (path: string) => Promise;\n setEditorMode: (editorMode: boolean) => void;\n}\n\ninterface ActiveWorkflowItemProps {\n path: string | null;\n title: string;\n onRun: () => Promise;\n setEditorMode: (editorMode: boolean) => void;\n}\n\nconst WorkflowActions: React.FC<{\n isChecked?: boolean;\n onEdit: () => void;\n onAutoRun?: () => void;\n onRun: () => void;\n}> = ({ isChecked, onEdit, onAutoRun, onRun }) => {\n return (\n <>\n
    \n \n
    \n {onAutoRun && (\n \n \n \n )}\n \n \n \n \n );\n};\n\nconst WorkflowItem: React.FC = ({\n isChecked,\n workflow,\n onRun,\n setEditorMode\n}) => {\n const {\n setAutoRunning,\n workflowAgentSID\n } = useSDPPPContext();\n const {\n openWorkflow\n } = useSDPPPComfyCaller();\n\n const handleEditClick = () => {\n setEditorMode(true);\n openWorkflow(workflowAgentSID, workflow.path);\n };\n\n const handleAutoRunClick = () => {\n if (!isChecked) {\n setAutoRunning({ type: 'workflow', value: workflow.path });\n } else {\n setAutoRunning(null);\n }\n };\n \n return (\n onRun(workflow.path)}\n />\n }\n onClick={handleEditClick}\n >\n {workflow.error ? workflow.error.replace('sdppp PS side error:', '') : workflow.path.split('/').pop()}\n \n );\n};\n\nconst SpecialWorkflowItem: React.FC = ({\n onRun,\n path,\n title,\n setEditorMode\n}) => {\n const {\n openWorkflow\n } = useSDPPPComfyCaller();\n const {\n workflowAgentSID\n } = useSDPPPContext();\n\n const handleEditClick = async () => {\n path && await openWorkflow(workflowAgentSID, path);\n setEditorMode(true);\n };\n\n return (\n \n }\n onClick={handleEditClick}\n >\n {title}\n \n );\n};\n\nexport {\n DirectoryItem,\n WorkflowItem,\n SpecialWorkflowItem\n};\n", "import React from \"react\";\nimport i18n from \"../../../../src/common/i18n.mjs\";\nimport { SpecialWorkflowItem, DirectoryItem, WorkflowItem } from \"./WorkflowListItem.js\";\nimport {\n useSDPPPComfyCaller, useAgentState,\n useSDPPPContext, useSDPPPWorkflowList\n} from \"./SDPPPInternalBridge.js\";\n\ninterface WorkflowListProps {\n setEditorMode: (editorMode: boolean) => void\n}\n\nconst WorkflowList: React.FC = ({ setEditorMode }) => {\n const {\n autoRunning,\n workflowAgentSID,\n } = useSDPPPContext();\n\n const {\n runWorkflow,\n runPage\n } = useSDPPPComfyCaller();\n\n const {\n workflows,\n workflowsError,\n currentViewingDirectory,\n setCurrentViewingDirectory,\n showingList\n } = useSDPPPWorkflowList();\n\n let listReplacer = null;\n if (workflowsError)\n return
    \n {workflowsError}\n
    \n\n return (\n
    \n
      \n {\n currentViewingDirectory ?\n {\n setCurrentViewingDirectory(dirname)\n }}\n />\n : null\n }\n {\n showingList.map((item: { path: string, isDir: boolean }) => {\n const path = item.path;\n const workflow = workflows[path]\n const checked = autoRunning?.value == path;\n if (item.isDir) {\n return (\n {\n setCurrentViewingDirectory(dirname)\n }}\n />\n )\n }\n return (\n {\n await runWorkflow(path);\n }}\n />\n )\n })\n }\n\n
    \n \n
      \n {\n await runPage(workflowAgentSID);\n }}\n />\n {\n await runPage(workflowAgentSID);\n }}\n />\n
    \n\n {autoRunning?.type == 'workflow' ? {i18n(`auto run workflow [{0}] after change..`, workflows[autoRunning?.value]?.path)} : ''}\n
    \n );\n};\n\nexport default WorkflowList;", "import { useSDPPPContext, Promote, Auths } from \"./SDPPPInternalBridge.js\";\nimport i18n, { isValidI18nKey } from \"../../../../src/common/i18n.mjs\";\nimport WorkflowList from \"./WorkflowList.js\";\nimport { useEffect, useState } from \"react\";\nimport { WorkflowEditWrap } from \"./WorkflowEditWrap.js\";\nimport type { AddressBarType, WorkflowEditPhotoshopType } from \"./SDPPPInternalBridge.js\";\nimport { sdpppX } from \"../../../../src/common/sdpppX.mjs\";\n\nexport function Content({\n connectState,\n AddressBar,\n WorkflowEditPhotoshop,\n}: {\n connectState: 'connected' | 'disconnected' | 'connecting',\n AddressBar: AddressBarType,\n WorkflowEditPhotoshop: WorkflowEditPhotoshopType,\n}) {\n const [editorMode, setEditorMode] = useState(false);\n\n const {\n workflowAgentSID,\n webviewAgentSID,\n lastConnectErrorMessage,\n\n } = useSDPPPContext();\n\n const editorCardShowingIndex = editorMode ? 1 : 0;\n\n const [prevIsNotWebview, setPrevIsNotWebview] = useState(false);\n\n // when disconnect and the agent is not webview, set editor mode to false\n useEffect(() => {\n if (workflowAgentSID) {\n setPrevIsNotWebview(workflowAgentSID != webviewAgentSID);\n } else {\n if (prevIsNotWebview) {\n setEditorMode(false);\n }\n }\n }, [workflowAgentSID]);\n useEffect(() => {\n if (connectState === 'disconnected') {\n setEditorMode(false);\n }\n }, [connectState]);\n return (\n <>\n \n
    \n
    \n { \n sdpppX.logo ? \"logo\"\n {\n setEditorMode(false);\n }}\n /> : (\n !editorMode ?\n
    \n
    \u2B24
    \n
    \n :\n {\n setEditorMode(false);\n }}\n >\u2190\n )\n }\n \n
    \n
    \n {\n lastConnectErrorMessage ? (\n
    \n \n {isValidI18nKey(lastConnectErrorMessage) ? i18n(lastConnectErrorMessage as any) : lastConnectErrorMessage}\n \n
    \n ) : ''\n }\n\n {/* */}\n\n {\n connectState === \"connected\" &&\n
    \n
    \n
    \n {/* */}\n \n
    \n
    \n
    \n {editorMode && workflowAgentSID && }\n
    \n
    \n }\n\n \n );\n}\n\n\n", "import { useCallback, useMemo, useState } from \"react\"\nimport i18n from \"../../../../src/common/i18n.mjs\"\nimport LivePaintingIcon from \"./icons/LivePaintingIcon\"\nimport PlayIcon from \"./icons/PlayIcon\"\nimport {\n useSDPPPComfyCaller,\n useSDPPPContext,\n useAgentState,\n} from \"./SDPPPInternalBridge\"\nimport RefreshIcon from \"./icons/RefreshIcon\"\nimport SaveIcon from \"./icons/SaveIcon\"\nimport PlayMultiIcon from \"./icons/PlayMultiIcon\"\nimport WebEditIcon from \"./icons/WebEditIcon\"\nimport CrossIcon from \"./icons/CrossIcon\"\nimport StopIcon from \"./icons/StopIcon\"\nimport CancelIcon from \"./icons/CancelIcon\"\nimport { action } from \"photoshop\";\n\ninterface HoverableButtonProps {\n onMouseEnter: () => void;\n onMouseLeave: () => void;\n}\n\n// \u72B6\u6001\u663E\u793A\u7EC4\u4EF6\nconst WorkflowStatus = () => {\n const { workflowAgentSID, autoRunning } = useSDPPPContext();\n const { lastError, progress, executingNodeTitle } = useAgentState(workflowAgentSID);\n\n return (\n
    \n {autoRunning ? {i18n('auto run workflow after change..')} : ''}\n {lastError ? {lastError} : ''}\n {executingNodeTitle ? <>\n {`${progress}% ${executingNodeTitle}...`}\n \n : ''}\n
    \n );\n};\n\n// \u4FDD\u5B58\u548C\u5237\u65B0\u6309\u94AE\u7EC4\nconst SaveButton = ({\n onMouseEnter,\n onMouseLeave,\n}: HoverableButtonProps) => {\n const { workflowAgentSID } = useSDPPPContext();\n const { saveWorkflow, reopenWorkflow } = useSDPPPComfyCaller();\n\n const onSave = useCallback(async () => {\n await saveWorkflow(workflowAgentSID);\n }, [saveWorkflow, workflowAgentSID]);\n\n return (\n \n \n \n );\n};\nconst ClearButton = () => {\n const { workflowAgentSID } = useSDPPPContext();\n const { clearQueue } = useSDPPPComfyCaller();\n const onClear = useCallback(() => {\n clearQueue();\n }, [clearQueue]);\n\n return \n \n \n}\n\nconst RebootButton = () => {\n const { workflowAgentSID } = useSDPPPContext();\n const { reboot } = useSDPPPComfyCaller();\n const onReboot = useCallback(() => {\n reboot();\n }, [reboot]);\n\n return \u91CD\u542F\n}\n\nconst StopButton = () => {\n const { workflowAgentSID } = useSDPPPContext();\n const { interrupt } = useSDPPPComfyCaller();\n const onInterrupt = useCallback(() => {\n interrupt();\n }, [interrupt]);\n\n return \n \n \n}\nconst StopAndCancelButton = ({\n onMouseEnter,\n onMouseLeave,\n}: HoverableButtonProps) => {\n const { interrupt } = useSDPPPComfyCaller();\n const { clearQueue } = useSDPPPComfyCaller();\n const onClearAndInterrupt = useCallback(async () => {\n await clearQueue();\n await interrupt();\n }, [clearQueue, interrupt]);\n\n return \n \n \n}\n\nconst RefreshButton = ({\n onMouseEnter,\n onMouseLeave,\n}: HoverableButtonProps) => {\n const { workflowAgentSID } = useSDPPPContext();\n const { reopenWorkflow } = useSDPPPComfyCaller();\n const onReopen = useCallback(() => {\n reopenWorkflow(workflowAgentSID);\n }, [reopenWorkflow, workflowAgentSID]);\n\n return \n \n \n}\n\nconst PlayMultiButtons = () => {\n const { workflowAgentSID, autoRunning } = useSDPPPContext();\n const { runPage } = useSDPPPComfyCaller();\n\n return <>\n {!autoRunning ? { runPage(workflowAgentSID, 10) }}>\n \n : ''}\n {!autoRunning ? { runPage(workflowAgentSID, 3) }}>\n \n : ''}\n \n}\n\n// \u81EA\u52A8\u8FD0\u884C\u6309\u94AE\nconst AutoRunButtons = ({\n onMouseEnter,\n onMouseLeave,\n}: HoverableButtonProps) => {\n const { workflowAgentSID, autoRunning, setAutoRunning } = useSDPPPContext();\n\n return (\n {\n if (autoRunning?.value == workflowAgentSID) {\n setAutoRunning(null);\n } else {\n setAutoRunning({\n type: 'page',\n value: workflowAgentSID\n });\n }\n }} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>\n \n \n );\n};\n\n// \u7F16\u8F91\u6309\u94AE\nconst EditButton = ({\n onMouseEnter,\n onMouseLeave,\n}: HoverableButtonProps) => {\n const { workflowAgentSID, webviewAgentSID, toggleWebviewDialog } = useSDPPPContext();\n const usingWebview = workflowAgentSID == webviewAgentSID;\n\n return (\n { toggleWebviewDialog() }}\n title={!usingWebview ? i18n('disabled when running in browser page') : i18n('Edit in ComfyUI')}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n >\n \n \n );\n};\n\n// \u8FD0\u884C\u6309\u94AE\nconst RunButton = ({\n onMouseEnter,\n onMouseLeave,\n}: HoverableButtonProps) => {\n const { workflowAgentSID } = useSDPPPContext();\n const { runPage } = useSDPPPComfyCaller();\n\n return (\n {\n runPage(workflowAgentSID);\n }} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>\n \n \n );\n};\nconst RunMultiButtons = ({\n onMouseEnter,\n onMouseLeave,\n}: HoverableButtonProps) => {\n const { workflowAgentSID } = useSDPPPContext();\n const { runPage } = useSDPPPComfyCaller();\n\n return (\n <>\n
    { runPage(workflowAgentSID, 2) }} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>x2
    \n
    { runPage(workflowAgentSID, 5) }} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>x5
    \n
    { runPage(workflowAgentSID, 9) }} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>x9
    \n \n )\n}\n\n// const TestButtons = () => {\n// const { interrupt, clearQueue, reboot } = useSDPPPComfyCaller();\n\n// return (\n// { reboot() }}>\n// \n// \n// )\n// }\n\nexport function WorkflowEditWrap({\n WorkflowEditPhotoshop\n}: {\n WorkflowEditPhotoshop: any,\n}) {\n const { workflowAgentSID, autoRunning } = useSDPPPContext();\n const { ssid, queueSize } = useAgentState(workflowAgentSID);\n const { lastError, progress, executingNodeTitle } = useAgentState(workflowAgentSID);\n const [hoveringButton, setHoveringButton] = useState(null);\n const tips = useMemo(() => {\n if (hoveringButton == 'save') {\n return i18n('Save workflow to ComfyUI');\n }\n if (hoveringButton == 'refresh') {\n return i18n('Reload workflow');\n }\n if (hoveringButton == 'stopAndCancel') {\n return i18n('Stop and cancel all');\n }\n if (hoveringButton == 'autoRun') {\n return autoRunning ? i18n('Stop auto run') : i18n('Start auto running after change');\n }\n if (hoveringButton == 'edit') {\n return i18n('Edit in ComfyUI');\n }\n if (hoveringButton == 'run') {\n return i18n('Run workflow');\n }\n if (hoveringButton == 'runMulti') {\n return i18n('Run workflow xN');\n }\n return '';\n }, [hoveringButton, i18n]);\n\n\n return useMemo(() => {\n return (\n
    \n
    \n {/* {i18n('(Page ID: {0})Queue: {1}', ssid, queueSize)} */}\n
    \n
    \n
    \n
    \n setHoveringButton('save')}\n onMouseLeave={() => setHoveringButton(null)} />\n setHoveringButton('refresh')}\n onMouseLeave={() => setHoveringButton(null)} />\n
    \n
    \n setHoveringButton('stopAndCancel')}\n onMouseLeave={() => setHoveringButton(null)} />\n setHoveringButton('autoRun')}\n onMouseLeave={() => setHoveringButton(null)} />\n {/* */}\n
    \n
    \n
    \n\n
    \n {lastError ? {lastError} : ''}\n {/* {executingNodeTitle ? <>\n {`${progress}% ${executingNodeTitle}...`}\n \n : ''} */}\n {!lastError && !executingNodeTitle && autoRunning ? {i18n('auto run workflow after change..')} : ''}\n {!lastError && !executingNodeTitle && tips ? {tips} : ''}\n
    \n {/* */}\n setHoveringButton('edit')}\n onMouseLeave={() => setHoveringButton(null)} />\n
    \n
    \n
    \n setHoveringButton('run')}\n onMouseLeave={() => setHoveringButton(null)} />\n
    \n
    \n setHoveringButton('runMulti')}\n onMouseLeave={() => setHoveringButton(null)} />\n
    \n
    \n
    \n \n \n
    \n );\n }, [ssid, queueSize, hoveringButton, autoRunning, lastError, progress, executingNodeTitle, tips, WorkflowEditPhotoshop]);\n}\n", "import React from \"react\";\n\nexport default class RefreshIcon extends React.Component<{\n size?: number,\n onClick?: (...args: any[]) => any\n}> {\n render() {\n const size = this.props.size || 1\n return (\n
    \n \n \n \n
    \n )\n }\n}\n", "import React from \"react\";\n\nexport default class SaveIcon extends React.Component {\n render() {\n return (\n
    \n \n \n \n \n
    \n )\n }\n}\n", "import React from \"react\";\n\nexport default class PlayMultiIcon extends React.Component<{ count: number }> {\n render() {\n return (\n
    \n \n \n \n {this.props.count}\n
    \n )\n }\n}\n", "import React from \"react\";\n\nexport default class WebEditIcon extends React.Component {\n render() {\n return (\n
    \n \n \n\n \n \n
    \n )\n }\n}\n", "import React from \"react\";\n\nexport default class CrossIcon extends React.Component<{\n size?: number,\n hollowStyle?: boolean\n}> {\n render() {\n return (\n
    \n \n \n \n \n
    \n )\n }\n}", "import React from \"react\";\n\nexport default class StopIcon extends React.Component<{\n size?: number,\n hollowStyle?: boolean\n}> {\n render() {\n return (\n
    \n \n
    \n )\n }\n}\n", "import React from \"react\";\n\nexport default class CancelIcon extends React.Component<{\n size?: number,\n}> {\n render() {\n return (\n
    \n \n {/* Single diagonal line from bottom-left to top-right */}\n \n \n {/* Circle outline */}\n \n \n
    \n )\n }\n}", "// @ts-ignore\nglobalThis.sdpppX = globalThis.sdpppX || {};\nexport const sdpppX = (globalThis as any).sdpppX;", "import { Content } from \"./Content.js\";\nimport { SDPPP, SDPPPProvider } from \"./SDPPPInternalBridge.js\";\n\nexport default function Main() {\n return (\n \n
    \n {\n return (\n \n )\n }}\n />\n
    \n
    \n )\n}", "import Main from \"./tsx/Main.js\";\nimport { createRoot } from \"react-dom/client\";\n\ndeclare const globalThis: any;\nglobalThis.sdppp = globalThis.sdppp || {};\nglobalThis.sdppp.renderPhotoshopPlugin = (rootElement: HTMLElement) => {\n createRoot(rootElement).render(
    );\n}\n"], - "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,aAAO,UAAU,OAAO;AAAA;AAAA;;;ACAxB;AAAA;AAAA;AAAA,aAAO,UAAU,OAAO;AAAA;AAAA;;;ACAxB;AAAA;AAAA;AAAA,aAAO,UAAU,OAAO;AAAA;AAAA;;;ACAxB;AAAA;AAAA;AAAA,aAAO,UAAU,OAAO;AAAA;AAAA;;;ACAxB;AAAA,0CAAc;;;ACAd,MAAO,aAAQ;AAAA,IACX,sBAAsB;AAAA,IACtB,yBAAyB;AAAA,IACzB,2BAA2B;AAAA,IAC3B,6BAA6B;AAAA,IAC7B,6BAA6B;AAAA,IAC7B,0BAA0B;AAAA,IAC1B,uBAAuB;AAAA,IACvB,kCAAkC;AAAA,IAClC,kCAAkC;AAAA,IAClC,4BAA4B;AAAA,IAC5B,wCAAwC;AAAA,IACxC,2BAA4B;AAAA,EAEhC;;;ACdA,MAAO,gBAAQ;AAAA;AAAA,IAEX,2BAA2B;AAAA,IAC3B,sBAAsB;AAAA,IACtB,qBAAqB;AAAA,IACrB,0BAA0B;AAAA,IAC1B,mCAAmC;AAAA,IACnC,eAAe;AAAA;AAAA,IAGf,4BAA4B;AAAA,IAC5B,SAAS;AAAA,IACT,gBAAgB;AAAA;AAAA,IAGhB,wBAAwB;AAAA,IACxB,iDAAiD;AAAA,IACjD,6EAA6E;AAAA,IAC7E,6CAA6C;AAAA,IAC7C,4CAA4C;AAAA,IAC5C,MAAM;AAAA,IACN,uBAAuB;AAAA;AAAA,IAGvB,sEAAsE;AAAA,IACtE,2DAA2D;AAAA,IAC3D,8BAA8B;AAAA,IAC9B,6EAA6E;AAAA;AAAA,IAG7E,sBAAsB;AAAA,IACtB,yBAAyB;AAAA,IACzB,2BAA2B;AAAA,IAC3B,6BAA6B;AAAA,IAC7B,6BAA6B;AAAA,IAC7B,0BAA0B;AAAA,IAC1B,uBAAuB;AAAA,IACvB,kCAAkC;AAAA,IAClC,kCAAkC;AAAA,IAClC,4BAA4B;AAAA,IAC5B,wCAAwC;AAAA;AAAA,IAGxC,6BAA6B;AAAA,IAC7B,+BAA+B;AAAA,IAC/B,6BAA6B;AAAA,IAC7B,mBAAmB;AAAA,IACnB,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,iBAAiB;AAAA,IACjB,gBAAgB;AAAA,IAChB,cAAc;AAAA,IACd,cAAc;AAAA,IACd,aAAa;AAAA,IACb,cAAc;AAAA,IACd,eAAe;AAAA,IACf,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,SAAS;AAAA,IACT,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,IAClB,SAAS;AAAA,IACT,UAAU;AAAA,IACV,qBAAqB;AAAA,IACrB,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,mBAAmB;AAAA,IACnB,gBAAgB;AAAA,IAChB,kBAAkB;AAAA,IAClB,eAAe;AAAA,IACf,2BAA4B;AAAA,IAC5B,WAAW;AAAA,IACX,aAAa;AAAA,IACb,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,aAAa;AAAA,IACb,UAAU;AAAA,IACV,qBAAqB;AAAA,IACrB,kBAAkB;AAAA,IAClB,sBAAsB;AAAA,IACtB,8BAA8B;AAAA,IAC9B,mCAAmC;AAAA,IACnC,eAAe;AAAA,IACf,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,cAAc;AAAA,IACd,UAAU;AAAA;AAAA,IAGV,UAAU;AAAA,IACV,cAAc;AAAA,IACd,eAAe;AAAA,IACf,WAAW;AAAA,IACX,cAAc;AAAA,IACd,2BAA2B;AAAA,IAC3B,UAAU;AAAA,IACV,UAAU;AAAA,IACV,WAAW;AAAA,IACX,aAAa;AAAA,IACb,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,mBAAmB;AAAA,IACnB,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,sCAAsC;AAAA,IACtC,0CAA0C;AAAA,IAC1C,oCAAoC;AAAA,IACpC,kBAAkB;AAAA,IAClB,UAAU;AAAA,IACV,WAAW;AAAA,IACX,qDAAqD;AAAA,IACrD,wGAAwG;AAAA,IACxG,4DAA4D;AAAA,IAC5D,iCAAiC;AAAA,IACjC,4BAA4B;AAAA,IAC5B,gDAAgD;AAAA,IAChD,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,mBAAmB;AAAA,IACnB,iDAAiD;AAAA,IACjD,sCAAsC;AAAA,IACtC,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,aAAa;AAAA,IACb,yCAAyC;AAAA,IACzC,+BAA+B;AAAA,IAC/B,SAAS;AAAA,IACT,mBAAmB;AAAA,IACnB,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,gCAAgC;AAAA,IAChC,yBAAyB;AAAA,IACzB,yBAAyB;AAAA,IACzB,oDAAoD;AAAA,IACpD,sBAAsB;AAAA,IACtB,aAAa;AAAA,IACb,mBAAmB;AAAA,IACnB,cAAc;AAAA,IACd,+BAA+B;AAAA,IAC/B,eAAe;AAAA,IACf,6CAA6C;AAAA,IAC7C,2BAA2B;AAAA,IAC3B,wBAAwB;AAAA,IACxB,mDAAmD;AAAA,IACnD,6DAA6D;AAAA,IAC7D,4BAA4B;AAAA,IAC5B,mBAAmB;AAAA,IACnB,uBAAuB;AAAA,IACvB,mCAAmC;AAAA,IACnC,iBAAiB;AAAA,IACjB,gBAAgB;AAAA,IAChB,mBAAmB;AAAA,IACnB,yBAAyB;AAAA;AAAA,IAGzB,wCAAwC;AAAA,IACxC,iEAAiE;AAAA,IACjE,wBAAwB;AAAA,IACxB,kCAAkC;AAAA,IAClC,gDAAgD;AAAA,IAChD,gCAAgC;AAAA,IAChC,cAAc;AAAA,IACd,sBAAsB;AAAA;AAAA,IAGtB,0BAA0B;AAAA,IAC1B,2DAA2D;AAAA,IAC3D,uBAAuB;AAAA,IACvB,uBAAuB;AAAA,IACvB,2BAA2B;AAAA,IAC3B,4BAA4B;AAAA,IAC5B,yBAAyB;AAAA,IACzB,wBAAwB;AAAA,IACxB,kBAAkB;AAAA,IAClB,2BAA2B;AAAA,IAC3B,sBAAsB;AAAA,IACtB,qBAAqB;AAAA,IACrB,2CAA2C;AAAA,IAC3C,uBAAuB;AAAA,IACvB,0BAA0B;AAAA,IAC1B,+BAA+B;AAAA,IAC/B,+BAA+B;AAAA,IAC/B,iCAAiC;AAAA,IACjC,iEAAiE;AAAA,IACjE,mDAAmD;AAAA,IACnD,uDAAuD;AAAA,IACvD,wEAAwE;AAAA,IACxE,2BAA2B;AAAA,IAC3B,yDAAyD;AAAA,IACzD,mCAAmC;AAAA,IACnC,mCAAmC;AAAA,IACnC,qCAAqC;AAAA,IACrC,qCAAqC;AAAA,IACrC,2CAA2C;AAAA,IAC3C,wBAAwB;AAAA,IACxB,4BAA4B;AAAA,IAC5B,+CAA+C;AAAA,IAC/C,gBAAgB;AAAA,IAChB,mBAAmB;AAAA;AAAA,IAGnB,mCAAmC;AAAA,IACnC,oBAAoB;AAAA,IACpB,6BAA6B;AAAA,IAC7B,4BAA4B;AAAA,IAC5B,qCAAqC;AAAA,IACrC,kBAAkB;AAAA,IAClB,qBAAqB;AAAA,IACrB,iBAAiB;AAAA,IACjB,qBAAqB;AAAA,IACrB,wBAAwB;AAAA,IACxB,gBAAgB;AAAA;AAAA,IAGhB,+DAA+D;AAAA,IAC/D,4EAA4E;AAAA,IAC5E,aAAa;AAAA,IACb,aAAa;AAAA,IACb,kBAAkB;AAAA,IAClB,2BAA2B;AAAA,IAC3B,UAAU;AAAA,IACV,aAAa;AAAA,IACb,UAAU;AAAA,IACV,QAAQ;AAAA;AAAA,IAGR,kCAAkC;AAAA,IAClC,wCAAwC;AAAA,IACxC,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,SAAS;AAAA,IACT,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,iBAAiB;AAAA;AAAA,IAGjB,UAAU;AAAA,IACV,qBAAqB;AAAA,IACrB,aAAa;AAAA,IACb,6BAA6B;AAAA,IAC7B,oBAAoB;AAAA,IACpB,uBAAuB;AAAA,IACvB,kCAAkC;AAAA,IAClC,yBAAyB;AAAA,IACzB,4BAA4B;AAAA,IAC5B,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,SAAS;AAAA,IACT,WAAW;AAAA,IACX,iEAAiE;AAAA,IACjE,iCAAiC;AAAA,IACjC,8BAA8B;AAAA,IAC9B,aAAa;AAAA,IACb,iBAAiB;AAAA;AAAA,IAGjB,yCAAyC;AAAA,IACzC,4BAA4B;AAAA,EAChC;;;ACzQA,MAAM,WAAW,OAAO,aAAW,cAAc,YAAU;AAE3D,MAAI,SAAS;AACb,MAAI,OAAO,cAAc,eAAe,UAAU,UAAU;AACxD,aAAS,UAAU,YAAY,UAAU,SAAS;AAAA,EACtD,WAAW,UAAU;AACjB,aAAS,SAAS,KAAK,EAAE,KAAK,SAAS,WAAW,IAAI,IAAI,SAAS;AAAA,EACvE;AAIe,WAAR,KAAsB,QAA2B,MAAa;AACjE,UAAM,YAAoB,UAAU,SAAS,cAAK,GAAG,IAAK,OAAO,aAAM,WAAW,GAAG,IAAI;AACzF,QAAI,CAAC,UAAW,OAAM,IAAI,MAAM,uBAAuB,GAAG,EAAE;AAE5D,WAAO,UAAU,QAAQ,YAAY,SAAU,OAAO,QAAQ;AAC1D,aAAO,OAAO,KAAK,MAAM,KAAK,cAAc,KAAK,MAAM,IAAI;AAAA,IAC/D,CAAC;AAAA,EACL;AAEO,WAAS,eAAe,KAAa;AACxC,WAAO,OAAO;AAAA,EAClB;;;ACzBA,qBAAkB;AASN;AAPZ,MAAqB,eAArB,cAA0C,aAAAA,QAAM,UAI7C;AAAA,IACC,SAAS;AACL,aACI,4CAAC,SAAI,WAAW,iBAAiB,KAAK,MAAM,YAAY,cAAc,EAAE,IAAI,SAAS,KAAK,MAAM,SAC3F,eAAK,MAAM,UAChB;AAAA,IAER;AAAA,EACJ;;;ACdA,MAAAC,gBAAkB;AAWE,MAAAC,sBAAA;AATpB,MAAqB,WAArB,cAAsC,cAAAC,QAAM,UAGzC;AAAA,IACC,SAAS;AACL,YAAM,OAAO,KAAK,MAAM,QAAQ;AAChC,aACI,6CAAC,SAAI,MAAK,QAAO,WAAU,cAAa,SAAS,KAAK,MAAM,SACxD,uDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,KAAK,MAAM,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC5E,uDAAC,UAAK,MAAK,gBAAe,UAAS,WAAU,UAAS,WAAU,GAAE,iVAAgV,GACtZ,GACJ;AAAA,IAER;AAAA,EACJ;;;AChBA,MAAAC,gBAAkB;AAUE,MAAAC,sBAAA;AARpB,MAAqB,aAArB,cAAwC,cAAAC,QAAM,UAE3C;AAAA,IACC,SAAS;AACL,YAAM,OAAO,KAAK,MAAM,QAAQ;AAChC,aACI,6CAAC,SAAI,MAAK,QAAO,WAAU,cACvB,uDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,KAAK,MAAM,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC5E,uDAAC,UAAK,MAAK,gBAAe,UAAS,WAAU,UAAS,WAAU,GAAE,+JAA8J,GACpO,GACJ;AAAA,IAER;AAAA,EACJ;;;ACfA,MAAAC,gBAAkB;AAUF,MAAAC,sBAAA;AARhB,MAAqB,mBAArB,cAA8C,cAAAC,QAAM,UAGjD;AAAA,IACC,SAAS;AACL,YAAM,OAAO,KAAK,MAAM,QAAQ;AAChC,aACI,6CAAC,SAAI,MAAK,QAAO,WAAU,cAAa,SAAS,KAAK,MAAM,SACxD,wDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,KAAK,MAAM,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC5E;AAAA,qDAAC,UAAK,MAAK,gBAAe,GAAE,gTAAgT;AAAA,QAC5U,6CAAC,UAAK,MAAK,gBAAe,UAAS,WAAU,UAAS,WAAU,GAAE,gIAA+H;AAAA,SACrM,GACJ;AAAA,IAER;AAAA,EACJ;;;ACjBA,MAAAC,gBAAkB;AAUE,MAAAC,sBAAA;AARpB,MAAqB,WAArB,cAAsC,cAAAC,QAAM,UAEzC;AAAA,IACC,SAAS;AACL,YAAM,OAAO,KAAK,MAAM,QAAQ;AAChC,aACI,6CAAC,SAAI,MAAK,QAAO,WAAU,cACvB,uDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,KAAK,MAAM,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC5E,uDAAC,UAAK,MAAK,gBAAe,UAAS,WAAU,UAAS,WAAU,GAAE,kIAAiI,GACvM,GACJ;AAAA,IAER;AAAA,EACJ;;;ACiBQ,MAAAC,sBAAA;AAvBR,MAAM,YAAY;AAClB,MAAM,cAAc;AAAA,IAChB,WAAW;AAAA,IACX,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,IACjB,WAAW;AAAA,IACX,SAAS;AAAA,EACb;AASA,MAAM,eAA4C,CAAC;AAAA,IAC/C,YAAY;AAAA,IACZ;AAAA,IACA;AAAA,IACA;AAAA,EACJ,MAAM;AACF,WACI,8CAAC,QAAG,WAAW,GAAG,YAAY,SAAS,GAAG,YAAY,IAAI,YAAY,OAAO,KAAK,EAAE,IAAI,SACpF;AAAA,mDAAC,cAAS,WAAW,YAAY,gBAC5B,UACL;AAAA,MACC,gBACG,6CAAC,SAAI,WAAW,YAAY,iBACvB,wBACL;AAAA,OAER;AAAA,EAER;AAQA,MAAM,gBAA8C,CAAC;AAAA,IACjD;AAAA,IACA;AAAA,IACA;AAAA,EACJ,MAAM;AACF,UAAM,cAAc,MAAM;AACtB,UAAI,SAAS,OAAO;AAChB,cAAM,yBAAyB,WAAW;AAC1C,cAAM,iBAAiB,uBAAuB,YAAY,GAAG;AAE7D,YAAI,mBAAmB,MAAM,uBAAuB,iBAAiB,CAAC,MAAM,KAAK;AAC7E,2BAAiB,EAAE;AAAA,QACvB,OAAO;AACH,2BAAiB,uBAAuB,MAAM,GAAG,cAAc,CAAC;AAAA,QACpE;AAAA,MACJ,OAAO;AACH,yBAAiB,IAAI;AAAA,MACzB;AAAA,IACJ;AAEA,WACI,8CAAC,gBAAa,SAAS,aACnB;AAAA,mDAAC,cAAW,MAAM,WAAW;AAAA,MAC7B,6CAAC,SAAI,OAAO,EAAE,YAAY,EAAE,GAAI,eAAK,MAAM,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,IAAI,GAAE;AAAA,OACvE;AAAA,EAER;AAmBA,MAAM,kBAKD,CAAC,EAAE,WAAW,QAAQ,WAAW,MAAM,MAAM;AAC9C,WACI,8EACI;AAAA,mDAAC,SAAI,WAAW,YAAY,WACxB,uDAAC,YAAS,MAAM,WAAW,SAAS,QAAQ,GAChD;AAAA,MACC,aACG,6CAAC,gBAAa,WAAW,WAAW,SAAS,WACzC,uDAAC,oBAAiB,MAAM,WAAW,GACvC;AAAA,MAEJ,6CAAC,gBAAa,SAAS,OACnB,uDAAC,YAAS,MAAM,WAAW,GAC/B;AAAA,OACJ;AAAA,EAER;AAEA,MAAM,eAA4C,CAAC;AAAA,IAC/C;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACJ,MAAM;AACF,UAAM;AAAA,MACF;AAAA,MACA;AAAA,IACJ,QAAI,6CAAgB;AACpB,UAAM;AAAA,MACF;AAAA,IACJ,QAAI,iDAAoB;AAExB,UAAM,kBAAkB,MAAM;AAC1B,oBAAc,IAAI;AAClB,mBAAa,kBAAkB,SAAS,IAAI;AAAA,IAChD;AAEA,UAAM,qBAAqB,MAAM;AAC7B,UAAI,CAAC,WAAW;AACZ,uBAAe,EAAE,MAAM,YAAY,OAAO,SAAS,KAAK,CAAC;AAAA,MAC7D,OAAO;AACH,uBAAe,IAAI;AAAA,MACvB;AAAA,IACJ;AAEA,WACI;AAAA,MAAC;AAAA;AAAA,QACG;AAAA,QACA,cACI;AAAA,UAAC;AAAA;AAAA,YACG;AAAA,YACA,QAAQ;AAAA,YACR,WAAW;AAAA,YACX,OAAO,MAAM,MAAM,SAAS,IAAI;AAAA;AAAA,QACpC;AAAA,QAEJ,SAAS;AAAA,QAER,mBAAS,QAAQ,SAAS,MAAM,QAAQ,wBAAwB,EAAE,IAAI,SAAS,KAAK,MAAM,GAAG,EAAE,IAAI;AAAA;AAAA,IACxG;AAAA,EAER;AAEA,MAAM,sBAAyD,CAAC;AAAA,IAC5D;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACJ,MAAM;AACF,UAAM;AAAA,MACF;AAAA,IACJ,QAAI,iDAAoB;AACxB,UAAM;AAAA,MACF;AAAA,IACJ,QAAI,6CAAgB;AAEpB,UAAM,kBAAkB,YAAY;AAChC,cAAQ,MAAM,aAAa,kBAAkB,IAAI;AACjD,oBAAc,IAAI;AAAA,IACtB;AAEA,WACI;AAAA,MAAC;AAAA;AAAA,QACG,cACI;AAAA,UAAC;AAAA;AAAA,YACG,QAAQ;AAAA,YACR;AAAA;AAAA,QACJ;AAAA,QAEJ,SAAS;AAAA,QAER;AAAA;AAAA,IACL;AAAA,EAER;;;ACjKY,MAAAC,sBAAA;AAtBZ,MAAM,eAA4C,CAAC,EAAE,cAAc,MAAM;AACrE,UAAM;AAAA,MACF;AAAA,MACA;AAAA,IACJ,QAAI,6CAAgB;AAEpB,UAAM;AAAA,MACF;AAAA,MACA;AAAA,IACJ,QAAI,iDAAoB;AAExB,UAAM;AAAA,MACF;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ,QAAI,kDAAqB;AAEzB,QAAI,eAAe;AACnB,QAAI;AACA,aAAO,6CAAC,SAAI,WAAU,iBAClB,uDAAC,cAAU,0BAAe,GAC9B;AAEJ,WACI,8CAAC,SAAI,WAAU,iBACX;AAAA,oDAAC,QAAG,WAAU,eAEN;AAAA,kCACI;AAAA,UAAC;AAAA;AAAA,YAEG,MAAK;AAAA,YACL,SAAS,wBAAwB,MAAM,GAAG,EAAE;AAAA,YAC5C,gBAAgB,CAAC,YAAoB;AACjC,yCAA2B,OAAO;AAAA,YACtC;AAAA;AAAA,UALK;AAAA,QAMT,IACE;AAAA,QAGN,YAAY,IAAI,CAAC,SAA2C;AACxD,gBAAM,OAAO,KAAK;AAClB,gBAAM,WAAW,UAAU,IAAI;AAC/B,gBAAM,UAAU,aAAa,SAAS;AACtC,cAAI,KAAK,OAAO;AACZ,mBACI;AAAA,cAAC;AAAA;AAAA,gBAEG;AAAA,gBACA,SAAS,wBAAwB,MAAM,GAAG,EAAE;AAAA,gBAC5C,gBAAgB,CAAC,YAAoB;AACjC,6CAA2B,OAAO;AAAA,gBACtC;AAAA;AAAA,cALK;AAAA,YAMT;AAAA,UAER;AACA,iBACI;AAAA,YAAC;AAAA;AAAA,cACG;AAAA,cAEA,WAAW;AAAA,cACX;AAAA,cACA,OAAO,OAAOC,UAAiB;AAC3B,sBAAM,YAAYA,KAAI;AAAA,cAC1B;AAAA;AAAA,YALK;AAAA,UAMT;AAAA,QAER,CAAC;AAAA,SAGT;AAAA,MACA,6CAAC,gBAAW;AAAA,MACZ,8CAAC,QAAG,WAAU,eACV;AAAA;AAAA,UAAC;AAAA;AAAA,YACG;AAAA,YACA,MAAM;AAAA,YACN,OAAO,KAAK,yBAAyB;AAAA,YACrC,OAAO,YAAY;AACf,oBAAM,QAAQ,gBAAgB;AAAA,YAClC;AAAA;AAAA,QACJ;AAAA,QACA;AAAA,UAAC;AAAA;AAAA,YACG;AAAA,YACA,MAAM;AAAA,YACN,OAAO,KAAK,sBAAsB;AAAA,YAClC,OAAO,YAAY;AACf,oBAAM,QAAQ,gBAAgB;AAAA,YAClC;AAAA;AAAA,QACJ;AAAA,SACJ;AAAA,MAEC,aAAa,QAAQ,aAAa,6CAAC,cAAS,OAAM,gBAAgB,eAAK,0CAA0C,UAAU,aAAa,KAAK,GAAG,IAAI,GAAE,IAAc;AAAA,OACzK;AAAA,EAER;AAEA,MAAO,uBAAQ;;;AC1Gf,MAAAC,iBAAoC;;;ACHpC,MAAAC,iBAA+C;;;ACA/C,MAAAC,gBAAkB;AAWE,MAAAC,sBAAA;AATpB,MAAqB,cAArB,cAAyC,cAAAC,QAAM,UAG5C;AAAA,IACC,SAAS;AACL,YAAM,OAAO,KAAK,MAAM,QAAQ;AAChC,aACI,6CAAC,SAAI,MAAK,QAAO,WAAU,cAAa,SAAS,KAAK,MAAM,SACxD,uDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,KAAK,MAAM,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC5E,uDAAC,UAAK,MAAK,gBAAe,GAAE,yMAAwM,GACxO,GACJ;AAAA,IAER;AAAA,EACJ;;;AChBA,MAAAC,gBAAkB;AAQF,MAAAC,sBAAA;AANhB,MAAqB,WAArB,cAAsC,cAAAC,QAAM,UAAU;AAAA,IAClD,SAAS;AACL,aACI,6CAAC,SAAI,MAAK,QAAO,WAAU,cAAa,OAAO;AAAA,QAC3C,aAAa;AAAA,MACjB,GACI,wDAAC,SAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC9D;AAAA,qDAAC,UAAK,GAAE,2IAA0I;AAAA,QAClJ,6CAAC,UAAK,GAAE,wDAAuD;AAAA,SACnE,GACJ;AAAA,IAER;AAAA,EACJ;;;ACfA,MAAAC,gBAAkB;AAMF,MAAAC,uBAAA;AAJhB,MAAqB,gBAArB,cAA2C,cAAAC,QAAM,UAA6B;AAAA,IAC1E,SAAS;AACL,aACI,+CAAC,SAAI,MAAK,QAAO,WAAU,cACvB;AAAA,uDAAC,SAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC9D;AAAA,wDAAC,UAAK,MAAK,gBAAe,UAAS,WAAU,UAAS,WAAU,GAAE,gMAA+L;AAAA,UACjQ,8CAAC,UAAK,MAAK,gBAAe,UAAS,WAAU,UAAS,WAAU,GAAE,0KAAyK;AAAA,WAC/O;AAAA,QAAO,KAAK,MAAM;AAAA,SACtB;AAAA,IAER;AAAA,EACJ;;;ACbA,MAAAC,gBAAkB;AAQF,MAAAC,uBAAA;AANhB,MAAqB,cAArB,cAAyC,cAAAC,QAAM,UAAU;AAAA,IACrD,SAAS;AACL,aACI,8CAAC,SAAI,MAAK,QAAQ,WAAU,cAAa,OAAO;AAAA,QAC5C,aAAa;AAAA,MACjB,GACI,yDAAC,SAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAC9D;AAAA,sDAAC,UAAK,WAAU,cAAa,UAAS,WAAU,UAAS,WAAU,GAAE,+rBAA8rB;AAAA,QAEnwB,8CAAC,UAAK,WAAU,gCAA+B,UAAS,WAAU,UAAS,WAAU,GAAE,iVAAgV;AAAA,SAC3a,GACJ;AAAA,IAER;AAAA,EACJ;;;AChBA,MAAAC,iBAAkB;AASF,MAAAC,uBAAA;AAPhB,MAAqB,YAArB,cAAuC,eAAAC,QAAM,UAG1C;AAAA,IACC,SAAS;AACL,aACI,8CAAC,SAAI,MAAK,QAAO,WAAU,cACvB,yDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,IAAI,QAAQ,KAAK,MAAM,QAAQ,IAAI,SAAQ,aAAY,MAAK,QAAO,OAAM,8BACpG;AAAA,sDAAC,UAAK,GAAE,8OAA6O,MAAK,gBAAe;AAAA,QACzQ,8CAAC,UAAK,GAAE,6OAA4O,MAAK,gBAAe;AAAA,SAC5Q,GACJ;AAAA,IAER;AAAA,EACJ;;;AChBA,MAAAC,iBAAkB;AASmI,MAAAC,uBAAA;AAPrJ,MAAqB,WAArB,cAAsC,eAAAC,QAAM,UAGzC;AAAA,IACC,SAAS;AACL,aACI,8CAAC,SAAI,MAAK,QAAO,WAAU,cACvB,wDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,IAAI,QAAQ,KAAK,MAAM,QAAQ,IAAI,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAA6B,wDAAC,UAAK,GAAE,uFAAsF,MAAK,gBAAe,GAAO,GAClQ;AAAA,IAER;AAAA,EACJ;;;ACbA,MAAAC,iBAAkB;AAQF,MAAAC,uBAAA;AANhB,MAAqB,aAArB,cAAwC,eAAAC,QAAM,UAE3C;AAAA,IACC,SAAS;AACL,aACI,8CAAC,SAAI,MAAK,QAAO,WAAU,cACvB,yDAAC,SAAI,OAAO,KAAK,MAAM,QAAQ,IAAI,QAAQ,KAAK,MAAM,QAAQ,IAAI,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAEpG;AAAA,sDAAC,UAAK,GAAE,4DAA2D,MAAK,gBAAc;AAAA,QAGtF,8CAAC,UAAK,GAAE,wNAAuN,MAAK,gBAAc;AAAA,SACtP,GACJ;AAAA,IAER;AAAA,EACJ;;;APY2B,MAAAC,uBAAA;AAW3B,MAAM,aAAa,CAAC;AAAA,IAChB;AAAA,IACA;AAAA,EACJ,MAA4B;AACxB,UAAM,EAAE,iBAAiB,QAAI,6CAAgB;AAC7C,UAAM,EAAE,cAAc,eAAe,QAAI,iDAAoB;AAE7D,UAAM,aAAS,4BAAY,YAAY;AACnC,YAAM,aAAa,gBAAgB;AAAA,IACvC,GAAG,CAAC,cAAc,gBAAgB,CAAC;AAEnC,WACI,8CAAC,sBAAiB,SAAS,QAAQ,cAA4B,cAC3D,wDAAC,YAAS,GACd;AAAA,EAER;AAkCA,MAAM,sBAAsB,CAAC;AAAA,IACzB;AAAA,IACA;AAAA,EACJ,MAA4B;AACxB,UAAM,EAAE,UAAU,QAAI,iDAAoB;AAC1C,UAAM,EAAE,WAAW,QAAI,iDAAoB;AAC3C,UAAM,0BAAsB,4BAAY,YAAY;AAChD,YAAM,WAAW;AACjB,YAAM,UAAU;AAAA,IACpB,GAAG,CAAC,YAAY,SAAS,CAAC;AAE1B,WAAO,8CAAC,sBAAiB,SAAS,qBAAqB,cAA4B,cAC/E,wDAAC,cAAW,GAChB;AAAA,EACJ;AAEA,MAAM,gBAAgB,CAAC;AAAA,IACnB;AAAA,IACA;AAAA,EACJ,MAA4B;AACxB,UAAM,EAAE,iBAAiB,QAAI,6CAAgB;AAC7C,UAAM,EAAE,eAAe,QAAI,iDAAoB;AAC/C,UAAM,eAAW,4BAAY,MAAM;AAC/B,qBAAe,gBAAgB;AAAA,IACnC,GAAG,CAAC,gBAAgB,gBAAgB,CAAC;AAErC,WAAO,8CAAC,sBAAiB,SAAS,UAAU,cAA4B,cACpE,wDAAC,eAAY,GACjB;AAAA,EACJ;AAiBA,MAAM,iBAAiB,CAAC;AAAA,IACpB;AAAA,IACA;AAAA,EACJ,MAA4B;AACxB,UAAM,EAAE,kBAAkB,aAAa,eAAe,QAAI,6CAAgB;AAE1E,WACI,8CAAC,sBAAiB,OAAO,aAAa,SAAS,mBAAmB,cAAc,IAAI,SAAS,MAAM;AAC/F,UAAI,aAAa,SAAS,kBAAkB;AACxC,uBAAe,IAAI;AAAA,MACvB,OAAO;AACH,uBAAe;AAAA,UACX,MAAM;AAAA,UACN,OAAO;AAAA,QACX,CAAC;AAAA,MACL;AAAA,IACJ,GAAG,cAA4B,cAC3B,wDAAC,oBAAiB,GACtB;AAAA,EAER;AAGA,MAAM,aAAa,CAAC;AAAA,IAChB;AAAA,IACA;AAAA,EACJ,MAA4B;AACxB,UAAM,EAAE,kBAAkB,iBAAiB,oBAAoB,QAAI,6CAAgB;AACnF,UAAM,eAAe,oBAAoB;AAEzC,WACI;AAAA,MAAC;AAAA;AAAA,QACI,GAAI,CAAC,eAAe,EAAE,UAAU,KAAK,IAAI,CAAC;AAAA,QAC3C,SAAS,MAAM;AAAE,8BAAoB;AAAA,QAAE;AAAA,QACvC,OAAO,CAAC,eAAe,KAAK,uCAAuC,IAAI,KAAK,iBAAiB;AAAA,QAC7F;AAAA,QACA;AAAA,QAEA,wDAAC,eAAY;AAAA;AAAA,IACjB;AAAA,EAER;AAGA,MAAM,YAAY,CAAC;AAAA,IACf;AAAA,IACA;AAAA,EACJ,MAA4B;AACxB,UAAM,EAAE,iBAAiB,QAAI,6CAAgB;AAC7C,UAAM,EAAE,QAAQ,QAAI,iDAAoB;AAExC,WACI,8CAAC,sBAAiB,SAAS,MAAM;AAC7B,cAAQ,gBAAgB;AAAA,IAC5B,GAAG,cAA4B,cAC3B,wDAAC,YAAS,GACd;AAAA,EAER;AACA,MAAM,kBAAkB,CAAC;AAAA,IACrB;AAAA,IACA;AAAA,EACJ,MAA4B;AACxB,UAAM,EAAE,iBAAiB,QAAI,6CAAgB;AAC7C,UAAM,EAAE,QAAQ,QAAI,iDAAoB;AAExC,WACI,gFACI;AAAA,oDAAC,SAAI,WAAU,iBAAgB,SAAS,MAAM;AAAE,gBAAQ,kBAAkB,CAAC;AAAA,MAAE,GAAG,cAA4B,cAA4B,gBAAE;AAAA,MAC1I,8CAAC,SAAI,WAAU,iBAAgB,SAAS,MAAM;AAAE,gBAAQ,kBAAkB,CAAC;AAAA,MAAE,GAAG,cAA4B,cAA4B,gBAAE;AAAA,MAC1I,8CAAC,SAAI,WAAU,iBAAgB,SAAS,MAAM;AAAE,gBAAQ,kBAAkB,CAAC;AAAA,MAAE,GAAG,cAA4B,cAA4B,gBAAE;AAAA,OAC9I;AAAA,EAER;AAYO,WAAS,iBAAiB;AAAA,IAC7B;AAAA,EACJ,GAEG;AACC,UAAM,EAAE,kBAAkB,YAAY,QAAI,6CAAgB;AAC1D,UAAM,EAAE,MAAM,UAAU,QAAI,2CAAc,gBAAgB;AAC1D,UAAM,EAAE,WAAW,UAAU,mBAAmB,QAAI,2CAAc,gBAAgB;AAClF,UAAM,CAAC,gBAAgB,iBAAiB,QAAI,yBAAwB,IAAI;AACxE,UAAM,WAAO,wBAAQ,MAAM;AACvB,UAAI,kBAAkB,QAAQ;AAC1B,eAAO,KAAK,0BAA0B;AAAA,MAC1C;AACA,UAAI,kBAAkB,WAAW;AAC7B,eAAO,KAAK,iBAAiB;AAAA,MACjC;AACA,UAAI,kBAAkB,iBAAiB;AACnC,eAAO,KAAK,qBAAqB;AAAA,MACrC;AACA,UAAI,kBAAkB,WAAW;AAC7B,eAAO,cAAc,KAAK,eAAe,IAAI,KAAK,iCAAiC;AAAA,MACvF;AACA,UAAI,kBAAkB,QAAQ;AAC1B,eAAO,KAAK,iBAAiB;AAAA,MACjC;AACA,UAAI,kBAAkB,OAAO;AACzB,eAAO,KAAK,cAAc;AAAA,MAC9B;AACA,UAAI,kBAAkB,YAAY;AAC9B,eAAO,KAAK,iBAAiB;AAAA,MACjC;AACA,aAAO;AAAA,IACX,GAAG,CAAC,gBAAgB,IAAI,CAAC;AAGzB,eAAO,wBAAQ,MAAM;AACjB,aACI,+CAAC,SAAI,WAAU,sBACX;AAAA,sDAAC,SAAI,WAAU,qBAEX,yDAAC,SAAI,WAAU,0BACX;AAAA,yDAAC,SAAI,WAAU,+BACX;AAAA,2DAAC,SAAI,WAAU,0DACX;AAAA,6DAAC,SAAI,WAAU,kCACX;AAAA;AAAA,kBAAC;AAAA;AAAA,oBACG,cAAc,MAAM,kBAAkB,MAAM;AAAA,oBAC5C,cAAc,MAAM,kBAAkB,IAAI;AAAA;AAAA,gBAAG;AAAA,gBACjD;AAAA,kBAAC;AAAA;AAAA,oBACG,cAAc,MAAM,kBAAkB,SAAS;AAAA,oBAC/C,cAAc,MAAM,kBAAkB,IAAI;AAAA;AAAA,gBAAG;AAAA,iBACrD;AAAA,cACA,+CAAC,SAAI,WAAU,mCACX;AAAA;AAAA,kBAAC;AAAA;AAAA,oBACG,cAAc,MAAM,kBAAkB,eAAe;AAAA,oBACrD,cAAc,MAAM,kBAAkB,IAAI;AAAA;AAAA,gBAAG;AAAA,gBACjD;AAAA,kBAAC;AAAA;AAAA,oBACG,cAAc,MAAM,kBAAkB,SAAS;AAAA,oBAC/C,cAAc,MAAM,kBAAkB,IAAI;AAAA;AAAA,gBAAG;AAAA,iBAErD;AAAA,eACJ;AAAA,YACA,+CAAC,SAAI,WAAU,4DAEX;AAAA,6DAAC,SAAI,WAAU,uBACV;AAAA,4BAAY,8CAAC,cAAS,OAAM,eAAe,qBAAU,IAAc;AAAA,gBAKnE,CAAC,aAAa,CAAC,sBAAsB,cAAc,8CAAC,cAAU,eAAK,kCAAkC,GAAE,IAAc;AAAA,gBACrH,CAAC,aAAa,CAAC,sBAAsB,OAAO,8CAAC,cAAU,gBAAK,IAAc;AAAA,iBAC/E;AAAA,cAEA;AAAA,gBAAC;AAAA;AAAA,kBACG,cAAc,MAAM,kBAAkB,MAAM;AAAA,kBAC5C,cAAc,MAAM,kBAAkB,IAAI;AAAA;AAAA,cAAG;AAAA,eACrD;AAAA,aACJ;AAAA,UACA,8CAAC,SAAI,WAAU,iCACX;AAAA,YAAC;AAAA;AAAA,cACG,cAAc,MAAM,kBAAkB,KAAK;AAAA,cAC3C,cAAc,MAAM,kBAAkB,IAAI;AAAA;AAAA,UAAG,GACrD;AAAA,UACA,8CAAC,SAAI,WAAU,gCACX;AAAA,YAAC;AAAA;AAAA,cACG,cAAc,MAAM,kBAAkB,UAAU;AAAA,cAChD,cAAc,MAAM,kBAAkB,IAAI;AAAA;AAAA,UAAG,GACrD;AAAA,WACJ,GACJ;AAAA,QACA,8CAAC,gBAAW;AAAA,QACZ,8CAAC,yBAAsB;AAAA,SAC3B;AAAA,IAER,GAAG,CAAC,MAAM,WAAW,gBAAgB,aAAa,WAAW,UAAU,oBAAoB,MAAM,qBAAqB,CAAC;AAAA,EAC3H;;;AQ5TA,aAAW,SAAS,WAAW,UAAU,CAAC;AACnC,MAAM,SAAU,WAAmB;;;AT4ClC,MAAAC,uBAAA;AAtCD,WAAS,QAAQ;AAAA,IACpB;AAAA,IACA;AAAA,IACA;AAAA,EACJ,GAIG;AACC,UAAM,CAAC,YAAY,aAAa,QAAI,yBAAS,KAAK;AAElD,UAAM;AAAA,MACF;AAAA,MACA;AAAA,MACA;AAAA,IAEJ,QAAI,6CAAgB;AAEpB,UAAM,yBAAyB,aAAa,IAAI;AAEhD,UAAM,CAAC,kBAAkB,mBAAmB,QAAI,yBAAS,KAAK;AAG9D,kCAAU,MAAM;AACZ,UAAI,kBAAkB;AAClB,4BAAoB,oBAAoB,eAAe;AAAA,MAC3D,OAAO;AACH,YAAI,kBAAkB;AAClB,wBAAc,KAAK;AAAA,QACvB;AAAA,MACJ;AAAA,IACJ,GAAG,CAAC,gBAAgB,CAAC;AACrB,kCAAU,MAAM;AACZ,UAAI,iBAAiB,gBAAgB;AACjC,sBAAc,KAAK;AAAA,MACvB;AAAA,IACJ,GAAG,CAAC,YAAY,CAAC;AACjB,WACI,gFACI;AAAA,oDAAC,uCAAQ;AAAA,MACT,8CAAC,SAAI,WAAU,oBACX,yDAAC,SAAI,WAAU,eAEP;AAAA,eAAO,OAAO;AAAA,UAAC;AAAA;AAAA,YAAI,KAAK,OAAO;AAAA,YAAM,KAAI;AAAA,YACrC,OAAO,EAAE,OAAO,QAAQ,QAAQ,QAAQ,QAAQ,WAAW,aAAa,MAAM;AAAA,YAC9E,OAAO,KAAK,uBAAuB;AAAA,YACnC,SAAS,MAAM;AACX,4BAAc,KAAK;AAAA,YACvB;AAAA;AAAA,QACJ,IACI,CAAC,aACG,8CAAC,SAAI,WAAW,gBAAgB,cAC5B,wDAAC,SAAI,WAAU,eAAc,OAAO,yBAAyB,SAAS,KAAK,KAAK,YAAY,GAAG,oBAAC,GACpG,IAEA;AAAA,UAAC;AAAA;AAAA,YACG,SAAS,MAAM;AACX,4BAAc,KAAK;AAAA,YACvB;AAAA,YACH;AAAA;AAAA,QAAC;AAAA,QAGd,8CAAC,cAAW;AAAA,SAChB,GACJ;AAAA,MAEI,0BACI,8CAAC,SACG,wDAAC,cAAS,OAAM,eACX,yBAAe,uBAAuB,IAAI,KAAK,uBAA8B,IAAI,yBACtF,GACJ,IACA;AAAA,MAMJ,iBAAiB,eACjB,+CAAC,SAAI,WAAU,cACX;AAAA,sDAAC,SAAI,WAAU,eAAc,OAAO,2BAA2B,IAAI,CAAC,IAAI,EAAE,SAAS,OAAO,GACtF,wDAAC,SAAI,WAAU,mBAEX,wDAAC,wBAAa,eAA8B,GAChD,GACJ;AAAA,QACA,8CAAC,SAAI,WAAU,eAAc,OAAO,aAAa,CAAC,IAAI,EAAE,SAAS,OAAO,GACnE,wBAAc,oBAAoB,8CAAC,oBAAiB,uBAA8C,GACvG;AAAA,SACJ;AAAA,OAGR;AAAA,EAER;;;AUxF4B,MAAAC,uBAAA;AAXb,WAAR,OAAwB;AAC3B,WACI,8CAAC,6CAAc,YAAY,IACvB,wDAAC,SAAI,WAAU,aACX;AAAA,MAAC;AAAA;AAAA,QACG,eAAe,CACX,cACA,YACA,0BACC;AACD,iBACI;AAAA,YAAC;AAAA;AAAA,cACG;AAAA,cACA;AAAA,cACA;AAAA;AAAA,UACJ;AAAA,QAER;AAAA;AAAA,IACJ,GACJ,GACJ;AAAA,EAER;;;ACxBA,sBAA2B;AAKQ,MAAAC,uBAAA;AAFnC,aAAW,QAAQ,WAAW,SAAS,CAAC;AACxC,aAAW,MAAM,wBAAwB,CAAC,gBAA6B;AACnE,kCAAW,WAAW,EAAE,OAAO,8CAAC,QAAK,CAAE;AAAA,EAC3C;", - "names": ["React", "import_react", "import_jsx_runtime", "React", "import_react", "import_jsx_runtime", "React", "import_react", "import_jsx_runtime", "React", "import_react", "import_jsx_runtime", "React", "import_jsx_runtime", "import_jsx_runtime", "path", "import_react", "import_react", "import_react", "import_jsx_runtime", "React", "import_react", "import_jsx_runtime", "React", "import_react", "import_jsx_runtime", "React", "import_react", "import_jsx_runtime", "React", "import_react", "import_jsx_runtime", "React", "import_react", "import_jsx_runtime", "React", "import_react", "import_jsx_runtime", "React", "import_jsx_runtime", "import_jsx_runtime", "import_jsx_runtime", "import_jsx_runtime"] -} diff --git a/plugins/photoshop/dist/photoshop-internal.js b/plugins/photoshop/dist/photoshop-internal.js deleted file mode 100644 index c129c55..0000000 --- a/plugins/photoshop/dist/photoshop-internal.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict";(()=>{var Qi=Object.create;var Ht=Object.defineProperty;var Ro=Object.getOwnPropertyDescriptor;var Gi=Object.getOwnPropertyNames;var qi=Object.getPrototypeOf,Ki=Object.prototype.hasOwnProperty;var O=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Qr=(e,t)=>{for(var r in t)Ht(e,r,{get:t[r],enumerable:!0})},zi=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Gi(t))!Ki.call(e,n)&&n!==r&&Ht(e,n,{get:()=>t[n],enumerable:!(o=Ro(t,n))||o.enumerable});return e};var b=(e,t,r)=>(r=e!=null?Qi(qi(e)):{},zi(t||!e||!e.__esModule?Ht(r,"default",{value:e,enumerable:!0}):r,e));var x=(e,t,r,o)=>{for(var n=o>1?void 0:o?Ro(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(n=(o?s(t,r,n):s(n))||n);return o&&n&&Ht(t,r,n),n};var E=Ye((Ka,qo)=>{"use strict";qo.exports=window.React});var Xo=Ye((nc,Jo)=>{"use strict";var ut=1e3,lt=ut*60,dt=lt*60,tt=dt*24,fs=tt*7,ps=tt*365.25;Jo.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return ms(e);if(r==="number"&&isFinite(e))return t.long?gs(e):hs(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function ms(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),o=(t[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return r*ps;case"weeks":case"week":case"w":return r*fs;case"days":case"day":case"d":return r*tt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*dt;case"minutes":case"minute":case"mins":case"min":case"m":return r*lt;case"seconds":case"second":case"secs":case"sec":case"s":return r*ut;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function hs(e){var t=Math.abs(e);return t>=tt?Math.round(e/tt)+"d":t>=dt?Math.round(e/dt)+"h":t>=lt?Math.round(e/lt)+"m":t>=ut?Math.round(e/ut)+"s":e+"ms"}function gs(e){var t=Math.abs(e);return t>=tt?sr(e,t,tt,"day"):t>=dt?sr(e,t,dt,"hour"):t>=lt?sr(e,t,lt,"minute"):t>=ut?sr(e,t,ut,"second"):e+" ms"}function sr(e,t,r,o){var n=t>=r*1.5;return Math.round(e/r)+" "+o+(n?"s":"")}});var en=Ye((ic,Zo)=>{"use strict";function ys(e){r.debug=r,r.default=r,r.coerce=c,r.disable=s,r.enable=n,r.enabled=a,r.humanize=Xo(),r.destroy=f,Object.keys(e).forEach(d=>{r[d]=e[d]}),r.names=[],r.skips=[],r.formatters={};function t(d){let u=0;for(let p=0;p{if(te==="%%")return"%";I++;let k=r.formatters[ae];if(typeof k=="function"){let q=w[I];te=k.call(v,q),w.splice(I,1),I--}return te}),r.formatArgs.call(v,w),(v.log||r.log).apply(v,w)}return g.namespace=d,g.useColors=r.useColors(),g.color=r.selectColor(d),g.extend=o,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(l!==r.namespaces&&(l=r.namespaces,m=r.enabled(d)),m),set:w=>{p=w}}),typeof r.init=="function"&&r.init(g),g}function o(d,u){let p=r(this.namespace+(typeof u>"u"?":":u)+d);return p.log=this.log,p}function n(d){r.save(d),r.namespaces=d,r.names=[],r.skips=[];let u=(typeof d=="string"?d:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let p of u)p[0]==="-"?r.skips.push(p.slice(1)):r.names.push(p)}function i(d,u){let p=0,l=0,m=-1,g=0;for(;p"-"+u)].join(",");return r.enable(""),d}function a(d){for(let u of r.skips)if(i(d,u))return!1;for(let u of r.names)if(i(d,u))return!0;return!1}function c(d){return d instanceof Error?d.stack||d.message:d}function f(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Zo.exports=ys});var cr=Ye((oe,ar)=>{"use strict";oe.formatArgs=bs;oe.save=vs;oe.load=Ss;oe.useColors=ws;oe.storage=Ps();oe.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();oe.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function ws(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function bs(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+ar.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(r++,n==="%c"&&(o=r))}),e.splice(o,0,t)}oe.log=console.debug||console.log||(()=>{});function vs(e){try{e?oe.storage.setItem("debug",e):oe.storage.removeItem("debug")}catch{}}function Ss(){let e;try{e=oe.storage.getItem("debug")||oe.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function Ps(){try{return localStorage}catch{}}ar.exports=en()(oe);var{formatters:Ds}=ar.exports;Ds.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var S=Ye((ac,on)=>{"use strict";on.exports=window.ReactJSXRuntime});var ln=Ye((dc,un)=>{"use strict";un.exports=window.socketIO});var xt=Ye((Lc,yn)=>{"use strict";yn.exports=window.Jimp});var To={};Qr(To,{Auths:()=>Mi,Promote:()=>Bi,SDPPP:()=>Oi,SDPPPProvider:()=>si,useAgentState:()=>_r,useSDPPPComfyCaller:()=>ie,useSDPPPContext:()=>Me,useSDPPPWebpageList:()=>Lr,useSDPPPWorkflowList:()=>ai});var R=O("photoshop");var Le=O("photoshop"),Yi=O("uxp");var Gr={"SDPPP Get Document":"Get Document","SDPPP Get Layer By ID":"Get Layer","SDPPP Get Linked Layers":"Get Linked Layers","SDPPP Get Layers In Group":"Get Layers In Group","SDPPP Get Text From Layer":"Get Text From Layer","SDPPP Parse Layer Info":"Parse Layer Info","SDPPP Get Selection":"Get Selection","SDPPP Get Image From Photoshop":"Get Image From Photoshop","SDPPP Send Images To Photoshop":"Send Images To Photoshop","SDPPP Select Layer And Run PS Action":"Select Layer And Run PS Action"};var qr={"### Active Document ###":"### \u5F53\u524D\u6587\u6863 ###","### The Canvas ###":"### \u6574\u4E2A\u753B\u5E03 ###","### New Layer ###":"### \u65B0\u56FE\u5C42 ###","### Selected Layer ###":"### \u6240\u9009\u56FE\u5C42 ###","### Keep Size or Fit Canvas ###":"### \u4FDD\u6301\u5C3A\u5BF8\u6216\u9002\u5E94\u753B\u5E03 ###",_SDPPP_PSD_:"_SDPPP_PSD_","Save and run immediately":"\u4FDD\u5B58\u5E76\u7ACB\u5373\u6267\u884C",Close:"\u5173\u95ED","Select a {0}":"\u9009\u62E9\u4E00\u4E2A {0}","How to use .ccx file":"\u5982\u4F55\u4F7F\u7528 .ccx \u6587\u4EF6","1. If you have installed Adobe Creative Cloud":"1. \u5982\u679C\u4F60\u5DF2\u7ECF\u5B89\u88C5\u4E86 Adobe Creative Cloud","Just double click the .ccx file, it will install the plugin automatically":"\u53CC\u51FB .ccx \u6587\u4EF6\uFF0C\u5B83\u4F1A\u81EA\u52A8\u5B89\u88C5","2. If you don't have Adobe Creative Cloud":"2. \u5982\u679C\u4F60\u6CA1\u6709 Adobe Creative Cloud","Rename .ccx to .zip and extract it into ":"\u5C06 .ccx \u91CD\u547D\u540D\u4E3A .zip \u5E76\u89E3\u538B\u5230",or:"\u6216","Photoshop directory":"Photoshop \u5B89\u88C5\u76EE\u5F55","Cannot connect multiple different document widgets with same value":"\u4E0D\u80FD\u8FDE\u63A5\u591A\u4E2A\u5177\u6709\u76F8\u540C\u503C\u7684\u6587\u6863\u5C0F\u90E8\u4EF6","You can only have one SDPPP Settings node in a workflow":"\u4E00\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u53EA\u80FD\u6709\u4E00\u4E2A SDPPP Settings \u8282\u70B9","convert widget {0} failed:":"\u63A7\u4EF6{0}\u8F6C\u6362\u5931\u8D25\uFF1A","hidden webview load failed: {0}, please select a browser page to continue":"\u5185\u7F6E webview \u52A0\u8F7D\u5931\u8D25: {0}\uFF0C\u8BF7\u9009\u62E9\u4E00\u4E2A\u6D4F\u89C8\u5668\u9875\u9762\u7EE7\u7EED","SDPPP Get Document":"\u83B7\u53D6\u6587\u6863(GetDocument)","SDPPP Get Layer By ID":"\u83B7\u53D6\u56FE\u5C42(GetLayer)","SDPPP Get Linked Layers":"\u83B7\u53D6\u94FE\u63A5\u56FE\u5C42(GetLinkedLayers)","SDPPP Get Layers In Group":"\u83B7\u53D6\u7EC4\u4E2D\u56FE\u5C42(GetLayersInGroup)","SDPPP Get Text From Layer":"\u83B7\u53D6\u56FE\u5C42\u6587\u672C(GetTextFromLayer)","SDPPP Parse Layer Info":"\u89E3\u6790\u56FE\u5C42\u4FE1\u606F(ParseLayerInfo)","SDPPP Get Selection":"\u83B7\u53D6\u9009\u533A(GetSelection)","SDPPP Get Image From Photoshop":"\u4ECEPS\u83B7\u53D6\u56FE\u50CF(GetImageFromPhotoshop)","SDPPP Send Images To Photoshop":"\u53D1\u9001\u56FE\u50CF\u5230PS(SendImagesToPhotoshop)","SDPPP Send Text To Layer":"\u53D1\u9001\u6587\u672C\u5230\u56FE\u5C42(SendTextToLayer)","SDPPP Select Layer And Run PS Action":"\u9009\u4E2D\u56FE\u5C42\u5E76\u8FD0\u884CPS Action(RunPhotoshopAction)","download PS plugin (.ccx)":"\u4E0B\u8F7D Photoshop \u63D2\u4EF6 (.ccx)","current ComfyUI pageid: {0}":"\u5F53\u524D ComfyUI \u9875\u9762ID: {0}","current A1111 pageid: {0}":"\u5F53\u524D A1111 \u9875\u9762ID: {0}","document linked":"\u6587\u6863\u53C2\u6570\u5DF2\u94FE\u63A5","layer linked":"\u56FE\u5C42\u53C2\u6570\u5DF2\u94FE\u63A5","bound linked":"\u8303\u56F4\u53C2\u6570\u5DF2\u94FE\u63A5",document:"\u6587\u6863",Document:"\u6587\u6863",DOCUMENT:"\u6587\u6863",document_name:"\u6587\u6863\u540D\u5B57id",layer_nameid:"\u56FE\u5C42\u540D\u5B57id",layer_name:"\u56FE\u5C42\u540D\u5B57",layer_info:"\u56FE\u5C42\u4FE1\u606F",bound_top:"\u8303\u56F4\u4E0A\u8FB9\u8DDD",bound_left:"\u8303\u56F4\u5DE6\u8FB9\u8DDD",bound_width:"\u8303\u56F4\u5BBD\u5EA6",bound_height:"\u8303\u56F4\u9AD8\u5EA6",center_x:"\u4E2D\u5FC3\u70B9x",center_y:"\u4E2D\u5FC3\u70B9y",opacity:"\u900F\u660E\u5EA6",layer:"\u56FE\u5C42",layer_or_group:"\u56FE\u5C42(\u6216\u7EC4)",Layer_or_group:"\u56FE\u5C42(\u6216\u7EC4)",bound:"\u8303\u56F4",bounds:"\u8303\u56F4","bounds [optional]":"\u8303\u56F4[\u53EF\u9009]",boundary:"\u8303\u56F4",Boundary:"\u8303\u56F4",canvas_boundary:"\u753B\u5E03\u8303\u56F4",canvas_bound:"\u753B\u5E03\u8303\u56F4",layer_boundary:"\u56FE\u5C42\u8303\u56F4",layer_bound:"\u56FE\u5C42\u8303\u56F4","Photoshop Disconnected!":"Photoshop \u672A\u8FDE\u63A5\uFF01",rgb_out:"RGB\u8F93\u51FA",alpha_out:"Alpha\u8F93\u51FA",images:"\u56FE\u50CF",text:"\u6587\u672C",ID_mode:"\u7CBE\u786EID\u6A21\u5F0F",name_mode:"\u540D\u5B57\u5339\u914D\u6A21\u5F0F",select:"\u9009\u62E9","document boundary":"\u6587\u6863\u8303\u56F4","layer boundary":"\u56FE\u5C42\u8303\u56F4","selection boundary":"\u9009\u4E2D\u8303\u56F4","save .psd to this workflow":"\u4FDD\u5B58.psd\u5230\u8FD9\u4E2A\u5DE5\u4F5C\u6D41","extract saved .psd to Photoshop":"\u63D0\u53D6\u4FDD\u5B58\u7684.psd\u5230Photoshop","sample .psd":"\u793A\u4F8B.psd",mask:"\u906E\u7F69",name:"\u540D\u79F0",quality:"\u56FE\u50CF\u8D28\u91CF",action_set:"\u52A8\u4F5C\u7EC4",action:"\u52A8\u4F5C",Runner:"\u8FD0\u884C\u8F7D\u4F53","PS Webview":"PS \u5185\u7F6E\u7F51\u9875","Browser {0}":"\u6D4F\u89C8\u5668\u9875\u9762 {0}",timeout:"\u8D85\u65F6","Loading...":"\u52A0\u8F7D\u4E2D...","--multi-user Not Login!":"--multi-user\u5DF2\u6FC0\u6D3B\uFF0C\u4F46\u672A\u767B\u5F55\uFF01",Logout:"\u767B\u51FA","User: ":"\u7528\u6237: ",connect:"\u8FDE\u63A5",connected:"\u5DF2\u8FDE\u63A5",disconnect:"\u65AD\u5F00",disconnected:"\u5DF2\u65AD\u5F00\u8FDE\u63A5","reconnecting...":"\u91CD\u8FDE\u4E2D...",connecting:"\u8FDE\u63A5\u4E2D",webpages:"\u7F51\u9875\u5217\u8868",workflows:"\u5DE5\u4F5C\u6D41",workflow:"\u5DE5\u4F5C\u6D41","auto run page [{0}] after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u9875\u9762 {0}..","auto run workflow [{0}] after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41 {0}..","auto run workflow after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41..",selection_only:"\u4EC5\u9009\u533A","Queue:":"\u961F\u5217:","Set As:":"\u8BBE\u7F6E\u4E3A:","Error {0}... please contact me via Discord/Github":"\u51FA\u73B0\u9519\u8BEF {0}...\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211","Webview initialize failed. Please report to me via Discord/Github with your ComfyURL, Operate System":"Webview \u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211\u5E76\u9644\u4E0A\u4F60\u7684Comfy\u5730\u5740\u3001\u64CD\u4F5C\u7CFB\u7EDF","ComfyUI with --multi-user is only available for sponsors":'\u5E26"--multi-user"\u7684ComfyUI\u4EC5\u5BF9\u8D5E\u52A9\u8005\u5F00\u653E',"Workflow Runner is loading...":"\u8FD0\u884C\u8F7D\u4F53\u5C1A\u5728\u52A0\u8F7D...","(Page ID: {0})Queue: {1}":"(\u9875\u9762ID: {0}) \u961F\u5217\u957F\u5EA6 {1}","no suitable node to control in this workflow":"\u8FD9\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u6CA1\u6709\u80FD\u63A7\u5236\u7684\u8282\u70B9",Save:"\u4FDD\u5B58",Edit:"\u7F16\u8F91","Edit in ComfyUI":"\u5728 ComfyUI \u4E2D\u7F16\u8F91","using browser page [{0}] for workflow running":"\u6B63\u63A5\u7BA1\u7F51\u9875 [{0}] \u8FD0\u884C\u5DE5\u4F5C\u6D41","workflow running by hidden webview":"\u5DE5\u4F5C\u6D41\u5728\u9690\u85CF\u7684webview\u4E2D\u8FD0\u884C","Lock Image":"\u9501\u5B9A\u56FE\u50CF","Unlock Image":"\u89E3\u9501\u56FE\u50CF","search...":"\u641C\u7D22...","disabled when running in browser page":"\u63A5\u7BA1\u7F51\u9875\u65F6\u4E0D\u53EF\u7528","only supported in Photoshop":"\u4EC5\u5728 Photoshop \u4E2D\u652F\u6301",Login:"\u767B\u5F55","Invitation Code":"\u9080\u8BF7\u7801",Username:"\u7528\u6237\u540D",Password:"\u5BC6\u7801","Please input invitation code":"\u8BF7\u8F93\u5165\u9080\u8BF7\u7801","Please input username":"\u8BF7\u8F93\u5165\u7528\u6237\u540D","Please input password":"\u8BF7\u8F93\u5165\u5BC6\u7801","Open more ComfyUI pages to see more options here":"\u6253\u5F00\u66F4\u591A ComfyUI \u9875\u9762\u4EE5\u67E5\u770B\u66F4\u591A\u9009\u9879","Comfy multi-user: ":"Comfy \u591A\u7528\u6237: ","Not Login":"\u672A\u767B\u5F55","Comfy API-Key: ":"Comfy API-Key: ","Login/Auth":"\u767B\u5F55/\u8BA4\u8BC1","Logged in by email/password":"\u5DF2\u901A\u8FC7\u90AE\u7BB1/\u5BC6\u7801\u767B\u5F55","Set API Key":"\u8BBE\u7F6E API Key","Please input API key (will reload Runner)":"\u8BF7\u8F93\u5165 API Key (\u4F1A\u91CD\u542F\u8FD0\u884C\u8F7D\u4F53)","### Active Workflow ###":"### \u5F53\u524D\u5DE5\u4F5C\u6D41 ###","### Example SDXL ###":"### \u793A\u4F8BSDXL\u5DE5\u4F5C\u6D41 ###","Open ComfyUI in the browser to see more options":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00 ComfyUI \u4EE5\u5F97\u5230\u66F4\u591A\u9009\u9879","Webview load timeout, please switch to a different runner":"Webview \u52A0\u8F7D\u8D85\u65F6\uFF0C\u8BF7\u5207\u6362\u5230\u5176\u4ED6\u8FD0\u884C\u8F7D\u4F53","Save workflow to ComfyUI":"\u4FDD\u5B58\u5DE5\u4F5C\u6D41\u5230 ComfyUI","Reload workflow":"\u91CD\u65B0\u52A0\u8F7D\u5DE5\u4F5C\u6D41","Stop and cancel all":"\u505C\u6B62\u5E76\u53D6\u6D88\u6240\u6709","Start auto running after change":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C","Stop auto run":"\u505C\u6B62\u81EA\u52A8\u8FD0\u884C","Run workflow":"\u8FD0\u884C\u5DE5\u4F5C\u6D41","Run workflow xN":"\u8FD0\u884C\u5DE5\u4F5C\u6D41N\u6B21","Back to workflow list":"\u8FD4\u56DE\u5DE5\u4F5C\u6D41\u5217\u8868","502: Maybe the server is not running":"502: \u670D\u52A1\u5668\u53EF\u80FD\u672A\u8FD0\u884C","404: Maybe SDPPP is not installed or failed to run in ComfyUI":"404: \u53EF\u80FD\u5728ComfyUI\u4E2DSDPPP\u672A\u5B89\u88C5\u6216\u8FD0\u884C\u5931\u8D25","{0}. reconnecting...":"{0}. \u91CD\u8FDE\u4E2D...","disconnected to {0} failed {1}":"\u65AD\u5F00\u8FDE\u63A5 {0} \u9519\u8BEF {1}","version mismatch, please reinstall PS plugin":"\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u91CD\u65B0\u5B89\u88C5 PS \u63D2\u4EF6","instance type not recognized":"\u672A\u8BC6\u522B\u7684\u8F6F\u4EF6\u7C7B\u578B","Error: {0}":"\u9519\u8BEF: {0}","Verification Error":"\u9A8C\u8BC1\u9519\u8BEF","document {0} not found":"\u627E\u4E0D\u5230\u6587\u6863: {0}",'only layer kind "TEXT" is supported, invalid layer: {0}':"\u4E0D\u652F\u6301\u975E\u6587\u672C\u56FE\u5C42: {0}","create layer failed":"\u521B\u5EFA\u56FE\u5C42\u5931\u8D25","layer not found {0}":"\u627E\u4E0D\u5230\u56FE\u5C42: {0}","no linked layer for {0}":"\u6CA1\u6709\u94FE\u63A5\u56FE\u5C42: {0}","layer {0} is not a group":"\u56FE\u5C42 {0} \u4E0D\u662F\u4E00\u4E2A\u7EC4","no layer in group {0}":"\u7EC4 {0} \u4E2D\u6CA1\u6709\u56FE\u5C42","layer not found: {0}":"\u627E\u4E0D\u5230\u56FE\u5C42: {0}","No upload_name":"\u4E0A\u4F20\u63A5\u53E3\u8FD4\u56DE\u4E86\u5931\u8D25","get pixel of {0} failed":"\u83B7\u53D6\u50CF\u7D20\u5931\u8D25: {0}","merge group failed":"\u5408\u5E76\u7EC4\u5931\u8D25","invalid name: {0}":"\u975E\u6CD5\u7684\u540D\u79F0: {0}","get_layer_info: layer_identify required":"get_layer_info: \u9700\u8981 layer_identify","invalid action: {0}":"\u65E0\u6548\u7684\u64CD\u4F5C: {0}","create document failed":"\u521B\u5EFA\u6587\u6863\u5931\u8D25","create document for preview":"\u521B\u5EFA\u9884\u89C8\u6587\u6863","resize document for preview":"\u8C03\u6574\u9884\u89C8\u6587\u6863\u5C3A\u5BF8","no first related layer in {0}":"\u7EC4 {0} \u4E2D\u6CA1\u6709\u7B2C\u4E00\u4E2A\u76F8\u5173\u56FE\u5C42","imageDataError: data length is not multiple of width * height":"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: \u6570\u636E\u957F\u5EA6\u4E0D\u662F\u5BBD\u5EA6 * \u9AD8\u5EA6\u7684\u500D\u6570","imageDataError: originComponents must be 1 or 3":"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: originComponents \u5FC5\u987B\u662F 1 \u6216 3","unexpected connection lost, please try to reconnect":"\u610F\u5916\u65AD\u5F00\u8FDE\u63A5\uFF0C\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u8FDE\u63A5","Workflow list is empty, please save a workflow by Comfy's lastest UI":"\u5DE5\u4F5C\u6D41\u5217\u8868\u4E3A\u7A7A\uFF0C\u8BF7\u5728Comfy\u7684\u65B0\u7248UI\u4E2D\u4FDD\u5B58\u4E00\u4E2A\u5DE5\u4F5C\u6D41","No opened ComfyUI pages":"\u6CA1\u6709\u5DF2\u6253\u5F00\u7684ComfyUI\u9875\u9762","comfyAPI is not initialized, maybe comfyUI is too old":"\u65E0\u6CD5\u83B7\u53D6 ComfyAPI\uFF0C\u53EF\u80FD ComfyUI \u7248\u672C\u592A\u65E7","unsupported channel counts: {0}":"\u4E0D\u652F\u6301\u7684\u901A\u9053\u6570: {0}","Timeout, Maybe the URL is wrong":"\u8D85\u65F6\uFF0C\u53EF\u80FD comfy\u5730\u5740 \u586B\u5199\u9519\u8BEF","Workflow list loading failed: {0}":"\u5DE5\u4F5C\u6D41\u5217\u8868\u52A0\u8F7D\u5931\u8D25: {0}","Please register a user in ComfyUI":"\u8BF7\u5728 ComfyUI \u4E2D\u6CE8\u518C\u4E00\u4E2A\u7528\u6237","GetSelection need Photoshop version 25+":"GetSelection \u9700\u8981 Photoshop 25+ \u7248\u672C","Action {0} not found":"Action {0} \u672A\u627E\u5230","Action set {0} not found":"ActionSet {0} \u672A\u627E\u5230","{0} cannot be used in Photoshop Action Node":"{0} \u4E0D\u80FD\u5728 Photoshop Action \u8282\u70B9\u4E2D\u4F7F\u7528","Group layers":"\u56FE\u5C42\u7EC4","Show All Groups":"\u663E\u793A\u6240\u6709\u7EC4","create document for sent images":"\u7ED9\u53D1\u9001\u7684\u56FE\u7247\u521B\u5EFA\u6587\u6863","show sent images":"\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247","fallback show sent images":"\u53D6\u6D88\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247","get content of layer {0}":"\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9","fallback get content of layer {0}":"\u53D6\u6D88\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9","get layer info":"\u83B7\u53D6\u56FE\u5C42\u4FE1\u606F","sdppp extract PSD":"sdppp \u5BFC\u5165 PSD","sdppp get PSD":"sdppp \u83B7\u53D6 PSD","set text to layer":"\u8BBE\u7F6E\u56FE\u5C42\u7684\u6587\u672C","run Photoshop Action":"sdppp \u8FD0\u884C Photoshop Action","select layer":"sdppp \u9009\u4E2D\u56FE\u5C42","{0} wants to extract a PSD file to Photoshop, are you sure?":"{0} \u60F3\u8981\u91CA\u653E\u4E00\u4E2A.psd\u6587\u4EF6\u5230Photoshop\uFF0C\u786E\u5B9A\u5417\uFF1F","should sdppp refuse extracting PSD to Photoshop in this session anymore?":"\u662F\u5426\u8981\u8BA9 sdppp \u62D2\u7EDD\u672C\u6B21PS\u4F1A\u8BDD\u518D\u6B21\u63A5\u53D7.psd\u91CA\u653E\u8BF7\u6C42\uFF1F","Wide Mode":"\u5BBD\u5C4F\u6A21\u5F0F","Quick Set":"\u5FEB\u901F\u8BBE\u7F6E","Selected Layer":"\u9009\u4E2D\u56FE\u5C42","Selected Layer (invert)":"\u9009\u4E2D\u56FE\u5C42(\u53CD\u5411)",Canvas:"\u753B\u5E03",Selection:"\u9009\u533A",Manual:"\u624B\u52A8\u6A21\u5F0F",Auto:"\u81EA\u52A8\u6A21\u5F0F","This plugin is based on sd-ppp":"\u672C\u63D2\u4EF6\u57FA\u4E8Esd-ppp\u5F00\u53D1","And follows its open source license:":"\u5E76\u9075\u5FAA\u5176\u5F00\u6E90\u534F\u8BAE\uFF1A",Cloud:"\u4E91\u7AEF\u63A8\u8350",Sponsors:"\u8D5E\u52A9","waiting...":"\u865A\u4F4D\u4EE5\u5F85",Links:"\u53CB\u60C5\u94FE\u63A5",Community:"\u793E\u533A","LICENSE:":"\u8BB8\u53EF\u8BC1\uFF1A","Official Site":"\u5B98\u65B9\u7F51\u7AD9",upload:"\u4E0A\u4F20","Simplify Workflow":"\u7B80\u5316\u5DE5\u4F5C\u6D41",Photoshop:"Photoshop","Photoshop plugin settings":"Photoshop \u63D2\u4EF6\u8BBE\u7F6E","Photoshop plugin":"Photoshop \u63D2\u4EF6","SDPPP Settings/Misc":"SDPPP \u8BBE\u7F6E/\u6742\u9879","Sample .PSD for this workflow:":"\u793A\u4F8B.PSD","Download Example .PSD":"\u4E0B\u8F7D\u793A\u4F8B.PSD","Maximum Image Size (px):":"\u6700\u5927\u56FE\u50CF\u5C3A\u5BF8(px)",Download:"\u4E0B\u8F7D",Upload:"\u4E0A\u4F20",Reset:"\u91CD\u7F6E",Refresh:"\u5237\u65B0","Comfy URL (You can copy it to connect ComfyUI in the plugin):":"Comfy\u5730\u5740(\u4F60\u53EF\u4EE5\u590D\u5236\u5B83\u5230\u63D2\u4EF6\u4E2D\u8FDE\u63A5ComfyUI):","use slider for number widget:":"\u6570\u5B57\u63A7\u4EF6\u4F7F\u7528\u6ED1\u5757","Photoshop is not connected":"Photoshop \u672A\u8FDE\u63A5","select...":"\u8BF7\u9009\u62E9","click to edit":"\u70B9\u51FB\u7F16\u8F91","ComfyManager not found, cannot reboot":"Comfy Manager\u672A\u5B89\u88C5\uFF0C\u65E0\u6CD5\u91CD\u542F","Failed to reboot ComfyUI":"\u91CD\u542FComfyUI\u5931\u8D25"};var No=typeof O<"u"?O:void 0,Yt="en";typeof navigator<"u"&&navigator.language?Yt=navigator.language=="zh-CN"?"zhcn":"en":No&&(Yt=No("uxp").host.uiLocale.startsWith("zh")?"zhcn":"en");function h(e,...t){let r=Yt=="zhcn"?qr[e]:e in Gr?Gr[e]:e;if(!r)throw new Error(`i18n key not found: ${e}`);return r.replace(/{(\d+)}/g,function(o,n){return typeof t[n]<"u"?t[n]:o})}function je(e,t){return e==t||qr[e]==t}function $e(){return Yt}var C=class e{static SPECIAL_DOCUMENT_CURRENT="### Active Document ###";static is_SPECIAL_DOCUMENT_CURRENT(t){return je(this.SPECIAL_DOCUMENT_CURRENT,t)}static get_SPECIAL_DOCUMENT_CURRENT(){return h(this.SPECIAL_DOCUMENT_CURRENT)}static SPECIAL_LAYER_KEEP_SIZE="### Keep Size or Fit Canvas ###";static is_SPECIAL_LAYER_FIT(t){return je(this.SPECIAL_LAYER_KEEP_SIZE,t)}static get_SPECIAL_LAYER_FIT(){return h(this.SPECIAL_LAYER_KEEP_SIZE)}static SPECIAL_LAYER_USE_CANVAS="### The Canvas ###";static is_SPECIAL_LAYER_USE_CANVAS(t){return je(this.SPECIAL_LAYER_USE_CANVAS,t)}static get_SPECIAL_LAYER_USE_CANVAS(){return h(this.SPECIAL_LAYER_USE_CANVAS)}static SPECIAL_LAYER_NEW_LAYER="### New Layer ###";static is_SPECIAL_LAYER_NEW_LAYER(t){return je(this.SPECIAL_LAYER_NEW_LAYER,t)}static get_SPECIAL_LAYER_NEW_LAYER(){return h(this.SPECIAL_LAYER_NEW_LAYER)}static SPECIAL_LAYER_SELECTED_LAYER="### Selected Layer ###";static is_SPECIAL_LAYER_SELECTED_LAYER(t){return je(this.SPECIAL_LAYER_SELECTED_LAYER,t)}static get_SPECIAL_LAYER_SELECTED_LAYER(){return h(this.SPECIAL_LAYER_SELECTED_LAYER)}static SPECIAL_LAYER_PREVIEW_DOCUMENT="_SDPPP_PSD_";static is_SPECIAL_LAYER_PREVIEW_DOCUMENT(t){return je(this.SPECIAL_LAYER_PREVIEW_DOCUMENT,t)}static get_SPECIAL_LAYER_PREVIEW_DOCUMENT(){return h(this.SPECIAL_LAYER_PREVIEW_DOCUMENT)}static getSpecialDocumentCurrent(){return h(e.SPECIAL_DOCUMENT_CURRENT)}static getSpecialLayerForGet(){return[h(e.SPECIAL_LAYER_USE_CANVAS),h(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialLayerForSend(){return[h(e.SPECIAL_LAYER_NEW_LAYER),h(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialDocumentForPreview(){return h(e.SPECIAL_LAYER_PREVIEW_DOCUMENT)}static fixI18n(t){return this.is_SPECIAL_DOCUMENT_CURRENT(t)?this.SPECIAL_DOCUMENT_CURRENT:this.is_SPECIAL_LAYER_NEW_LAYER(t)?this.SPECIAL_LAYER_NEW_LAYER:this.is_SPECIAL_LAYER_PREVIEW_DOCUMENT(t)?this.SPECIAL_LAYER_PREVIEW_DOCUMENT:this.is_SPECIAL_LAYER_USE_CANVAS(t)?this.SPECIAL_LAYER_USE_CANVAS:this.is_SPECIAL_LAYER_SELECTED_LAYER(t)?this.SPECIAL_LAYER_SELECTED_LAYER:t}};function Ce(e,t,r=0){return"-".repeat(r)+`${t} (id:${e})`}function Ae(e,t){return`${t} (id:${e})`}function Hi(e){let t=e.split(" (id:");return{name:t[0],id:parseInt(t[1].slice(0,-1))}}function Oo(e){return Hi(e)}function Je(){let e=Le.app.activeDocument?.activeLayers?.[0];return e?Ce(e.id,e.name):C.get_SPECIAL_LAYER_USE_CANVAS()}function Wo(e,t,r,o,n){let i=r.left,s=r.top,a=r.right,c=r.bottom,f=a-i,d=c-s,u=o.left,p=o.top,l=o.right,m=o.bottom,g=l-u,w=m-p,v=Math.max(i,u),y=Math.max(s,p),P=Math.min(a,l),I=Math.min(c,m),z=P-v,te=I-y,ae=g*w*n;if(t.length!==ae)throw new Error(`toImageDataArray.length(${t.length}) !== toLength(${ae})`);let k=z*te*n;if(e.length!==k)throw new Error(`fromImageDataArray.length(${e.length}) !== fromLength(${k})`);for(let q=0;q=i&&De=s&&Kt0?e.activeLayers[0].id:0:C.is_SPECIAL_LAYER_NEW_LAYER(t)?-2:Mo(t)}function Kr(e,t=0,r=""){return e?.layers?e.layers.reduce((o,n)=>{let i=t==0?`/${n.name}`:`${r}/${n.name}`;return o.push({layer:n,path:i,level:t}),o.concat(Kr(n,t+1,i))},[]):[]}function pe(e,t){if(!e.layers)return null;for(let r=0;rt.id==ji(e)))||null}function Uo(e,t){return{name:t.name,opacity:t.opacity/100,boundary:{left:t.bounds?.left||0,top:t.bounds?.top||0,right:e.width-(t.bounds?.right||0),bottom:e.height-(t.bounds?.bottom||0),width:t.bounds?.width||0,height:t.bounds?.height||0},isGroup:t.kind==Le.constants.LayerKind.GROUP}}function Fo(){let e=localStorage.getItem("sdppp_uid");return(!e||e.length!=3)&&(e=Ct(3),localStorage.setItem("sdppp_uid",e)),e}function Ct(e){let t="",r="abcdefghijklmnopqrstuvwxyz0123456789",o=r.length,n=0;for(;n{o[i]=r.bind(this,i),n.subscribe(t,o[i])})}unsubscribe(t){this.subscribers=this.subscribers.filter(([o,n])=>n!=t);let r=this.subscribersWithoutKey.get(t);r&&this.storeMap.forEach((o,n)=>{o.unsubscribe(r[n])})}addStore(t,r,o){let n=this.createStore(r,o);this.storeMap.set(t,n),this.subscribers.forEach(([i,s])=>{let a=this.subscribersWithoutKey.get(s);a||(a={},this.subscribersWithoutKey.set(s,a)),a[t]=s.bind(this,t),n.subscribe(i,a[t]),i=="/"&&s(t,r,null)})}removeStore(t){let r=this.storeMap.get(t);r&&(this.subscribers.forEach(([o,n])=>{let i=this.subscribersWithoutKey.get(n);i&&(r.unsubscribe(i[t]),o=="/"&&n(t,null,r.data))}),this.storeMap.delete(t))}sync(t){if(t instanceof Array){let r=Array.from(this.storeMap.keys()),o=t.filter(i=>!r.includes(i)),n=r.filter(i=>!t.includes(i));o.forEach(i=>this.addStore(i,{},0)),n.forEach(i=>this.removeStore(i))}else{Array.from(this.storeMap.keys()).filter(o=>!Object.keys(t).includes(o)).forEach(o=>this.removeStore(o));for(let o in t){let{data:n,version:i}=t[o];this.storeMap.has(o)?this.storeMap.get(o)?.sync(n,i):this.addStore(o,n,i)}}}};var zr={};Qr(zr,{JsonPatchError:()=>U,_areEquals:()=>At,applyOperation:()=>Xe,applyPatch:()=>at,applyReducer:()=>ts,deepClone:()=>Zi,getValueByPointer:()=>Ze,validate:()=>Vo,validator:()=>tr});var Ji=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var i in n)n.hasOwnProperty(i)&&(o[i]=n[i])},e(t,r)};return function(t,r){e(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),Xi=Object.prototype.hasOwnProperty;function Xt(e,t){return Xi.call(e,t)}function Zt(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r=48&&o<=57){t++;continue}return!1}return!0}function Ie(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function It(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Jt(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t0&&c[d-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&p===void 0&&(f[l]===void 0?p=c.slice(0,d).join("/"):d==u-1&&(p=t.path),p!==void 0&&m(t,0,e,p)),d++,Array.isArray(f)){if(l==="-")l=f.length;else{if(r&&!er(l))throw new U("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);er(l)&&(l=~~l)}if(d>=u){if(r&&t.op==="add"&&l>f.length)throw new U("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);var s=es[t.op].call(t,f,l,e);if(s.test===!1)throw new U("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return s}}else if(d>=u){var s=st[t.op].call(t,f,l,e);if(s.test===!1)throw new U("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return s}if(f=f[l],r&&d0)throw new U('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new U("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new U("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&Jt(e.value))throw new U("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r){if(e.op=="add"){var n=e.path.split("/").length,i=o.split("/").length;if(n!==i+1&&n!==i)throw new U("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==o)throw new U("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if(e.op==="move"||e.op==="copy"){var s={op:"_get",path:e.from,value:void 0},a=Vo([s],r);if(a&&a.name==="OPERATION_PATH_UNRESOLVABLE")throw new U("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}else throw new U("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r)}function Vo(e,t,r){try{if(!Array.isArray(e))throw new U("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)at(M(t),M(e),r||!0);else{r=r||tr;for(var o=0;orr,generate:()=>Hr,observe:()=>cs,unobserve:()=>as});var Yr=new WeakMap,rs=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),os=function(){function e(t,r){this.callback=t,this.observer=r}return e}();function ns(e){return Yr.get(e)}function is(e,t){return e.observers.get(t)}function ss(e,t){e.observers.delete(t.callback)}function as(e,t){t.unobserve()}function cs(e,t){var r=[],o,n=ns(e);if(!n)n=new rs(e),Yr.set(e,n);else{var i=is(n,t);o=i&&i.observer}if(o)return o;if(o={},n.value=M(e),t){o.callback=t,o.next=null;var s=function(){Hr(o)},a=function(){clearTimeout(o.next),o.next=setTimeout(s)};typeof window<"u"&&(window.addEventListener("mouseup",a),window.addEventListener("keyup",a),window.addEventListener("mousedown",a),window.addEventListener("keydown",a),window.addEventListener("change",a))}return o.patches=r,o.object=e,o.unobserve=function(){Hr(o),clearTimeout(o.next),ss(n,o),typeof window<"u"&&(window.removeEventListener("mouseup",a),window.removeEventListener("keyup",a),window.removeEventListener("mousedown",a),window.removeEventListener("keydown",a),window.removeEventListener("change",a))},n.observers.set(t,new os(t,o)),o}function Hr(e,t){t===void 0&&(t=!1);var r=Yr.get(e.object);jr(r.value,e.object,e.patches,"",t),e.patches.length&&at(r.value,e.patches);var o=e.patches;return o.length>0&&(e.patches=[],e.callback&&e.callback(o)),o}function jr(e,t,r,o,n){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var i=Zt(t),s=Zt(e),a=!1,c=!1,f=s.length-1;f>=0;f--){var d=s[f],u=e[d];if(Xt(t,d)&&!(t[d]===void 0&&u!==void 0&&Array.isArray(t)===!1)){var p=t[d];typeof u=="object"&&u!=null&&typeof p=="object"&&p!=null&&Array.isArray(u)===Array.isArray(p)?jr(u,p,r,o+"/"+Ie(d),n):u!==p&&(a=!0,n&&r.push({op:"test",path:o+"/"+Ie(d),value:M(u)}),r.push({op:"replace",path:o+"/"+Ie(d),value:M(p)}))}else Array.isArray(e)===Array.isArray(t)?(n&&r.push({op:"test",path:o+"/"+Ie(d),value:M(u)}),r.push({op:"remove",path:o+"/"+Ie(d)}),c=!0):(n&&r.push({op:"test",path:o,value:e}),r.push({op:"replace",path:o,value:t}),a=!0)}if(!(!c&&i.length==s.length))for(var f=0;fo!=t)}dispatch(t,r){let o=new Map;t.forEach(n=>{this.subscribers.forEach(([i,s])=>{n.path.startsWith(i)&&!o.has(i)&&o.set(i,JSON.stringify(i==="/"?r:Ze(r,i)))})}),o.forEach((n,i)=>{let s=i==="/"?this._data:Ze(this._data,i);n!==JSON.stringify(s)&&this.subscribers.filter(([a,c])=>a===i).forEach(([a,c])=>{let f={};try{f=c(s,JSON.parse(n||{}))}catch(d){console.error(d.stack||d.message||d)}f instanceof Promise&&f.catch(d=>{console.error(d.stack||d.message||d)})})})}};function T(e,t,r){return e.constructor[or]||(e.constructor[or]=[]),e.constructor[or].push(t),{value:function(...o){let n=M(this._data);r.value.apply(this,o);let i=rr(n,this._data);i.length!=0&&(this._mutationRecords.push(...i),this._version+=i.length,this.dispatch(i,n))}}}var et=class extends Jr{constructor(t){super(Object.assign({sid:"",ssid:""},t||{}))}setSID(t){this._data.sid=t,this._data.ssid=t.slice(0,4)}};x([T],et.prototype,"setSID",1);var me=class extends et{constructor(t,r){super(t||{uname:"",comfyUserToken:"",isLocal:!1,activeDocumentID:0,documents:{},actions:[],canvasStateID:0,selectionStateID:"",historyStateID:0}),this._version=r||0}setIsLocal(t){this._data.isLocal=t}setUName(t){this._data.uname="PS_"+t}setDocument(t,r){this._data.activeDocumentID=t,this._data.documents=r}setCanvasStateID(t){this._data.canvasStateID=t}setSelectionStateID(t){this._data.selectionStateID=t}setHistoryStateID(t){this._data.historyStateID=t}setComfyUserToken(t){this._data.comfyUserToken=t}setActions(t){this._data.actions=t}};x([T],me.prototype,"setIsLocal",1),x([T],me.prototype,"setUName",1),x([T],me.prototype,"setDocument",1),x([T],me.prototype,"setCanvasStateID",1),x([T],me.prototype,"setSelectionStateID",1),x([T],me.prototype,"setHistoryStateID",1),x([T],me.prototype,"setComfyUserToken",1),x([T],me.prototype,"setActions",1);var H=class extends et{constructor(t,r){super(t||{title:"",webviewFromSid:location.search.match(/webview_fromsid=([^&]+)/)?.[1]||"",progress:0,lastError:"",queueSize:0,executingNodeTitle:"",widgetTableStructure:{widgetTablePath:"",widgetTablePersisted:!1,widgetTableID:"",nodes:{},groups:{},nodeIndexes:[],extraOptions:{}},widgetTableValue:{},widgetTableErrors:{},useSliderForNumberWidget:!1,hasPSDNodes:!1,comfyUserToken:"",comfyOrgLoggedIn:!1,comfyOrgAPIKey:""}),this._version=r||0}setWebviewFromSid(t){this._data.webviewFromSid=t}setTitle(t){this._data.title=t}setProgress(t){this._data.progress=t}setLastError(t){this._data.lastError=t}setQueueSize(t){this._data.queueSize=t}setExecutingNodeTitle(t){this._data.executingNodeTitle=t}setWidgetTableStructure(t){this._data.widgetTableStructure=JSON.parse(JSON.stringify(t))}setWidgetTableValue(t){this._data.widgetTableValue=JSON.parse(JSON.stringify(t))}setWidgetTableErrors(t){this._data.widgetTableErrors=JSON.parse(JSON.stringify(t))}setHasPSDNodes(t){this._data.hasPSDNodes=t}setComfyUserToken(t){this._data.comfyUserToken=t}setComfyOrgLoggedIn(t){this._data.comfyOrgLoggedIn=t}setComfyOrgAPIKey(t){this._data.comfyOrgAPIKey=t}setUseSliderForNumberWidget(t){this._data.useSliderForNumberWidget=t}};x([T],H.prototype,"setWebviewFromSid",1),x([T],H.prototype,"setTitle",1),x([T],H.prototype,"setProgress",1),x([T],H.prototype,"setLastError",1),x([T],H.prototype,"setQueueSize",1),x([T],H.prototype,"setExecutingNodeTitle",1),x([T],H.prototype,"setWidgetTableStructure",1),x([T],H.prototype,"setWidgetTableValue",1),x([T],H.prototype,"setWidgetTableErrors",1),x([T],H.prototype,"setHasPSDNodes",1),x([T],H.prototype,"setComfyUserToken",1),x([T],H.prototype,"setComfyOrgLoggedIn",1),x([T],H.prototype,"setComfyOrgAPIKey",1),x([T],H.prototype,"setUseSliderForNumberWidget",1);var Xr=class extends $t{createStore(t,r){return new H(t,r)}},W=new Xr,D=new me;var Qo=e=>{let t,r=new Set,o=(f,d)=>{let u=typeof f=="function"?f(t):f;if(!Object.is(u,t)){let p=t;t=d??(typeof u!="object"||u===null)?u:Object.assign({},t,u),r.forEach(l=>l(t,p))}},n=()=>t,a={setState:o,getState:n,getInitialState:()=>c,subscribe:f=>(r.add(f),()=>r.delete(f))},c=t=e(o,n,a);return a},Go=e=>e?Qo(e):Qo;var Zr=b(E(),1);var us=e=>e;function ls(e,t=us){let r=Zr.default.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return Zr.default.useDebugValue(r),r}var Ko=e=>{let t=Go(e),r=o=>ls(t,o);return Object.assign(r,t),r},zo=e=>e?Ko(e):Ko;var _e=O("photoshop");var Y=zo((e,t)=>({canvasDirtyID:0,selectionDirtyID:0,layerDirtyIDs:new Map,documentCache:{},incrementCanvasDirtyID:()=>{e(r=>({canvasDirtyID:r.canvasDirtyID+1})),eo()},incrementLayerDirtyID:r=>{e(o=>{let n=o.layerDirtyIDs.get(r)||0,i=new Map(o.layerDirtyIDs);return i.set(r,n+1),{layerDirtyIDs:i}}),eo()},incrementSelectionDirtyID:()=>{e(r=>({selectionDirtyID:r.selectionDirtyID+1})),eo()},setDocuments:r=>{e({documentCache:r}),_e.app.activeDocument&&D.setDocument(_e.app.activeDocument.id,JSON.parse(JSON.stringify(r)))},clearCanvasDirtyID:()=>{e({canvasDirtyID:0})},clearLayerDirtyIDs:()=>{e({layerDirtyIDs:new Map})},clearSelectionDirtyID:()=>{e({selectionDirtyID:0})}}));function eo(){if(!_e.app.activeDocument)return;let e=Y.getState().documentCache[_e.app.activeDocument.id];if(e){let t={...e,dirtyID:Y.getState().canvasDirtyID,layers:e.layers.map(r=>{let o=Y.getState().layerDirtyIDs.get(r.id);return o!==void 0?{...r,dirtyID:o}:r})};Y.setState(r=>({documentCache:{...r.documentCache,[_e.app.activeDocument.id]:t}})),D.setDocument(_e.app.activeDocument.id,Y.getState().documentCache)}}function ct(){try{if(!_e.app.activeDocument)return;let e=_e.app.documents.reduce((t,r)=>{let o=Kr(r).map(n=>{let i=n.layer.id;return{level:n.level,id:i,name:n.layer.name,identify:Ce(i,n.layer.name,n.level),fullPath:n.path,dirtyID:Y.getState().layerDirtyIDs.get(i)||0}});return t[r.id]={name:r.name,id:r.id,identify:Ae(r.id,r.name),layers:o,canvasDirtyID:Y.getState().canvasDirtyID,selectionDirtyID:Y.getState().selectionDirtyID},t},{});Y.getState().setDocuments(e)}catch(e){console.error(e)}}function nr(){Y.getState().incrementCanvasDirtyID()}function Ne(e){Array.isArray(e)?e.forEach(t=>{Y.getState().incrementLayerDirtyID(t)}):Y.getState().incrementLayerDirtyID(e)}function Ho(){Y.getState().clearCanvasDirtyID(),Y.getState().clearLayerDirtyIDs(),ct()}function to(){Y.getState().incrementSelectionDirtyID()}(async()=>{D.setUName(Fo()),ct()})().catch(console.error);R.action.addNotificationListener(["historyStateChanged"],e=>{ds(),(e.commandID==5004||e.commandID==5002)&&(_t(),Ne(R.app.activeDocument?.activeLayers.map(t=>t.id)))});R.action.addNotificationListener(["toolModalStateChanged"],(e,t,...r)=>{t.state._value=="exit"&&t.kind._value=="paint"&&(_t(),Ne(R.app.activeDocument?.activeLayers.map(o=>o.id)))});R.action.addNotificationListener(["modalStateChanged"],(e,t)=>{t.state._value=="exit"&&(_t(),Ne(R.app.activeDocument?.activeLayers.map(r=>r.id)))});R.action.addNotificationListener(["show","hide","transform","fill","crop"],()=>{_t(),Ne(R.app.activeDocument?.activeLayers.map(e=>e.id))});R.action.addNotificationListener(["delete","move","copyToLayer"],()=>{ct(),_t(),Ne(R.app.activeDocument?.activeLayers.map(e=>e.id))});R.action.addNotificationListener(["newDocument","open","close","make","modalJavaScriptScopeExit"],()=>ct());function _t(){let e=R.app.activeDocument?.historyStates;e&&D.setCanvasStateID(e[e.length-1].id),nr()}function ds(){let e=R.app.activeDocument?.historyStates;e&&D.setHistoryStateID(e[e.length-1].id)}function Yo(){D.setSelectionStateID(jo+"_"+Lt+"_"+ir)}var Lt=R.app.activeDocument?.id,ir=R.app.activeDocument?.activeLayers.map(e=>e.id).join(","),jo=0;R.action.addNotificationListener(["set"],(e,t)=>{t._target[0]._property=="selection"&&(jo++,Yo(),to())});function $o(){let e=R.app.activeDocument?.activeLayers.map(r=>r.id).join(",");Lt!=R.app.activeDocument?.id&&Ho();let t=[];R.app.actionTree.forEach(r=>{r.actions.forEach(o=>{t.push(r.name+"/"+o.name)})}),(D.data.actions.length!=t.length||D.data.actions.some((r,o)=>r!=t[o]))&&D.setActions(t),Lt!=R.app.activeDocument?.id||ir!=e?(Lt=R.app.activeDocument?.id,ir=e,Yo(),to()):(Lt=R.app.activeDocument?.id,ir=e),requestAnimationFrame($o)}requestAnimationFrame($o);setInterval(()=>ct(),5e3);globalThis.sdpppX=globalThis.sdpppX||{};var N=globalThis.sdpppX;var tn=b(cr(),1),rn=[];N.getLogs=()=>rn;localStorage.setItem("debug","sdppp:*");tn.debug.log=(...e)=>{rn.push(e.join(" "))};var wt=b(E(),1);var F=b(E(),1);var _=b(E(),1);var cn=b(S(),1),sn=(0,_.createContext)(null);function an({children:e}){let t=Cs();return(0,_.useEffect)(()=>{window.addEventListener("message",o=>{o.data.action==="webview-connect"&&o.source?.postMessage({action:"webview-connect",payload:{webviewFromSid:D.data.sid}})});let r="";W.subscribe("/",(o,n,i)=>{n?.webviewFromSid==D.data.sid&&(t.setWebviewAgentSID(n?.sid),r||(r=n?.sid)),!n&&i.webviewFromSid==D.data.sid&&t.setWebviewAgentSID(r)})},[]),(0,cn.jsx)(sn.Provider,{value:{webviewAgentSID:t.webviewAgentSID,prevWebviewAgentSID:t.prevWebviewAgentSID,setWebviewAgentSID:t.setWebviewAgentSID,toggleWebviewDialog:t.toggleWebviewDialog,setSrc:t.setSrc,resetWebview:t.resetWebview,timeoutError:t.timeoutError,loadError:t.loadError},children:e})}function J(){let e=(0,_.useContext)(sn);if(!e)throw new Error("useSDPPPWebview must be used within a SDPPPWebviewProvider");return e}function Cs(){let[e,t]=(0,_.useState)(null),[r,o]=(0,_.useState)(null),[n,i]=(0,_.useState)(null),[s,a]=(0,_.useState)(!1),[c,f]=(0,_.useState)(""),[d,u]=(0,_.useState)(""),[p,l]=(0,_.useState)(""),[m,g]=(0,_.useState)(!1),[w,v]=(0,_.useState)(!1),y=(0,_.useRef)(null),[P,I]=(0,_.useState)("");(0,_.useEffect)(()=>{let q=()=>{a(!1),u(p),ae()};return n?.addEventListener("close",q),()=>{n?.removeEventListener("close",q)}},[n,p,u,a]),(0,_.useEffect)(()=>{l(d)},[d]),(0,_.useEffect)(()=>{Is(i,o);let q=nn();return t(q),y.current&&clearTimeout(y.current),g(!1),v(!1),y.current=setTimeout(()=>{g(!0)},5e3),q.addEventListener("loadstop",()=>{v(!0)}),q.addEventListener("loaderror",De=>{I(De.message||De.type)}),q.addEventListener("loadstart",()=>{I("")}),()=>{y.current&&clearTimeout(y.current),n?.parentElement?.removeChild(n)}},[]);let[z,te]=(0,_.useState)("");(0,_.useEffect)(()=>{c&&(te(c),z===c?ae():(e?.setAttribute("src",c),r?.setAttribute("src",c)))},[c]);let ae=(0,_.useCallback)(()=>{e?.parentElement?.removeChild(e),a(!1),n?.close();let q=nn();t(q);let De=c;f(""),te(""),setTimeout(()=>{f(De)},300)},[e,c]),k=(0,_.useCallback)(()=>{s?(n?.close(),a(!1)):(n?.show(),a(!0))},[n,s]);return{dialogShowing:s,toggleWebviewDialog:k,setSrc:f,webviewAgentSID:d,setWebviewAgentSID:u,prevWebviewAgentSID:p,setPrevWebviewAgentSID:l,resetWebview:ae,anyWebviewLoaded:w,timeoutError:(0,_.useMemo)(()=>m&&!w,[m,w]),loadError:P}}function Is(e,t){let r=document.createElement("dialog");r.className="sdppp-webview",r.style.padding="0",r.style.margin="0",r.style.width="1024px",r.style.height="768px",document.body.appendChild(r),e(r);let o=document.createElement("webview");return o.style.position="relative",o.style.width="1024px",o.style.height="768px",r.appendChild(o),t(o),r}var ke=null;function nn(){ke||(ke=document.createElement("div"),ke.style.position="absolute",ke.style.width="100px",ke.style.height="100px",ke.style.right="0",ke.style.bottom="-10000px",document.body.appendChild(ke));let e=document.createElement("webview");return e.style.width="100px",e.style.height="100px",ke?.appendChild(e),e}var pn=b(ln(),1);var dn="507";var fn=dn.trim();var ro=class{socket;constructor(t){let r="/"+[t.split("/").slice(3).filter(o=>o).join("/"),"sd-ppp/"].filter(o=>o).join("/");t=t.split("/").slice(0,3).join("/"),this.socket=(0,pn.io)(t,{transports:["websocket"],path:r,query:{api_level:fn},rejectUnauthorized:!1,autoConnect:!1}),this.socket.on("connect",()=>{this.socket.io.engine.binaryType="blob"})}get id(){return this.socket.id}connect(){this.socket.connect()}close(){this.socket.close()}};function mn(...e){return e.reduce((t,r)=>r(t),ro)}var ur=class{flushing=Promise.resolve();newFlushPending=!1;constructor(t){this.doFlush=t,this.pause()}doFlush;runFlush(){this.newFlushPending||(this.newFlushPending=!0,this.flushing=this.flushing.then(async()=>{await new Promise(t=>requestAnimationFrame(t)),this.newFlushPending=!1,await this.doFlush()}))}pause(){this.flushing=this.flushing.then(t=>new Promise(r=>{this.resume=r})).then(()=>{this.resume=()=>{}})}resume=()=>{}};function hn(e,t){return function(r){return class extends r{constructor(o){super(o),this.socket.on("store_request",(i,s)=>{s({data:e.data,version:e.version})});let n=new ur(async()=>{let{operations:i,fromVersion:s,toVersion:a}=e.flush();await new Promise(c=>{let f=!1;setTimeout(()=>{f||(console.warn("flush timeout"),c())},5e3),this.socket.emit("store_flush",{operations:i,fromVersion:s},d=>{f=!0,c(),d?.error?console.error("flush error",d.error):e.flushDone(a)})})});e.subscribe("/",()=>{n.runFlush()}),this.socket.on("disconnect",()=>{n.pause()}),this.socket.on("connect",()=>{e.setSID(this.socket.id||""),requestAnimationFrame(()=>{this.socket.emit("sdppp_init",{type:t,data:e.data,version:e.version})})}),this.socket.on("sdppp_inited",i=>{n.resume()})}}}}function gn(e,t){return function(r){return class extends r{constructor(o){super(o),this.socket.on("store_flush",n=>{if(n.type!==t)return;let i=e.getStore(n.sid);if(i)i.patchVersionAcceptable(n.fromVersion)?i.patchData(n.operations):(console.warn("patch version not acceptable from",n.fromVersion,"current version is",i.version),this.socket.emit("store_request",{type:t},s=>{e.sync(s)}));else return this.socket.emit("store_request",{sid:n.sid},s=>{e.addStore(s.sid,s.data,s.version)})}),this.socket.on("store_remove",n=>{e.removeStore(n.sid)}),this.socket.on("sdppp_inited",n=>{this.socket.emit("store_request",{type:t},i=>{e.sync(i)})})}}}}async function oo(e){let t=e.document_identify,r=B(t);if(!r)throw new Error(h("document {0} not found",t));let o=r.selection,n=o&&o.bounds?{left:o.bounds.left,top:o.bounds.top,right:r.width-o.bounds.right,bottom:r.height-o.bounds.bottom,width:o.bounds.width,height:o.bounds.height}:null,i={left:0,top:0,right:0,bottom:0,width:r.width,height:r.height};return{document_boundary:i,selection_boundary:n||i}}var Tt=O("photoshop");var xe=O("photoshop"),no=class{promise;restore;constructor(){this.restore=()=>{},this.promise=new Promise(t=>{this.restore=t})}add(t){this.promise.then(t)}};xe.core.setExecutionMode({enableErrorStacktraces:!0});var kt=Promise.resolve();async function V(e,t){let r=t.dontRecoverSelection||!1,o=new no,n=!1,i=[],s=[],a=t.commandName;r||(xe.app.activeDocument.activeLayers.forEach(u=>i.push(u)),t.document&&xe.app.activeDocument.id!=t.document.id&&t.document.activeLayers.forEach(u=>i.push(u)),s=i.map(u=>u.visible),o.add(()=>{i.forEach(u=>{u.selected||(u.selected=!0,n=!0)}),t.document==xe.app.activeDocument&&i.forEach((u,p)=>{u.visible=s[p]})}));let c=null;kt=kt.catch(u=>u).then(()=>new Promise(u=>{p();function p(){xe.core.isModal()?requestAnimationFrame(p):u()}})).then(()=>xe.core.executeAsModal(async function(u,...p){c=t.document?await u.hostControl.suspendHistory({documentID:t.document.id,name:a}):null,o.add(async()=>{await new Promise(requestAnimationFrame),n||c&&u.hostControl.resumeHistory(c)});try{let l=await e(o,u,...p);return o.restore(!0),l}catch(l){throw o.restore(!1),l}},{commandName:a,interactive:!0}));let f=null,d=null;try{await kt}catch(u){d=u}if(n&&(kt=xe.core.executeAsModal(async u=>{i.forEach((p,l)=>{p.visible=s[l]}),c&&u.hostControl.resumeHistory(c)},{commandName:a,interactive:!0}),await kt),d)throw d;return f}var ft=b(xt(),1),wn=b(cr(),1),As=(0,wn.default)("sdppp:getImage");function Ls(e,t){for(let r=0,o=e.length/4;r{i.dispose()}),{dataFromAPI:s,width:i.width,height:i.height}}async function xs(e,t,r){if(!t)return null;let o={documentID:e.id,sourceBounds:r,layerID:t.id},n=null;try{n=await Tt.imaging.getLayerMask(o)}catch(a){return console.warn(a),null}let i=n.imageData;if(!i)return null;let s=await i.getData({});return Promise.resolve().then(()=>{i.dispose()}),{dataFromAPI:s,width:i.width,height:i.height}}async function bn(e){let t=e.document_identify,r=B(t);if(!r)throw new Error(h("document {0} not found",t));let o=e.layer_identify,n=re(r,o);if(As("getJimpImage",o),e.boundary&&e.boundary.right+e.boundary.left+e.boundary.bottom+e.boundary.top+e.boundary.width+e.boundary.height!=r.width+r.height)throw new Error("The boundary is not for this document");let i=e.boundary?{left:e.boundary.left,top:e.boundary.top,right:r.width-e.boundary.right,bottom:r.height-e.boundary.bottom,width:e.boundary.width,height:e.boundary.height}:{left:0,top:0,right:r.width,bottom:r.height,width:r.width,height:r.height},s={pixelData:null,width:0,height:0},a=null,c,f,d={left:0,top:0,right:r.width,bottom:r.height},u=!1;if(await V(async m=>{let[g,w]=await jt(r,n);w&&(a=g),a!=null&&m.add(()=>{a.delete()}),[c,f]=await Promise.all([ks(r,g,i),xs(r,g,i)]),d=g?.bounds??d,u=!1,g?u=g.transparentPixelsLocked:C.is_SPECIAL_LAYER_USE_CANVAS(o)&&(u=r.layers.every(v=>v.transparentPixelsLocked))},{commandName:h("get content of layer {0}",o),document:r}),!c)throw new Error(h("get pixel of {0} failed",o));c=lr(c),u&&(c=_s(c)),s.pixelData=dr(c,d,i);let p=null;return f&&(f=lr(f),p=dr(f,d,i,1)),s.pixelData=Ls(s.pixelData,p),s.width=i.width,s.height=i.height,new ft.Jimp({data:Buffer.from(s.pixelData),width:i.width,height:i.height})}async function vn(e){let t=await bn(e),r=t.bitmap.width,o=t.bitmap.height,n=new Uint8Array(r*o);for(let a=0;a{let i=null,s=e.layer_identify,a=!1;if(e.layer_identify){s=e.layer_identify;let c=re(r,s);if(C.is_SPECIAL_LAYER_USE_CANVAS(s))return o={name:"",opacity:1,boundary:{left:0,right:0,top:0,bottom:0,width:r.width,height:r.height},isGroup:!0,identify:s},o;[i,a]=await jt(r,c),n.add(()=>{i&&a&&i.delete()})}if(!i)throw new Error(h("layer not found: {0}",e.layer_identify));o=Object.assign({isGroup:a,identify:s||""},Uo(r,i))},{commandName:h("get layer info"),document:r}),o}var pr=O("photoshop");async function io(e,t,r){let o=e.select||"all",n=e.document_identify,i=B(n);if(!i)throw new Error(h("document {0} not found",n));let s=e.layer_identifies,a=await Promise.all(s.map(async f=>{let d=re(i,f);if(C.is_SPECIAL_LAYER_USE_CANVAS(f))throw new Error(h("layer not found: {0}",f));let u=pe(i,d);if(!u)throw new Error(h("layer not found {0}",f));r(u);let p=t(u);if(o==="first"&&p.length===0)throw new Error(h("no first related layer in {0}",f));let l=p.filter((m,g)=>o==="first"?g===0:o==="text"?m.kind===pr.constants.LayerKind.TEXT:o==="image"?m.kind===pr.constants.LayerKind.NORMAL:!0).map(m=>Ce(m.id,m.name));return{layer_identifies:l,layer_infos:await Promise.all(l.map(m=>Rt({document_identify:n,layer_identify:m})))}})),c={layer_identifies:[],layer_boundaries:[],layer_infos:[]};return a.forEach(({layer_identifies:f,layer_infos:d})=>{c.layer_identifies.push(...f),c.layer_boundaries.push(...d.map(u=>u.boundary)),c.layer_infos.push(...d)}),c}async function so(e){return io(e,t=>t.layers||[],t=>{if(t.kind!=pr.constants.LayerKind.GROUP)throw new Error(h("layer {0} is not a group",t.name));if(!t.layers)throw new Error(h("layer {0} is not a group",t.name))})}async function ao(e){return io(e,t=>t.linkedLayers||[],t=>{if(!t.linkedLayers)throw new Error(h("no linked layer for {0}",t.name))})}var Sn=O("photoshop"),Pn=O("uxp");async function Ts(e,t){let r={documentID:e.id,sourceBounds:t},n=(await Sn.imaging.getSelection(r)).imageData,i=await n.getData({});return Promise.resolve().then(()=>{n.dispose()}),{dataFromAPI:i,width:n.width,height:n.height}}async function Nt(e){let t=e.document_identify,r=B(t);if(!r)throw new Error(h("document {0} not found",t));let o=parseInt(Pn.host.version.split(".")[0]);if(!isNaN(o)&&o<25)throw new Error(h("GetSelection need Photoshop version 25+"));let n=e.boundary?{left:e.boundary.left,top:e.boundary.top,right:r.width-e.boundary.right,bottom:r.height-e.boundary.bottom,width:e.boundary.width,height:e.boundary.height}:{left:0,top:0,right:r.width,bottom:r.height,width:r.width,height:r.height};if(!r.selection?.bounds){let s=new Uint8Array(n.width*n.height);return s.fill(255),{blob:s,width:n.width,height:n.height}}let i=null;return await V(async s=>{let a=await Ts(r,n);a=lr(a);let c=r.selection.bounds||{left:0,top:0,right:r.width,bottom:r.height};i=a&&dr(a,c,n,1)},{document:r,commandName:"SDPPP getSelection"}),{blob:i,width:n.width,height:n.height}}var he=O("photoshop");async function co(e){let{identifier:t}=e;if(C.is_SPECIAL_DOCUMENT_CURRENT(t)){if(!he.app.activeDocument){if(e.width&&e.height){let r=await Rs(e.width,e.height);if(r)return{value:Ae(r.id,r.name)}}throw new Error(h("document {0} not found",t))}return{value:Ae(he.app.activeDocument.id,he.app.activeDocument.name)}}else if(C.is_SPECIAL_LAYER_SELECTED_LAYER(t)){if(!he.app.activeDocument)return{error:h("document {0} not found","current")};let r=he.app.activeDocument.activeLayers[0];return r?{value:Ce(r.id,r.name)}:{error:h("layer not found {0}",t)}}}async function Rs(e,t){if(he.app.activeDocument)return he.app.activeDocument;let r=null;return await V(async()=>{r=await he.app.createDocument({width:e,height:t,resolution:72,mode:he.constants.NewDocumentMode.RGB,fill:he.constants.DocumentFill.TRANSPARENT})},{document:null,commandName:h("create document for sent images")}),r}var Dn=O("photoshop");async function uo(e){let t=e.document_identify,r=B(t);if(!r)throw new Error(h("document {0} not found",t));let o=e.layer_identify,n=re(r,o),i={text:""},s=pe(r,n);if(!s||s.kind!=Dn.constants.LayerKind.TEXT)throw new Error(h('only layer kind "TEXT" is supported, invalid layer: {0}',o));return i.text=s.textItem.contents,{text:i.text}}var ce=O("photoshop"),pt=O("uxp");var mr=0,Cn=0,Ns=5e3;async function lo(e){let t=e.document_identify,r=t?B(t):null;if(e.action==="get"){let o;return await V(async function(n){if(r||(r=await Os()),!r)throw new Error(h("create document failed"));r=await r.duplicate(),n.add(async()=>{r?.close()});let s=await(await pt.storage.localFileSystem.getTemporaryFolder()).createEntry("sdppp.psd",{overwrite:!0});await r.saveAs.psd(s,{maximizeCompatibility:!1,typename:"PhotoshopSaveOptions"}),o=await s.read({format:pt.storage.formats.binary})},{commandName:h("sdppp get PSD"),document:r}),o?{data:o}:{error:"save Document failed"}}else if(e.action==="extract"){if(Date.now()-Cn2||!confirm(h("{0} wants to extract a PSD file to Photoshop, are you sure?",e.fromSSID))){mr++,mr==3&&(confirm(h("should sdppp refuse extracting PSD to Photoshop in this session anymore?"))||mr--);return}Cn=Date.now();let o=e.data;await V(async function(){if(r||(r=await ce.app.createDocument({width:512,height:512,resolution:72,mode:ce.constants.NewDocumentMode.RGB,fill:ce.constants.DocumentFill.TRANSPARENT})),!r)throw new Error(h("document {0} not found",t));ce.app.activeDocument=r,r.selection?.deselect();let n=await o.arrayBuffer(),s=await(await pt.storage.localFileSystem.getTemporaryFolder()).createEntry("sdppp.psd",{overwrite:!0});await s.write(n,{format:pt.storage.formats.binary});let a=pt.storage.localFileSystem.createSessionToken(s),c=await r.createLayer(ce.constants.LayerKind.NORMAL,{name:"sdppp"});if(!c)throw new Error(h("create layer failed"));c.move(r.layers[0],ce.constants.ElementPlacement.PLACEBEFORE),await ce.action.batchPlay([{_obj:"placeEvent",null:{_kind:"local",_path:a},freeTransformCenterState:{_enum:"quadCenterState",_value:"QCSAverage"},offset:{_obj:"offset",horizontal:{_unit:"pixelsUnit",_value:0},vertical:{_unit:"pixelsUnit",_value:0}}},{_obj:"placedLayerConvertToLayers"},{_obj:"ungroupLayersEvent",_target:[{_enum:"ordinal",_ref:"layer"}]}],{synchronousExecution:!0})},{commandName:h("sdppp extract PSD"),document:r,dontRecoverSelection:!0})}else throw new Error(h("invalid action: {0}",e.action))}async function Os(){return await ce.app.createDocument({width:512,height:512,resolution:72,mode:ce.constants.NewDocumentMode.RGB,fill:ce.constants.DocumentFill.TRANSPARENT})}var hr=O("photoshop");async function fo(e){let{action:t}=e,{document_identify:r,layer_identify:o}=e,[n,i]=t.split("/")||[],s=hr.app.actionTree.find(p=>p.name===n);if(!s)throw new Error(h("Action set {0} not found",n));let a=s.actions.find(p=>p.name===i);if(!a)throw new Error(h("Action {0} not found",i));let c=B(r);if(!c)throw new Error(h("document {0} not found",r));let f=c,d=re(f,o),u=pe(f,d);return u&&await V(async()=>{f.activeLayers.forEach(p=>{p.selected=!1}),u.selected=!0},{commandName:h("select layer"),dontRecoverSelection:!0,document:hr.app.activeDocument}),await V(async()=>{await a.play()},{commandName:h("run Photoshop Action"),document:hr.app.activeDocument}),{result:{success:!0}}}var gr=b(xt(),1),ue=O("photoshop");async function Ws(e,t){let r=ue.app.documents.find(o=>o.name==C.getSpecialDocumentForPreview());if(r)return(r.width{await r.resizeCanvas(Math.max(r.width,e),Math.max(r.height,t))},{document:null,commandName:h("resize document for preview")}),r;{let o=null;return await V(async()=>{o=await ue.app.createDocument({width:e,height:t,resolution:72,mode:ue.constants.NewDocumentMode.RGB,fill:ue.constants.DocumentFill.TRANSPARENT,name:C.getSpecialDocumentForPreview()})},{document:null,commandName:h("create document for preview")}),o}}var In=0;async function po(e){In++;let t=e.image_blobs?.length?e.image_blobs:null,r=e.image_urls?.length?e.image_urls:null,o=e.document_identify,n=e.layer_identifies,i=(await Promise.all((r||t||[]).map(async(l,m)=>{if(r)return await gr.Jimp.read(r[m]);if(t){if("pngData"in t[m])return await gr.Jimp.read(await t[m].pngData.arrayBuffer());{let g=t[m].buffer,w=g instanceof Blob?await g.arrayBuffer():g;return new gr.Jimp({data:Buffer.from(w),width:t[m].width,height:t[m].height})}}}))).filter(l=>l),s=B(o);if(C.is_SPECIAL_LAYER_PREVIEW_DOCUMENT(o)&&(s=await Ws(i[0].bitmap.width,i[0].bitmap.height)),!s)throw new Error(h("document {0} not found",o));let a=s,c=i.map((l,m)=>{if(e.boundaries&&e.boundaries[m])return{width:e.boundaries[m].width,height:e.boundaries[m].height,top:e.boundaries[m].top,left:e.boundaries[m].left};let g=1;return(l.bitmap.height>a.height||l.bitmap.width>a.width)&&(g=Math.min(a.height/l.bitmap.height,a.width/l.bitmap.width)),{width:l.bitmap.width*g,height:l.bitmap.height*g,top:(a.height-l.bitmap.height*g)/2,left:(a.width-l.bitmap.width*g)/2,bottom:(a.height-l.bitmap.height*g)/2,right:(a.width-l.bitmap.width*g)/2}});i.forEach((l,m)=>{let g=c[m];if(l.bitmap.width!=g.width||l.bitmap.height!=g.height){let w={w:g.width,h:g.height};l.resize(w)}});let f=await Promise.all(i.map(async l=>{let m=l.bitmap.data;if(a.bitsPerChannel=="bitDepth16"){let w=new Uint16Array(m.length);for(let v=0;v{let m=null;u=await Promise.all(i.map(async(g,w)=>{let v=n.length==1?n[0]:n[w];if(!C.is_SPECIAL_LAYER_NEW_LAYER(v)){let y=re(a,v);m=pe(a,y)}if(m&&m.kind!=ue.constants.LayerKind.GROUP)return m;{let y=e.new_layer_name||"SDPPP Images";typeof N.handleSendLayerName=="function"&&(y=await N.handleSendLayerName(y));let P=await a.createLayer(ue.constants.LayerKind.NORMAL,{name:`${y} ${In}${i.length>1?`_${w+1}`:""}`});if(!P)throw new Error(h("create layer failed"));return d.push(P),m?P.move(m,ue.constants.ElementPlacement.PLACEINSIDE):P.move(a.layers[0],ue.constants.ElementPlacement.PLACEBEFORE),P}})),d.length&&l.add(g=>{g?d.forEach((w,v)=>{w.selected=!1}):d.forEach(w=>w.delete())}),await Promise.all(u.map(async(g,w)=>{await ue.imaging.putPixels({documentID:a.id,layerID:g.id,replace:!1,imageData:f[w],targetBounds:c[w]})})),Ne(u.map(g=>g.id)),nr()},{commandName:h("show sent images"),document:a});let p=Y.getState();return{layers:u.map(l=>({identify:Ce(l.id,l.name),dirtyID:p.layerDirtyIDs.get(l.id)||0}))}}var En=O("photoshop");async function mo(e){let t=e.document_identify,r=B(t);if(!r)throw new Error(h("document {0} not found",t));let o=e.layer_identify,n=re(r,o),i=pe(r,n);if(!i||i.kind!=En.constants.LayerKind.TEXT)throw new Error(h('only layer kind "TEXT" is supported, invalid layer: {0}',o));let s=!1;return await V(async()=>{console.log(e.text),i.textItem.contents=e.text,s=!0},{document:r,commandName:h("set text to layer")}),{success:s}}function An(e){return class extends e{constructor(t){super(t),this.socket.on("B_photoshop",async(r,o)=>{let{action:n,params:i}=r,s;try{console.log("B_photoshop start",n);let a=Date.now();n==="psd"?s=await lo(i):n==="getImage"?s=await fr(i):n==="sendImages"?s=await po(i):n==="getSelection"?s=await Nt(i):n==="getText"?s=await uo(i):n==="sendText"?s=await mo(i):n==="getLayerInfo"?s=await Rt(i):n==="getDocumentInfo"?s=await oo(i):n==="getLinkedLayers"?s=await ao(i):n==="getLayersInGroup"?s=await so(i):n==="runPhotoshopActionOnLayer"?s=await fo(i):n==="getSpecialIdentifierValue"&&(s=await co(i));let c=Date.now();console.log("B_photoshop end",n,c-a)}catch(a){console.error(a),o({error:a.stack||a.message||a});return}o(s)})}async callForPSDExtract(t,r){return new Promise((o,n)=>{this.socket.emit("F_photoshop",{action:"extractPSD",sid:t,params:{from_sid:r.from_sid}},i=>{if(i.error)return n(new Error(i.error));o(i)})})}async uploadImage(t,r){return new Promise((o,n)=>{this.socket.emit("F_photoshop",{action:"uploadImage",sid:t,params:r},i=>{if(i.error)return n(new Error(i.error));o(i)})})}}}function Ln(e){return class extends e{constructor(t){super(t),this.socket.on("B_workflow",(r,o)=>{if(r.action=="getStoredWidgetValue"){let{widgetTableID:n,widgetTablePath:i,widgetTablePersisted:s}=r.params,a=`${n}_${i}_${s}`,c=Ms(a),f=[];c&&Object.keys(c||{}).forEach(d=>{Object.keys(c[d]||{}).forEach(u=>{f.push({nodeID:d,widgetIndex:u,value:c[d][u].value,outputType:c[d][u].outputType})})}),o({values:f})}})}async setNodeTitle(t,r,o){await new Promise((n,i)=>{this.socket.emit("F_workflow",{action:"setNodeTitle",sid:t,params:{node_id:r,title:o}},s=>{if(s?.error)return i(new Error(s.error));n(s)})})}async pageInstanceRun(t,r,o=1){await new Promise((n,i)=>{this.socket.emit("F_workflow",{action:"run",sid:t,params:{size:o,from_sid:r}},s=>{if(s?.error)return i(new Error(s.error));n(s)})})}async setWidgetValue(t,r){t&&await new Promise((o,n)=>{this.socket.emit("F_workflow",{action:"setWidgetValue",sid:t.data.sid,params:r},i=>{if(i?.error)return n(new Error(i.error));o(i)})})}async openWorkflow(t,r){t&&await new Promise((o,n)=>{this.socket.emit("F_workflow",{action:"open",sid:t.data.sid,params:r},i=>{if(i?.error)return n(new Error(i.error));o(i)})})}async saveWorkflow(t,r){t&&await new Promise((o,n)=>{this.socket.emit("F_workflow",{action:"save",sid:t.data.sid,params:r},i=>{if(i?.error)return n(new Error(i.error));o(i)})})}async listWorkflows(t,r){return t?await new Promise((o,n)=>{this.socket.emit("F_workflow",{action:"list",sid:t.data.sid,params:r},i=>{o(i)})}):{workflows:[],error:"Workflow agent not found"}}async logout(t){t&&await new Promise((r,o)=>{this.socket.emit("F_workflow",{action:"logout",sid:t.data.sid},n=>{if(n?.error)return o(new Error(n.error));r(n)})})}async interrupt(t){await new Promise((r,o)=>{this.socket.emit("F_workflow",{action:"interrupt",sid:t},n=>{r(n)})})}async clearQueue(t){await new Promise((r,o)=>{this.socket.emit("F_workflow",{action:"clearQueue",sid:t},n=>{r(n)})})}async reboot(t){return await new Promise((r,o)=>{this.socket.emit("F_workflow",{action:"reboot",sid:t},n=>{r(n)})})}async setComfyOrgAPIKey(t,r){return await new Promise((o,n)=>{this.socket.emit("F_workflow",{action:"setComfyOrgAPIKey",sid:t,params:{api_key:r}},i=>{o(i)})})}}}function Ms(e){let t=localStorage.getItem(`widgetValue_${e}`);return t?JSON.parse(t):null}var yr=class extends mn(hn(D,"photoshop"),gn(W,"comfy"),Ln,An){constructor(t,{setConnectState:r,setLastErrorMessage:o,setBackendURL:n,setComfyMultiUser:i}){super(t);let s=()=>{this.socket.active&&this.socket.connected?r("connected"):this.socket.active?r("connecting"):r("disconnected"),requestAnimationFrame(s)};requestAnimationFrame(s),this.socket.on("connect_error",async a=>{if(this.socket.active){let c=a.message;try{let f=new AbortController,d=setTimeout(()=>f.abort(),1500),u=await fetch((t+this.socket._opts.path).replace(/(?{n(t),a.multi_user&&i(a.multi_user)}),this.socket.on("disconnect",(...a)=>{i(!1),D.setComfyUserToken("")})}};var _n=b(cr(),1),Tn=b(S(),1),Us=(0,_n.debug)("sdppp:internal"),wr="http://127.0.0.1:8188",kn=(0,F.createContext)(null);function xn({children:e}){let{setSrc:t,webviewAgentSID:r,prevWebviewAgentSID:o}=J(),[n,i]=(0,F.useState)("disconnected"),[s,a]=(0,F.useState)(""),[c,f]=(0,F.useState)(localStorage.getItem("backendURL")||wr),[d,u]=(0,F.useState)(null),[p,l]=(0,F.useState)(""),[m,g]=(0,F.useState)(!1),[w,v]=(0,F.useState)(null),[y,P]=(0,F.useState)([]);function I(k){f(k.split("?")[0].split("#")[0].trim())}(0,F.useEffect)(()=>{localStorage.setItem("backendURL",c)},[c]),(0,F.useEffect)(()=>{if(n==="connected"){a(""),t(`${c}`);let k=!!(c.includes("localhost")||c.match(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/));Us("setBackendURL:",c,"src:",k),D.setIsLocal(k)}else t(""),l("")},[n]);function z(){if(n==="connected"||n==="connecting")w&&(w.close(),v(null));else try{let k=w;w||(k=new yr(c||wr,{setConnectState:i,setLastErrorMessage:a,setBackendURL:I,setComfyMultiUser:g}),v(k)),k.connect()}catch(k){a(k.stack||k.message||k)}}(0,F.useEffect)(()=>{let k=(q,De,Kt)=>{p&&(!De&&q==p||!(p in W.getAllStore()))&&l("")};return W.subscribe("/",k),()=>{W.unsubscribe(k)}},[p]),(0,F.useEffect)(()=>{!p&&r&&l(r)},[p,r]),(0,F.useEffect)(()=>{r&&(!p||p==o)&&l(r)},[r,o,p,l]);let[te,ae]=(0,F.useState)(null);return(0,F.useEffect)(()=>{ae(p?W.getAllStore()[p]:null)},[p]),(0,Tn.jsx)(kn.Provider,{value:{socket:w,backendURL:c,setBackendURL:I,connectState:n,doConnectOrDisconnect:z,lastErrorMessage:s,setLastErrorMessage:a,autoRunning:d,setAutoRunning:u,comfyMultiUser:m,setComfyMultiUser:g,workflowAgent:te,workflowAgentSID:p,setWorkflowAgentSID:l,beforeWorkflowRunHooks:y,setBeforeWorkflowRunHooks:P},children:e})}function A(){let e=(0,F.useContext)(kn);if(!e)throw new Error("useSDPPPInternalContext must be used within a SDPPPInternalContextProvider");return e}var Rn=b(E(),1);var Nn=b(S(),1),rt=class extends Rn.default.Component{state={hasError:!1,errorMessage:""};constructor(t){super(t)}static getDerivedStateFromError(t){return{hasError:!0,errorMessage:t.toString()}}componentDidCatch(t,r){console.log(t,r)}render(){return this.state.hasError?(0,Nn.jsx)("p",{className:"list-error-label",children:h("Error {0}... please contact me via Discord/Github",this.state.errorMessage)}):this.props.children}};var Oe=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};var We=typeof window>"u"||"Deno"in globalThis;function ne(){}function Mn(e,t){return typeof e=="function"?e(t):e}function Un(e){return typeof e=="number"&&e>=0&&e!==1/0}function Fn(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ot(e,t){return typeof e=="function"?e(t):e}function Bn(e,t){return typeof e=="function"?e(t):e}function go(e,t){let{type:r="all",exact:o,fetchStatus:n,predicate:i,queryKey:s,stale:a}=e;if(s){if(o){if(t.queryHash!==Wt(s,t.options))return!1}else if(!ht(t.queryKey,s))return!1}if(r!=="all"){let c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||n&&n!==t.state.fetchStatus||i&&!i(t))}function yo(e,t){let{exact:r,status:o,predicate:n,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(mt(t.options.mutationKey)!==mt(i))return!1}else if(!ht(t.options.mutationKey,i))return!1}return!(o&&t.state.status!==o||n&&!n(t))}function Wt(e,t){return(t?.queryKeyHashFn||mt)(e)}function mt(e){return JSON.stringify(e,(t,r)=>ho(r)?Object.keys(r).sort().reduce((o,n)=>(o[n]=r[n],o),{}):r)}function ht(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>ht(e[r],t[r])):!1}function Vn(e,t){if(e===t)return e;let r=On(e)&&On(t);if(r||ho(e)&&ho(t)){let o=r?e:Object.keys(e),n=o.length,i=r?t:Object.keys(t),s=i.length,a=r?[]:{},c=new Set(o),f=0;for(let d=0;d{setTimeout(t,e)})}function Gn(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?Vn(e,t):t}function qn(e,t,r=0){let o=[...e,t];return r&&o.length>r?o.slice(1):o}function Kn(e,t,r=0){let o=[t,...e];return r&&o.length>r?o.slice(0,-1):o}var Mt=Symbol();function br(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Mt?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Fs=class extends Oe{#e;#t;#r;constructor(){super(),this.#r=e=>{if(!We&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},vr=new Fs;var Bs=class extends Oe{#e=!0;#t;#r;constructor(){super(),this.#r=e=>{if(!We&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#e}},gt=new Bs;function zn(){let e,t,r=new Promise((n,i)=>{e=n,t=i});r.status="pending",r.catch(()=>{});function o(n){Object.assign(r,n),delete r.resolve,delete r.reject}return r.resolve=n=>{o({status:"fulfilled",value:n}),e(n)},r.reject=n=>{o({status:"rejected",reason:n}),t(n)},r}function Vs(e){return Math.min(1e3*2**e,3e4)}function wo(e){return(e??"online")==="online"?gt.isOnline():!0}var Hn=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Sr(e){return e instanceof Hn}function Pr(e){let t=!1,r=0,o=!1,n,i=zn(),s=g=>{o||(p(new Hn(g)),e.abort?.())},a=()=>{t=!0},c=()=>{t=!1},f=()=>vr.isFocused()&&(e.networkMode==="always"||gt.isOnline())&&e.canRun(),d=()=>wo(e.networkMode)&&e.canRun(),u=g=>{o||(o=!0,e.onSuccess?.(g),n?.(),i.resolve(g))},p=g=>{o||(o=!0,e.onError?.(g),n?.(),i.reject(g))},l=()=>new Promise(g=>{n=w=>{(o||f())&&g(w)},e.onPause?.()}).then(()=>{n=void 0,o||e.onContinue?.()}),m=()=>{if(o)return;let g,w=r===0?e.initialPromise:void 0;try{g=w??e.fn()}catch(v){g=Promise.reject(v)}Promise.resolve(g).then(u).catch(v=>{if(o)return;let y=e.retry??(We?0:3),P=e.retryDelay??Vs,I=typeof P=="function"?P(r,v):P,z=y===!0||typeof y=="number"&&rf()?void 0:l()).then(()=>{t?p(v):m()})})};return{promise:i,cancel:s,continue:()=>(n?.(),i),cancelRetry:a,continueRetry:c,canStart:d,start:()=>(d()?m():l().then(m),i)}}var Qs=e=>setTimeout(e,0);function Gs(){let e=[],t=0,r=a=>{a()},o=a=>{a()},n=Qs,i=a=>{t?e.push(a):n(()=>{r(a)})},s=()=>{let a=e;e=[],a.length&&n(()=>{o(()=>{a.forEach(c=>{r(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||s()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{o=a},setScheduler:a=>{n=a}}}var Q=Gs();var Dr=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Un(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(We?1/0:5*60*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}};var Yn=class extends Dr{#e;#t;#r;#n;#o;#s;#a;constructor(e){super(),this.#a=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#n=e.client,this.#r=this.#n.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Ks(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){let r=Gn(this.state.data,e,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(ne).catch(ne):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Bn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Mt||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ot(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Fn(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#o&&(this.#a?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(e,t){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){let c=this.observers.find(f=>f.options.queryFn);c&&this.setOptions(c.options)}let r=new AbortController,o=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#a=!0,r.signal)})},n=()=>{let c=br(this.options,t),d=(()=>{let u={client:this.#n,queryKey:this.queryKey,meta:this.meta};return o(u),u})();return this.#a=!1,this.options.persister?this.options.persister(c,d,this):c(d)},s=(()=>{let c={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:n};return o(c),c})();this.options.behavior?.onFetch(s,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#i({type:"fetch",meta:s.fetchOptions?.meta});let a=c=>{Sr(c)&&c.silent||this.#i({type:"error",error:c}),Sr(c)||(this.#r.config.onError?.(c,this),this.#r.config.onSettled?.(this.state.data,c,this)),this.scheduleGc()};return this.#o=Pr({initialPromise:t?.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:c=>{if(c===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(f){a(f);return}this.#r.config.onSuccess?.(c,this),this.#r.config.onSettled?.(c,this.state.error,this),this.scheduleGc()},onError:a,onFail:(c,f)=>{this.#i({type:"failed",failureCount:c,error:f})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}),this.#o.start()}#i(e){let t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...qs(r.data,this.options),fetchMeta:e.meta??null};case"success":return{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let o=e.error;return Sr(o)&&o.revert&&this.#t?{...this.#t,fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),Q.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function qs(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:wo(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Ks(e){let t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,o=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var jn=class extends Oe{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){let o=t.queryKey,n=t.queryHash??Wt(o,t),i=this.get(n);return i||(i=new Yn({client:e,queryKey:o,queryHash:n,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(o)}),this.add(i)),i}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Q.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(r=>go(t,r))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(r=>go(e,r)):t}notify(e){Q.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Q.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Q.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}};var $n=class extends Dr{#e;#t;#r;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||zs(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#n({type:"continue"})};this.#r=Pr({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(n,i)=>{this.#n({type:"failed",failureCount:n,error:i})},onPause:()=>{this.#n({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});let r=this.state.status==="pending",o=!this.#r.canStart();try{if(r)t();else{this.#n({type:"pending",variables:e,isPaused:o}),await this.#t.config.onMutate?.(e,this);let i=await this.options.onMutate?.(e);i!==this.state.context&&this.#n({type:"pending",context:i,variables:e,isPaused:o})}let n=await this.#r.start();return await this.#t.config.onSuccess?.(n,e,this.state.context,this),await this.options.onSuccess?.(n,e,this.state.context),await this.#t.config.onSettled?.(n,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(n,null,e,this.state.context),this.#n({type:"success",data:n}),n}catch(n){try{throw await this.#t.config.onError?.(n,e,this.state.context,this),await this.options.onError?.(n,e,this.state.context),await this.#t.config.onSettled?.(void 0,n,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,n,e,this.state.context),n}finally{this.#n({type:"error",error:n})}}finally{this.#t.runNext(this)}}#n(e){let t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Q.batch(()=>{this.#e.forEach(r=>{r.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function zs(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Jn=class extends Oe{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#r=0}#e;#t;#r;build(e,t,r){let o=new $n({mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(t),state:r});return this.add(o),o}add(e){this.#e.add(e);let t=Cr(e);if(typeof t=="string"){let r=this.#t.get(t);r?r.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){let t=Cr(e);if(typeof t=="string"){let r=this.#t.get(t);if(r)if(r.length>1){let o=r.indexOf(e);o!==-1&&r.splice(o,1)}else r[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=Cr(e);if(typeof t=="string"){let o=this.#t.get(t)?.find(n=>n.state.status==="pending");return!o||o===e}else return!0}runNext(e){let t=Cr(e);return typeof t=="string"?this.#t.get(t)?.find(o=>o!==e&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Q.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(r=>yo(t,r))}findAll(e={}){return this.getAll().filter(t=>yo(e,t))}notify(e){Q.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(t=>t.state.isPaused);return Q.batch(()=>Promise.all(e.map(t=>t.continue().catch(ne))))}};function Cr(e){return e.options.scope?.id}function bo(e){return{onFetch:(t,r)=>{let o=t.options,n=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],s=t.state.data?.pageParams||[],a={pages:[],pageParams:[]},c=0,f=async()=>{let d=!1,u=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(t.signal.aborted?d=!0:t.signal.addEventListener("abort",()=>{d=!0}),t.signal)})},p=br(t.options,t.fetchOptions),l=async(m,g,w)=>{if(d)return Promise.reject();if(g==null&&m.pages.length)return Promise.resolve(m);let y=(()=>{let te={client:t.client,queryKey:t.queryKey,pageParam:g,direction:w?"backward":"forward",meta:t.options.meta};return u(te),te})(),P=await p(y),{maxPages:I}=t.options,z=w?Kn:qn;return{pages:z(m.pages,P,I),pageParams:z(m.pageParams,g,I)}};if(n&&i.length){let m=n==="backward",g=m?Hs:Xn,w={pages:i,pageParams:s},v=g(o,w);a=await l(w,v,m)}else{let m=e??i.length;do{let g=c===0?s[0]??o.initialPageParam:Xn(o,a);if(c>0&&g==null)break;a=await l(a,g),c++}while(ct.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=f}}}function Xn(e,{pages:t,pageParams:r}){let o=t.length-1;return t.length>0?e.getNextPageParam(t[o],t,r[o],r):void 0}function Hs(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var vo=class{#e;#t;#r;#n;#o;#s;#a;#i;constructor(e={}){this.#e=e.queryCache||new jn,this.#t=e.mutationCache||new Jn,this.#r=e.defaultOptions||{},this.#n=new Map,this.#o=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#a=vr.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=gt.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#a?.(),this.#a=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),r=this.#e.build(this,t),o=r.state.data;return o===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Ot(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(o))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:r})=>{let o=r.data;return[t,o]})}setQueryData(e,t,r){let o=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(o.queryHash)?.state.data,s=Mn(t,i);if(s!==void 0)return this.#e.build(this,o).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return Q.batch(()=>this.#e.findAll(e).map(({queryKey:o})=>[o,this.setQueryData(o,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Q.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){let r=this.#e;return Q.batch(()=>(r.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let r={revert:!0,...t},o=Q.batch(()=>this.#e.findAll(e).map(n=>n.cancel(r)));return Promise.all(o).then(ne).catch(ne)}invalidateQueries(e,t={}){return Q.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){let r={...t,cancelRefetch:t.cancelRefetch??!0},o=Q.batch(()=>this.#e.findAll(e).filter(n=>!n.isDisabled()&&!n.isStatic()).map(n=>{let i=n.fetch(void 0,r);return r.throwOnError||(i=i.catch(ne)),n.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(o).then(ne)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let r=this.#e.build(this,t);return r.isStaleByTime(Ot(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ne).catch(ne)}fetchInfiniteQuery(e){return e.behavior=bo(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ne).catch(ne)}ensureInfiniteQueryData(e){return e.behavior=bo(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return gt.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#r}setDefaultOptions(e){this.#r=e}setQueryDefaults(e,t){this.#n.set(mt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#n.values()],r={};return t.forEach(o=>{ht(e,o.queryKey)&&Object.assign(r,o.defaultOptions)}),r}setMutationDefaults(e,t){this.#o.set(mt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#o.values()],r={};return t.forEach(o=>{ht(e,o.mutationKey)&&Object.assign(r,o.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#r.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Wt(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Mt&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#r.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};var Ut=b(E(),1),Zn=b(S(),1),ei=Ut.createContext(void 0);var So=({client:e,children:t})=>(Ut.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,Zn.jsx)(ei.Provider,{value:e,children:t}));var Ue=b(E(),1);var X=b(E(),1);var Ir=b(E(),1);function ti(){let{workflowAgent:e,socket:t}=A();return{setWidgetValue:(0,Ir.useCallback)(async(o,n,i)=>{if(!e)throw new Error("workflowAgent not found");await t?.setWidgetValue(e,{values:[{nodeID:o,widgetIndex:n,value:i}]});let s=e.data.widgetTableStructure.widgetTableID,a=e.data.widgetTableStructure.widgetTablePath,c=e.data.widgetTableStructure.widgetTablePersisted,f=`${s}_${a}_${c}`,d=e.data.widgetTableStructure.nodes[o].widgets[n].outputType;Ys(f,o,n,i,d)},[e,t])}}function yt(){let{beforeWorkflowRunHooks:e,setBeforeWorkflowRunHooks:t}=A(),r=(0,Ir.useCallback)(n=>(t(i=>[...i,n]),()=>{t(i=>i.filter(a=>a!==n))}),[t]),o=(0,Ir.useCallback)(async()=>{for(let n=0;n{await e?.setComfyOrgAPIKey(t,v)},[e,t]),n=(0,X.useCallback)(async(v,y)=>{let P=W.getStore(v);if(!P)throw new Error("workflowAgent not found");try{await e?.openWorkflow(P,{workflow_path:y,sdpppID:N.sdpppID,sdpppToken:localStorage.getItem("token")||"",from_sid:D.data.sid,reset:!0})}catch(I){console.error(I)}},[e]),i=(0,X.useCallback)(async v=>{let y=W.getStore(v);if(!y||!y.data.widgetTableStructure.widgetTablePath)throw new Error("workflow not found");if(!y.data.widgetTableStructure.widgetTablePersisted)throw new Error("workflow is not savable");await n(v,y.data.widgetTableStructure.widgetTablePath)},[n]),s=(0,X.useCallback)((v,y=1)=>{e?.pageInstanceRun(v,D.data.sid,y)},[e]),a=(0,X.useCallback)(async v=>{let y=W.getStore(v);if(!y)throw new Error("workflowAgent not found");if(!y.data.widgetTableStructure.widgetTablePath)throw new Error("workflow not found");y.data.widgetTableStructure.widgetTablePath.indexOf("://")===-1&&await e?.saveWorkflow(y,{workflow_path:y.data.widgetTableStructure.widgetTablePath,from_sid:D.data.sid})},[e]),c=(0,X.useCallback)(async v=>{await e?.callForPSDExtract(v,{from_sid:D.data.sid})},[e]),f=(0,X.useCallback)(async v=>{let y=W.getStore(v);if(!y)throw new Error("workflowAgent not found");await e?.logout(y)},[e]),d=(0,X.useCallback)(async(v,y)=>await e?.uploadImage(D.data.sid,{image:v,filename:y,overwrite:!0}),[e]);globalThis.sdppp_action_run=async(v,{workflowPath:y})=>{y?l(y):p()};let u=(0,X.useCallback)(async(v,y=1)=>{!v&&!t||(await r(),await s(v||t,y))},[s,t,r]),p=(0,X.useCallback)(async(v,y=1)=>{await u(v||t,y),Po.action.recordAction?.({name:"sdppp_run",methodName:"sdppp_action_run"},{})},[u]),l=(0,X.useCallback)(async(v,y,P=1)=>{!y&&!t||(await n(y||t,v),u(y||t,P),Po.action.recordAction?.({name:"sdppp_run_"+v,methodName:"sdppp_action_run"},{workflowPath:v}))},[n,p,t]),m=(0,X.useCallback)(async()=>{t&&await e?.interrupt(t)},[e,t]),g=(0,X.useCallback)(async()=>{t&&await e?.clearQueue(t)},[e,t]),w=(0,X.useCallback)(async()=>{if(t)return await e?.reboot(t)},[e,t]);return{openWorkflow:n,reopenWorkflow:i,saveWorkflow:a,runPage:p,runWorkflow:l,callForPSDExtract:c,logout:f,uploadImage:d,interrupt:m,clearQueue:g,reboot:w,setComfyOrgAPIKey:o}}function Er(){let[e,t]=(0,Ue.useState)(!1),[r,o]=(0,Ue.useState)(!1),n=(0,Ue.useRef)(null),{autoRunning:i,workflowAgent:s}=A(),{runWorkflow:a,runPage:c}=ie();return(0,Ue.useEffect)(()=>{if(i&&e&&!r){if(t(!1),i.type=="workflow")s&&!s.data.executingNodeTitle&&(a(i.value,s.data.sid,1),n.current=setTimeout(()=>{o(!1)},1e3));else if(i.type=="page"){let f=W.getStore(i.value);f&&!f.data.executingNodeTitle&&(o(!0),c(i.value),n.current=setTimeout(()=>{o(!1)},1e3))}}},[e,r,i,s,a,c]),(0,Ue.useEffect)(()=>()=>{n.current&&clearTimeout(n.current)},[]),{setShouldTriggerLivePainting:t}}var ge=b(E(),1);var ni=b(S(),1),js=15e3,ri=(0,ge.createContext)({});function oi({children:e,loginStyle:t,loginBannerTop:r,loginBannerBottom:o}){let[n,i]=(0,ge.useState)(!N.sdpppID),[s,a]=(0,ge.useState)(!1),c=(0,ge.useCallback)(async(p,l="sdppp123456")=>{try{let m=await fetch("https://sdppp.zombee.tech/api/authing/api/v3/signin",{method:"POST",headers:{"x-authing-sdk-version":"web:3.0.0","Content-Type":"application/json","x-sdppp-appid":N.sdpppID},body:JSON.stringify({connection:"PASSWORD",passwordPayload:{username:p,password:l}})}),g=await m.json();if(m.ok){if(g.statusCode===200)return{success:!0,token:g.data.access_token};if(g.statusCode===403)return{success:!1,message:h("Verification Error")}}else return{success:!1,message:JSON.stringify(g)}}catch(m){return{success:!1,message:m.toString()}}return{success:!1,message:"\u767B\u5F55\u5931\u8D25"}},[]),f=(0,ge.useCallback)(async p=>{try{let m=await(await fetch("https://sdppp.zombee.tech/api/authing/api/v3/get-profile",{method:"GET",headers:{Authorization:`Bearer ${p}`,"x-sdppp-appid":N.sdpppID}})).json();return m.statusCode===200?{data:m.data,success:!0}:{message:m.message,success:!1}}catch(l){return{success:!1,message:l}}},[]);async function d(p,l="sdppp123456"){let m=await c(p,l);if(m.success){let g=await f(m.token);g.success&&(localStorage.setItem("token",m.token),localStorage.setItem("lastLogin",new Date(g.data.lastLogin).getTime().toString()),i(!0))}return m}async function u(p){if(!localStorage.getItem("lastLogin"))return!1;let l=await f(p);if(l.success){let m=new Date(l.data.lastLogin).getTime().toString(),g=localStorage.getItem("lastLogin");return m===g}else return!1}return(0,ge.useEffect)(()=>{if(n){if(N.sdpppID){let p=setInterval(()=>{let l=localStorage.getItem("token");l&&u(l).then(m=>{m||i(!1)})},js);return()=>{clearInterval(p)}}}else{let p=localStorage.getItem("token");if(!p)return;u(p).then(l=>{l&&i(!0)})}},[n]),(0,ni.jsx)(ri.Provider,{value:{hasAuthingLogin:!!N.sdpppID,loginStyle:t||"none",loginBannerBottom:o||null,loginBannerTop:r||null,isLogin:n,loggedInUsername:n&&localStorage.getItem("last-username")||"",logout:()=>{localStorage.removeItem("token"),i(!1),a(!1)},login:d,setIsTrialing:a,isTrialing:s},children:e})}function se(){let e=(0,ge.useContext)(ri);if(!e)throw new Error("useSDPPPLogin must be used within a SDPPPLoginProvider");return e}var Fe=b(S(),1),ii=(0,wt.createContext)({});function si({children:e,loginAppID:t,loginStyle:r,loginBannerTop:o,loginBannerBottom:n}){let i=new vo;return(0,Fe.jsx)(So,{client:i,children:(0,Fe.jsx)(rt,{children:(0,Fe.jsx)(an,{children:(0,Fe.jsx)(oi,{loginAppID:t,loginStyle:r,loginBannerTop:o,loginBannerBottom:n,children:(0,Fe.jsx)(xn,{children:(0,Fe.jsx)($s,{children:e})})})})})})}function Me(){let e=(0,wt.useContext)(ii);if(!e)throw new Error("SDPPPExternalContext not found");return e}function $s({children:e}){let t=J(),r=A(),{logout:o,isLogin:n}=se();N.registerTestCase&&(globalThis.sdppp_debugPhotoshopInternalContext=r,globalThis.sdppp_debugPhotoshopWebviewContext=t);let{toggleWebviewDialog:i,webviewAgentSID:s}=t,{autoRunning:a,setAutoRunning:c,workflowAgent:f,setWorkflowAgentSID:d,doConnectOrDisconnect:u,lastErrorMessage:p}=r,{setShouldTriggerLivePainting:l}=Er();return(0,wt.useEffect)(()=>{let m=()=>{l(!0)};return D.subscribe("/canvasStateID",m),()=>{D.unsubscribe(m)}},[l]),(0,Fe.jsx)(ii.Provider,{value:{logout:o,isLogin:n,connectOrDisconnect:u,lastConnectErrorMessage:p,setAutoRunning:c,autoRunning:a,photoshopSID:D.data.sid,webviewAgentSID:s,workflowAgentSID:f?.data.sid||"",setWorkflowAgentSID:d,toggleWebviewDialog:i},children:e})}var Ar=b(E(),1);var bt=b(E(),1);function ye(e,t){let[r,o]=(0,bt.useState)(e?{...e.data}:null),[n,i]=(0,bt.useState)(e?{...e.data}:null),s=Array.isArray(t)?t:[t];return(0,bt.useEffect)(()=>{e&&o({...e.data})},[e]),(0,bt.useEffect)(()=>{if(!e)return;let a=s.map(c=>{let f=()=>{i(r),o(e.data)};return e.subscribe(c,f),f});return()=>{a.forEach(c=>{e.unsubscribe(c)})}},[e,t]),{state:r||null,prevState:n||null}}function Lr(){let[e,t]=(0,Ar.useState)({}),{state:r}=ye(D,"/comfyUserToken"),o=r?.comfyUserToken;return(0,Ar.useEffect)(()=>{let n=!1,i=(s,a,c)=>{n||t(f=>{let d={...f};return a==null?delete d[s]:d[s]=a,d})};return W.subscribe("/",i),()=>{n=!0,W.unsubscribe(i)}},[]),{pageInstances:Object.entries(e).map(([n,i])=>({sid:n,ssid:n.slice(0,4),title:i.title,lastError:i.lastError,isWebview:!!i.webviewFromSid,isCurrentUser:!i.comfyUserToken||i.comfyUserToken==o})).filter(n=>!n.isWebview&&(!o||n.isCurrentUser))}}var we=b(E(),1);function Js(e){let{state:t}=ye(D,["/comfyUserToken"]),{socket:r,workflowAgentSID:o}=A(),[n,i]=(0,we.useState)({}),[s,a]=(0,we.useState)(!1),[c,f]=(0,we.useState)(null),d=(0,we.useCallback)(async u=>{if(!u&&!o){i({});return}a(!0);let p=W.getStore(u||o);try{let l=await r?.listWorkflows(p||null,{listMode:N.listMode,sdpppID:N.sdpppID,sdpppToken:localStorage.getItem("token")||""})||{workflows:[],error:"Empty workflow list"};if(l.error){f(new Error(l.error)),a(!1);return}a(!1),f(null),i(l.workflows.reduce((m,g)=>(m[g]={path:g,content:null,error:""},m),{}))}catch(l){a(!1),f(l)}},[r,o]);return(0,we.useEffect)(()=>{e&&d()},[e]),(0,we.useEffect)(()=>{t?.comfyUserToken&&d()},[t]),{data:n,isLoading:s,error:c,refetch:d}}function ai(){let{backendURL:e,comfyMultiUser:t}=A(),{workflowAgentSID:r}=Me(),[o,n]=(0,we.useState)(!0),[i,s]=(0,we.useState)(""),{data:a,isLoading:c,error:f,refetch:d}=Js(e);(0,we.useEffect)(()=>{if(r)d(),n(!1);else{n(!0);let l=setTimeout(()=>{n(!1)},4e3);return()=>clearTimeout(l)}},[r]);let u=[];if(!c&&!f&&a){let l=[],m=[];Object.keys(a).forEach(g=>{if(g.startsWith(i)){let w=g.slice(i.length).split("://").pop();w&&(w.indexOf("/")==-1?l.push(g):m.push(g.slice(0,g.lastIndexOf("/")+1)))}}),u=[...m.sort((g,w)=>g.localeCompare(w)).map(g=>({path:g,isDir:!0})),...l.map(g=>({path:g,isDir:!1}))].filter((g,w,v)=>v.findIndex(y=>y.path==g.path)===w)}let p="";return f&&(p=f.message),u.length||(p=h("Workflow list is empty, please save a workflow by Comfy's lastest UI")),f&&(p=h("Workflow list loading failed: {0}",f.message)),c&&(p="Loading"),r||(p=h("Workflow Runner is loading...")),{workflows:a,isLoadingWorkflows:c,workflowsError:p,refetchWorkflows:d,afterPropsUpdate4s:o,currentViewingDirectory:i,setCurrentViewingDirectory:s,showingList:u}}function _r(e){let t=e?W.getStore(e):null,{state:r}=ye(t||null,["/"]);return!r||!e?{sid:"",ssid:"",title:"",lastError:"",isWebview:!1,progress:0,executingNodeTitle:"",queueSize:0}:{sid:e,ssid:r.ssid,title:r.title,lastError:r.lastError,isWebview:!!r.webviewFromSid,progress:r.progress,executingNodeTitle:r.executingNodeTitle,queueSize:r.queueSize}}var pi=b(E(),1);var Be=b(E(),1);var ci={site:{en:{name:"Github",url:"https://github.com/zombieyang/sd-ppp"},zhcn:{name:">> SD-PPP \u5B98\u65B9\u7AD9",url:"https://sdppp.zombee.tech/"}},LICENSE:{name:"BSD3-Clause",url:{en:"https://github.com/zombieyang/sd-ppp/blob/main/LICENSE",zhcn:"https://gitee.com/zombieyang/sd-ppp/blob/main/LICENSE"}},sponsors:[{name:"\u82BD\u9EA6AI&\u5218\u9510",url:"https://v.douyin.com/cw4ba7Vn5-w/"},{name:"\u56DB\u559CAI",url:"https://v.douyin.com/hD2X7S717uw/"},{name:"\u7075\u7ED8AI",url:"https://v.douyin.com/Jssc9ysKic4/"},{name:"\u662D\u73BA\u6587\u5316",url:"https://v.douyin.com/xZR_LKxE_z4/"},{name:"AIX",url:"https://v.douyin.com/hbtnVQ2A9G4/"},{name:"\u6C90\u6C90AI",url:"https://v.douyin.com/k6yKDEcVgP8/"},{name:"\u68A8\u68A8AI",url:"https://v.douyin.com/55KuUbZVGCM/"},{name:"\u661F\u6C47\u672A\u6765",url:"https://www.starfusion.cn/"},{name:"\u8001\u8881AIGC",url:"https://v.douyin.com/dOlouy4GIo0/"},{name:"B\u7AD9\u5145\u7535\u7684\u5C0F\u4F19\u4F34\u4EEC",url:"https://space.bilibili.com/44908313"}],links:[{name:"\u732B\u54AA\u8001\u5E08Reimagined",url:"https://www.xiaohongshu.com/user/profile/59f1fcc411be101aba7f048f"},{name:"\u6765\u771F\u7684",url:"https://space.bilibili.com/590784254"},{name:"\u54D1\u72D7Egao",url:"https://space.bilibili.com/284721975"}],community:{en:[{name:"Github",url:"https://github.com/zombieyang/sd-ppp"},{name:"Discord",url:"https://discord.gg/9HeGjDvEmn"},{name:"Youtube",url:"https://www.youtube.com/@Github-Zombeeyang/videos"}],zhcn:[{name:"Github",url:"https://github.com/zombieyang/sd-ppp"},{name:"\u5FAE\u4FE1\u7FA4",url:"https://sdppp.zombee.tech/docs/category/sd-ppp%E5%90%84%E9%A2%86%E5%9F%9F%E8%AE%A8%E8%AE%BA%E7%BE%A4"},{name:"Bilibili",url:"https://space.bilibili.com/44908313"}]},cloud:{en:[],zhcn:[{name:"\u6668\u7FBD\u667A\u4E91",url:"https://www.chenyu.cn/console/login?invitationCode=BUD913",icon:"https://sdppp.zombee.tech/img/icons/chenyu.ico",color:"var(--uxp-host-text-color-secondary)"},{name:"\u4ED9\u5BAB\u4E91",url:"https://www.xiangongyun.com/register/NWF5AH",icon:"https://sdppp.zombee.tech/img/icons/xgc.ico",color:"var(--uxp-host-text-color-secondary)"},{name:"Cephalon",url:"https://cephalon.cloud/share/register-landing?invite_id=m95SDj",icon:"https://sdppp.zombee.tech/img/icons/cephalon.ico",color:"var(--uxp-host-text-color-secondary)"}]}};var Do=ci,fi="sponsorData",ui={GITEE:"https://gitee.com/zombieyang/sd-ppp/raw/main/sponsors.json",GITHUB:"https://raw.githubusercontent.com/zombieyang/sd-ppp/refs/heads/main/sponsors.json"},Zs=5e3;function Co(){try{let e=localStorage.getItem(fi);if(e)return JSON.parse(e)}catch(e){console.warn("Failed to parse sponsor data from localStorage:",e)}return null}function li(e){try{localStorage.setItem(fi,JSON.stringify(e))}catch(t){console.warn("Failed to save sponsor data to localStorage:",t)}}function xr(e){try{if(!e||typeof e!="object")return console.warn("Invalid sponsor data: not an object"),!1;if(!e.LICENSE||typeof e.LICENSE!="object")return console.warn("Invalid sponsor data: LICENSE is not an object"),!1;if(!e.LICENSE.name)return console.warn("Invalid sponsor data: LICENSE.name is missing"),!1;if(!e.LICENSE.url||typeof e.LICENSE.url!="object")return console.warn("Invalid sponsor data: LICENSE.url is not an object"),!1;if(!e.LICENSE.url.en)return console.warn("Invalid sponsor data: LICENSE.url.en is missing"),!1;if(!e.LICENSE.url.zhcn)return console.warn("Invalid sponsor data: LICENSE.url.zhcn is missing"),!1;if(!Array.isArray(e.sponsors))return console.warn("Invalid sponsor data: sponsors is not an array"),!1;if(!Array.isArray(e.links))return console.warn("Invalid sponsor data: links is not an array"),!1;if(!e.community||typeof e.community!="object")return console.warn("Invalid sponsor data: community is not an object"),!1;if(!Array.isArray(e.community.en)||!Array.isArray(e.community.zhcn))return console.warn("Invalid sponsor data: community.en or community.zhcn is not an array"),!1;if(!e.cloud||typeof e.cloud!="object")return console.warn("Invalid sponsor data: cloud is not an object"),!1;if(!Array.isArray(e.cloud.en)||!Array.isArray(e.cloud.zhcn))return console.warn("Invalid sponsor data: cloud.en or cloud.zhcn is not an array"),!1;for(let t of e.cloud.zhcn)if(!t.name||!t.url||!t.icon||!t.color)return console.warn("Invalid sponsor data: cloud.zhcn item missing required properties"),!1;return!0}catch(t){return console.warn("Error validating sponsor data:",t),!1}}async function di(e){try{let t=await fetch(e);if(!t.ok)throw new Error(`Fetch failed with status: ${t.status}`);let r=await t.json();return xr(r)?r:null}catch(t){return console.warn(`Failed to fetch from ${e}:`,t),null}}var kr=null;function Tr(){let[e,t]=Be.default.useState(!0);if(!kr){let s=Co();kr=new Promise(a=>{let c=!1;di(ui.GITEE).then(f=>{!c&&f&&(c=!0,li(f),a(f),t(!1))}),di(ui.GITHUB).then(f=>{!c&&f&&(c=!0,li(f),a(f),t(!1))}),setTimeout(()=>{c||(c=!0,s&&xr(s)?(a(s),t(!1)):(console.warn("Using default data as fallback"),a(Do),t(!1)))},Zs)})}let[r,o]=Be.default.useState(()=>{let s=Co();return s&&xr(s)?s:Do});Be.default.useEffect(()=>{kr&&kr.then(s=>{o(s)}).catch(s=>{console.error("Error in useSponsor:",s);let a=Co();o(a&&xr(a)?a:Do)})},[]);let[n,i]=(0,Be.useState)(!0);return(0,Be.useEffect)(()=>{n&&!e&&i(e)},[e]),{data:r,isLoading:n}}var L=b(S(),1);function mi(){let{loginStyle:e}=se(),{data:t}=Tr(),r=(0,pi.useMemo)(()=>t.community[$e()=="zhcn"?"zhcn":"en"],[t]);return(0,L.jsxs)("div",{className:"about-card",style:{position:"relative"},children:[e==="none"?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"about-card-sections about-card-title",children:(0,L.jsxs)("a",{href:t.LICENSE.url[$e()=="zhcn"?"zhcn":"en"],children:[h("LICENSE:")," ",t.LICENSE.name]})}),(0,L.jsx)("sp-divider",{}),(0,L.jsx)("h2",{children:h("Sponsors")}),(0,L.jsx)("div",{className:"about-card-sections about-card-sponsors",children:t.sponsors.map(o=>(0,L.jsx)("a",{href:o.url,children:o.name},o.name))}),(0,L.jsx)("sp-divider",{}),(0,L.jsx)("h2",{children:h("Links")}),(0,L.jsx)("div",{className:"about-card-sections about-card-friends-links",children:t.links.map(o=>(0,L.jsx)("a",{href:o.url,children:o.name},o.name))}),(0,L.jsx)("sp-divider",{}),(0,L.jsxs)("h2",{children:["SD-PPP ",h("Community")]})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"about-card-sections about-card-title",children:(0,L.jsx)("h4",{children:h("This plugin is based on sd-ppp")})}),(0,L.jsx)("div",{className:"about-card-sections about-card-title",children:(0,L.jsx)("h6",{children:h("And follows its open source license:")})}),(0,L.jsx)("div",{className:"about-card-sections about-card-title",children:(0,L.jsx)("a",{href:"https://github.com/zombieyang/sd-ppp/blob/main/LICENSE",children:"LICENSE: BSD3-Clause"})})]}),(0,L.jsx)("div",{className:"about-card-sections about-card-links",children:r.map(o=>(0,L.jsx)("a",{href:o.url,children:o.name},o.name))}),(0,L.jsx)("sp-divider",{}),t.site&&(0,L.jsx)("h1",{children:(0,L.jsx)("a",{href:t.site[$e()=="zhcn"?"zhcn":"en"].url,children:t.site[$e()=="zhcn"?"zhcn":"en"].name})})]})}var Se=b(E(),1);var hi=b(E(),1),vt=b(S(),1),Ft=class extends hi.default.Component{render(){let t=this.props.size||1;return(0,vt.jsx)("div",{slot:"icon",className:"sdppp-icon",onClick:this.props.onClick,children:(0,vt.jsxs)("svg",{width:20*t,height:20*t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,vt.jsx)("path",{d:"M5.586 5.586A2 2 0 018.862 7.73a.5.5 0 10.931.365 3 3 0 10-1.697 1.697.5.5 0 10-.365-.93 2 2 0 01-2.145-3.277z",fill:"currentColor"}),(0,vt.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.939 6.527c.127.128.19.297.185.464a.635.635 0 01-.185.465L0 8.395a7.099 7.099 0 001.067 2.572h1.32c.182 0 .345.076.46.197a.635.635 0 01.198.46v1.317A7.097 7.097 0 005.602 14l.94-.94a.634.634 0 01.45-.186H7.021c.163 0 .326.061.45.186l.939.938a7.098 7.098 0 002.547-1.057V11.61c0-.181.075-.344.197-.46a.634.634 0 01.46-.197h1.33c.507-.76.871-1.622 1.056-2.55l-.946-.946a.635.635 0 01-.186-.465.635.635 0 01.186-.464l.943-.944a7.099 7.099 0 00-1.044-2.522h-1.34a.635.635 0 01-.46-.197.635.635 0 01-.196-.46V1.057A7.096 7.096 0 008.413.002l-.942.942a.634.634 0 01-.45.186H6.992a.634.634 0 01-.45-.186L5.598 0a7.097 7.097 0 00-2.553 1.058v1.33c0 .182-.076.345-.197.46a.635.635 0 01-.46.198h-1.33A7.098 7.098 0 00.003 5.591l.936.936zm.707 1.636c.324-.324.482-.752.479-1.172a1.634 1.634 0 00-.48-1.171l-.538-.539c.126-.433.299-.847.513-1.235h.768c.459 0 .873-.19 1.167-.49.3-.295.49-.708.49-1.167v-.77c.39-.215.807-.388 1.243-.515l.547.547c.32.32.742.48 1.157.48l.015-.001h.014c.415 0 .836-.158 1.157-.479l.545-.544c.433.126.846.299 1.234.512v.784c0 .46.19.874.49 1.168.294.3.708.49 1.167.49h.776c.209.382.378.788.502 1.213l-.545.546a1.635 1.635 0 00-.48 1.17c-.003.421.155.849.48 1.173l.549.55c-.126.434-.3.85-.513 1.239h-.77c-.458 0-.872.19-1.166.49-.3.294-.49.708-.49 1.167v.77a6.09 6.09 0 01-1.238.514l-.54-.54a1.636 1.636 0 00-1.158-.48H6.992c-.415 0-.837.159-1.157.48l-.543.543a6.091 6.091 0 01-1.247-.516v-.756c0-.459-.19-.873-.49-1.167-.294-.3-.708-.49-1.167-.49h-.761a6.094 6.094 0 01-.523-1.262l.542-.542z",fill:"currentColor"})]})})}};var Bt=b(S(),1);function gi(){let{loggedInUsername:e,logout:t}=se();return(0,Bt.jsxs)("div",{className:"login-block",children:[(0,Bt.jsxs)("div",{className:"api-key-title",children:[N.\u63D2\u4EF6\u540D\u5B57," ID: ",e||"\u672A\u767B\u5F55"]}),(0,Bt.jsx)("div",{className:"logout-btn action-button",onClick:()=>{t()},children:e?h("Logout"):h("Login")})]})}var Rr=b(E(),1);var Te=b(S(),1);function Nr(e){let{state:t}=ye(D,["/comfyUserToken"]),{logout:r}=ie(),{workflowAgentSID:o,workflowAgent:n,comfyMultiUser:i}=A(),{resetWebview:s}=J(),[a,c]=(0,Rr.useState)(!1);if((0,Rr.useEffect)(()=>{if(!n){D.setComfyUserToken("");return}let u=(p,l)=>{let m=t?.comfyUserToken;D.setComfyUserToken(p),m==""&&a&&(s(),c(!1))};return n.subscribe("/comfyUserToken",u),u(n.data.comfyUserToken,""),()=>{n&&n.unsubscribe(u)}},[n,a,s]),!i)return null;if(!N.enableMU&&i)return(0,Te.jsxs)("div",{className:"login-block",children:[(0,Te.jsx)("div",{className:"login-title",children:h("Comfy multi-user: ")}),(0,Te.jsx)("div",{children:h("ComfyUI with --multi-user is only available for sponsors")})]});let f=n&&t?.comfyUserToken,d=t?.comfyUserToken?.split("_")[0]||"";return(0,Te.jsxs)("div",{className:"login-block",children:[(0,Te.jsx)("div",{className:`login-title${f?"":" login-title-secondary"}`,children:h("Comfy multi-user: ")+(f?d:"")}),f?(0,Te.jsx)("div",{className:"logout-btn action-button",onClick:()=>{r(o),c(!1)},children:h("Logout")}):(0,Te.jsx)("div",{className:"logout-btn action-button",onClick:()=>{c(!0),e.onRequestLogin?.()},children:h("Not Login")})]})}var Ve=b(S(),1);function Or(){let{workflowAgent:e}=A(),{state:t}=ye(e,["/comfyOrgAPIKey","/comfyOrgLoggedIn"]),{setComfyOrgAPIKey:r}=ie();return t?t.comfyOrgLoggedIn&&!t.comfyOrgAPIKey?(0,Ve.jsxs)("div",{className:"login-block",children:[(0,Ve.jsx)("div",{className:"api-key-title",children:"ComfyOrg API Key"}),(0,Ve.jsx)("div",{children:h("Logged in by email/password")})]}):(0,Ve.jsxs)("div",{className:"login-block",children:[(0,Ve.jsx)("div",{className:"api-key-title",children:"ComfyOrg API Key"}),(0,Ve.jsx)("div",{className:"logout-btn action-button",onClick:()=>{let o=prompt(h("Please input API key (will reload Runner)"));o&&r(o)},children:h("Set API Key")})]}):null}var Wr=b(S(),1),ea=({pageInstance:e})=>{let{autoRunning:t,workflowAgentSID:r,setWorkflowAgentSID:o}=A(),n=r==e.sid,i=t?.value==e.sid;return(0,Wr.jsx)("div",{className:`agent-list-item${n?" selected":""}${n||i?" checked":""}`,onClick:()=>o(n?"":e.sid),children:(0,Wr.jsxs)("span",{children:["\u25CF [",e.ssid,"] ",e.title]})})},yi=ea;var be=b(S(),1),wi=()=>{let{workflowAgentSID:e,setWorkflowAgentSID:t,backendURL:r}=A(),{webviewAgentSID:o}=J(),{pageInstances:n}=Lr(),{timeoutError:i}=J();return(0,be.jsxs)(be.Fragment,{children:[i?(0,be.jsx)("div",{className:"client-panel-title",children:h("Webview load timeout, please switch to a different runner")}):(0,be.jsxs)("div",{className:"client-panel-title",children:[h("Runner")," (",r,")"]}),(0,be.jsx)("sp-label",{children:h("Open ComfyUI in the browser to see more options")}),(0,be.jsxs)("div",{className:"agent-list",children:[(0,be.jsx)("div",{className:`agent-list-item${e==o?" selected":""}`,onClick:()=>t(o),children:(0,be.jsxs)("span",{children:["\u25CF ",h("PS Webview")]})}),n.map(s=>(0,be.jsx)(yi,{pageInstance:s},s.sid))]})]})};var Ee=b(S(),1);function bi({onRequestLogin:e}){let{timeoutError:t}=J(),{hasAuthingLogin:r}=se();return(0,Ee.jsxs)("div",{className:"client-panel",children:[(!r||t)&&(0,Ee.jsx)(wi,{}),(0,Ee.jsxs)("div",{className:"app-login-container",children:[(0,Ee.jsx)("div",{className:"client-panel-title",children:h("Login/Auth")}),r&&(0,Ee.jsx)(gi,{}),(0,Ee.jsx)(Nr,{onRequestLogin:e}),(0,Ee.jsx)(Or,{}),(0,Ee.jsxs)("sp-label",{children:["photoshop id: ",D.data.uname]})]})]})}var K=b(S(),1);function vi(){let{backendURL:e,setBackendURL:t,connectState:r,doConnectOrDisconnect:o}=A(),n=r==="connected"||r==="connecting"?{disabled:!0}:{};(0,Se.useEffect)(()=>{e&&r==="disconnected"&&setTimeout(()=>{o()},1e3)},[]);let i=(0,Se.useRef)(!1);return(0,Se.useEffect)(()=>()=>{i.current=!0},[]),(0,Se.useEffect)(()=>()=>{r==="connected"&&i.current&&o()},[r]),(0,K.jsxs)(K.Fragment,{children:[r==="connected"?(0,K.jsx)(ta,{}):(0,K.jsx)("sp-textfield",{id:"url-bar",label:"backendURL",onInput:s=>{t(s.currentTarget.value)},...n,value:e||"",placeholder:wr}),(0,K.jsx)("sp-action-button",{id:"connect-btn",onClick:()=>{o()},children:r!=="disconnected"?"\u2297":"\u2192"})]})}function ta(){let[e,t]=(0,Se.useState)(""),[r,o]=(0,Se.useState)(""),{workflowAgentSID:n}=Me(),{comfyMultiUser:i}=A(),{webviewAgentSID:s,timeoutError:a,loadError:c,toggleWebviewDialog:f}=J(),d=(0,Se.useRef)(null),{ssid:u,lastError:p,progress:l,executingNodeTitle:m,queueSize:g}=_r(n),{loggedInUsername:w,hasAuthingLogin:v,isLogin:y}=se(),P=n&&g?`(${g})`:"";(0,Se.useEffect)(()=>{n?n&&(m?t(`(${l}% - ${m}...)`):(t(""),o(""))):i&&!D.data.comfyUserToken?t(h("--multi-user Not Login!")):(a||c)&&o(h("Error: {0}",c||h("timeout")))},[n,p,l,m,a,c,i]);let I="";return s==n?I=h("PS Webview"):n&&u?I=h("Browser {0}",u):I=h("Loading..."),(0,K.jsxs)("div",{className:"connect-configuration",onClick:()=>{d.current?.show()},children:[(0,K.jsx)("dialog",{ref:d,style:{margin:"0",width:"480px",height:"540px",padding:"8px"},onClick:z=>{z.stopPropagation()},children:(0,K.jsx)(bi,{onRequestLogin:async()=>{d.current?.close(),await new Promise(z=>setTimeout(z,300)),f()}})}),(0,K.jsxs)("div",{className:"connect-config-content",children:[v?(0,K.jsxs)("span",{children:["\u7528\u6237\u540D\uFF1A",y?w:"\u672A\u767B\u5F55"]}):(0,K.jsxs)("span",{children:["\u23F5 ",h("Runner"),": ",I," ",P]}),r&&(0,K.jsx)("span",{className:"connect-config-error",children:r}),!r&&e&&(0,K.jsx)("span",{className:"connect-config-message",children:e})]}),(0,K.jsx)("div",{className:"connect-config-actions",children:(0,K.jsx)(Ft,{size:.8})}),l?(0,K.jsx)("div",{className:"connect-config-progress",style:{width:`${l}%`}}):""]})}var Di=b(E(),1);var Qe=class{static makeDocumentDataOptions(t){let r=t.data,o=[`${C.getSpecialDocumentCurrent()}`];return Object.keys(r.documents).forEach(n=>{let i=r.documents[n];o.push(i.identify)}),o}static findDocumentData(t,r){let o=C.is_SPECIAL_DOCUMENT_CURRENT(r)?t.data.activeDocumentID:Oo(r).id;return t.data.documents[o]}static makeLayerOptions(t,r){return r.concat(t.layers.map(n=>n.identify))}static getLayerDirtyID(t,r){return t.layers.find(n=>n.identify===r)?.dirtyID||0}static getCanvasDirtyID(t){return t.canvasDirtyID||0}static getSelectionDirtyID(t){return t.selectionDirtyID||0}};var Pi=b(E(),1);var Si=b(E(),1);function Pe(e){return e=e||12,{flex:`${e} 0 calc(${e/12*100}% - 10px)`,maxWidth:"100%"}}var St=class extends Pi.Component{computeUIWeightCSS(t){return Pe(t)}};var ot=b(S(),1),Ge=class extends St{state={filter:""};handleSelectUpdate=(t,r)=>{this.props.onSelectUpdate(t,r),this.setState({filter:""})};render(){let{options:t,value:r,name:o}=this.props;return(0,ot.jsxs)("div",{style:{display:"flex",alignItems:"center",...this.computeUIWeightCSS(this.props.uiWeight)},children:[o&&(0,ot.jsx)("sp-label",{style:{flex:1},children:o}),(0,ot.jsx)("sp-picker",{class:"sdppp-dropdown-widget",size:"s",style:this.props.name?{flex:2}:{width:"100%"},children:(0,ot.jsx)("sp-menu",{slot:"options",children:t.map((n,i)=>this.state.filter&&!n.includes(this.state.filter)?"":(0,ot.jsx)("sp-menu-item",{...Mr(n)===Mr(r)?{selected:!0}:{},onClick:()=>this.handleSelectUpdate(n,i),children:Mr(n)},Mr(n)))})})]})}};function Mr(e){return typeof e=="string"?e:e.content}var Ci=b(S(),1),Ur=class e extends Di.default.Component{state={options:Qe.makeDocumentDataOptions(D)};constructor(t){super(t),D.subscribe("/documents",this.updateOptions)}updateOptions=()=>{let t=Qe.makeDocumentDataOptions(D);this.setState({options:t})};componentwillUnmount(){D.unsubscribe(this.updateOptions)}static getValueIfIsValidOptionOrCurrent(t,r){return!r||r.includes(t)?t:C.getSpecialDocumentCurrent()}static getDerivedStateFromProps(t,r){let o=t.value;if(o){let n=o.split("/"),i=e.getValueIfIsValidOptionOrCurrent(n.slice(1).join("/"),r.options);return C.is_SPECIAL_DOCUMENT_CURRENT(i)?o=C.getSpecialDocumentCurrent():o=i,n[0]!=D.data.uname&&t.onSelectUpdate(D.data.uname+"/"+o,0),Object.assign(r,{value:o})}return null}render(){let t=e.getValueIfIsValidOptionOrCurrent(this.props.value,this.state.options);return(0,Ci.jsx)(Ge,{uiWeight:this.props.uiWeight,options:this.state.options,onSelectUpdate:(r,o)=>{this.props.onSelectUpdate(D.data.uname+"/"+r,o)},value:t})}};var Ei=b(E(),1);var Ii=b(S(),1);function ve(e){return(0,Ii.jsx)("a",{onClick:e.onClick,children:e.label})}var Re=b(S(),1),qe=class extends Ei.default.Component{state={options:[]};constructor(t){super(t),D.subscribe("/documents",this.updataOptionsAfterDocumentChange)}componentwillUnmount(){D.unsubscribe(this.updataOptionsAfterDocumentChange)}componentDidMount(){this.updateOptions(this.props.documentValue||C.getSpecialDocumentCurrent())}shouldComponentUpdate(t,r){return t.documentValue!=this.props.documentValue&&t.documentValue&&this.updateOptions(t.documentValue),!0}updataOptionsAfterDocumentChange=()=>{this.updateOptions(this.props.documentValue||C.getSpecialDocumentCurrent())};updateOptions=t=>{t=t||this.props.documentValue||C.getSpecialDocumentCurrent();let r=Qe.findDocumentData(D,t);if(!r){this.setState({options:[]});return}let o=Qe.makeLayerOptions(r,C.getSpecialLayerForGet());this.setState({options:o})};render(){let t=this.props.value;if(t)try{t=h(t)}catch{}return(0,Re.jsxs)("div",{className:"sdppp-layer-widget",style:Pe(this.props.uiWeight),children:[(0,Re.jsx)("div",{className:"sdppp-layer-widget-dropdown",children:(0,Re.jsx)(Ge,{uiWeight:12,options:this.state.options,onSelectUpdate:this.props.onSelectUpdate,value:t})}),(0,Re.jsxs)("div",{className:"sdppp-layer-widget-quick-set",children:[(0,Re.jsxs)("sp-label",{children:[h("Quick Set"),":"]}),(0,Re.jsx)(ve,{onClick:async()=>{let r=Je();this.props.onSelectUpdate(r,this.state.options.indexOf(r))},label:h("Selected Layer")}),(0,Re.jsx)(ve,{onClick:async()=>{this.props.onSelectUpdate(C.get_SPECIAL_LAYER_USE_CANVAS(),this.state.options.indexOf(C.get_SPECIAL_LAYER_USE_CANVAS()))},label:h("Canvas")})]})]})}};var Gt=b(xt(),1),Pt=O("photoshop"),fe=b(E(),1);var Io=b(xt(),1),Fr=O("photoshop"),de=b(E(),1);var Vt=b(S(),1);function Qt({mode:e,setMode:t}){let r=o=>{t(o)};return(0,Vt.jsxs)("div",{className:"widget-mode-selection",children:[(0,Vt.jsx)("button",{className:`widget-mode-selection-button ${e==="manual"?"selected":""}`,onClick:()=>r("manual"),children:h("Manual")}),(0,Vt.jsx)("button",{className:`widget-mode-selection-button ${e==="auto"?"selected":""}`,onClick:()=>r("auto"),children:h("Auto")})]})}var le=b(S(),1);function Ai(e){let[t,r]=(0,de.useState)(""),[o,n]=(0,de.useState)(""),[i,s]=(0,de.useState)("manual"),[a,c]=(0,de.useState)(!1),[f,d]=(0,de.useState)(null),{backendURL:u}=A(),{uploadImage:p}=ie(),{addBeforeWorkflowRunHook:l}=yt(),m=(0,de.useRef)(null),g=(0,de.useCallback)(async()=>{if(i==="manual"&&!a&&f){await e.onValueChange(f);return}try{if(i==="auto"&&await v(t),m.current){let y=await m.current.getBuffer(Io.JimpMime.jpeg),P=await p(y,Ct(6)+".jpeg");P?.name&&(d(P.subfolder+"/"+P.name),c(!1),await e.onValueChange(P.subfolder+"/"+P.name))}}catch(y){console.error(y)}},[i,a,f,e.onValueChange]);(0,de.useEffect)(()=>{let P=l(g);return()=>{P()}},[g]);let w=o;if(!w&&(f||e.value)){let y=f||e.value,P=y.split("/").slice(0,-1).join("/");w=u+(u.endsWith("/")?"":"/")+`api/view?filename=${y}&type=input&subfolder=${P}&rand=`+Math.random()}let v=(0,de.useCallback)(async y=>{let P=await Eo(y);if(!P)return;m.current=P;let I=await ra(P);r(y),n(I),c(!0)},[]);return(0,le.jsxs)("div",{className:"image-widget",children:[(0,le.jsx)("div",{className:"image-widget-left",children:(0,le.jsx)("img",{src:w,className:"image-widget-image"+(w?"":" image-widget-image-empty")})}),(0,le.jsxs)("div",{className:"image-widget-right",children:[(0,le.jsx)(Qt,{mode:i,setMode:s}),i==="manual"&&(0,le.jsxs)("div",{className:"image-widget-more-quickset",children:[(0,le.jsx)("sp-label",{children:h("Set As:")}),(0,le.jsx)(ve,{onClick:()=>{v(Je())},label:h("Selected Layer")}),(0,le.jsx)(ve,{onClick:()=>{v(C.get_SPECIAL_LAYER_USE_CANVAS())},label:h("Canvas")})]}),i=="auto"&&(0,le.jsx)("div",{className:"image-widget-layer-widget-container",children:(0,le.jsx)(qe,{onSelectUpdate:v,uiWeight:10,value:t})})]})]})}async function Eo(e){if(!Fr.app.activeDocument)return null;try{return await fr.getJimpImage({document_identify:Ae(Fr.app.activeDocument.id,Fr.app.activeDocument.name),layer_identify:e})}catch(t){throw console.error(t),t}}async function ra(e){let t=100/Math.max(e.width,e.height);return e=e.clone(),e.scale(t),await e.getBase64(Io.JimpMime.jpeg)}var Z=b(S(),1);function _i(e){let[t,r]=(0,fe.useState)(""),[o,n]=(0,fe.useState)(""),[i,s]=(0,fe.useState)("manual"),[a,c]=(0,fe.useState)(!1),[f,d]=(0,fe.useState)(null),{backendURL:u}=A(),{uploadImage:p}=ie(),{addBeforeWorkflowRunHook:l}=yt(),m=(0,fe.useRef)(null),g=(0,fe.useCallback)(async()=>{if(i==="manual"&&!a&&f){await e.onValueChange(f);return}try{if(i==="auto"&&await v(t),m.current){let y=await m.current.getBuffer(Gt.JimpMime.png),P=await p(y,Ct(6)+".png");P?.name&&(d(P.subfolder+"/"+P.name),c(!1),await e.onValueChange(P.subfolder+"/"+P.name))}}catch(y){console.error(y)}},[i,a,f,e.onValueChange]);(0,fe.useEffect)(()=>{let y=l(g);return()=>{y()}},[g]);let w=o;if(!w&&(f||e.value)){let y=f||e.value,P=y.split("/").slice(0,-1).join("/");w=u+(u.endsWith("/")?"":"/")+`api/view?filename=${y}&type=input&subfolder=${P}&rand=`+Math.random()}let v=(0,fe.useCallback)(async(y,P=!1)=>{let I=await Eo(y);if(!I)return;P&&I.scan(0,0,I.bitmap.width,I.bitmap.height,function(te,ae,k){I.bitmap.data[k+3]=255-I.bitmap.data[k+3]}),m.current=I;let z=await Li(I);r(y),n(z),c(!0)},[]);return(0,Z.jsxs)("div",{className:"image-widget",children:[(0,Z.jsx)("div",{className:"image-widget-left",children:(0,Z.jsx)("img",{src:w,className:"image-widget-image"+(w?"":" image-widget-image-empty")})}),(0,Z.jsxs)("div",{className:"image-widget-right",children:[(0,Z.jsx)(Qt,{mode:i,setMode:y=>{s(y)}}),i==="manual"&&(0,Z.jsxs)("div",{className:"image-widget-more-quickset",children:[(0,Z.jsx)("sp-label",{children:h("Set As:")}),(0,Z.jsx)(ve,{onClick:()=>{v(Je(),!1)},label:h("Selected Layer")}),(0,Z.jsx)(ve,{onClick:async()=>{v(Je(),!0)},label:h("Selected Layer (invert)")}),(0,Z.jsx)(ve,{onClick:()=>{v(C.get_SPECIAL_LAYER_USE_CANVAS())},label:h("Canvas")}),(0,Z.jsx)(ve,{onClick:async()=>{let y=await oa();if(!y)return;m.current=y;let P=await Li(y);r(""),n(P),c(!0)},label:h("Selection")})]}),i==="auto"&&(0,Z.jsx)("div",{className:"image-widget-layer-widget-container",children:(0,Z.jsx)(qe,{onSelectUpdate:y=>{v(y,!1)},uiWeight:12,value:t})})]})]})}async function oa(){if(!Pt.app.activeDocument)return null;try{let e=await Nt({document_identify:Ae(Pt.app.activeDocument.id,Pt.app.activeDocument.name),boundary:{left:0,top:0,right:0,bottom:0,width:Pt.app.activeDocument.width,height:Pt.app.activeDocument.height}});if(!e?.blob)return null;let t=e.blob,r=new Uint8Array(t.length*4);for(let o=0;oe.nodeIndexes.map(p=>{let l=e.nodes[p],m=(y,P,I)=>y.keepRender?P.outputType==="error"?(y.result.push((0,$.jsx)("span",{className:"list-error-label",children:t[l.id][I]})),y):(o?.(y,l,P,I),y):y,g=Object.values(e.groups).find(y=>y.nodeIDs.includes(l.id)),w=g?.color||"rgba(127, 127, 127, .4)";if(s&&g?.id!==s)return null;let v=l.uiWeightSum<=8&&l.widgets.length==1&&(l.widgets[0].outputType!=="number"||!e.extraOptions?.useSliderForNumberWidget);return(0,$.jsxs)("div",{className:"workflow-edit-field",children:[(0,$.jsx)("div",{className:"workflow-edit-field-title",title:l.title,style:{...Pe(v?4:12),borderColor:w},children:i?i(l.title,l):(0,$.jsx)("span",{children:l.title})}),l.widgets.reduce(m,{keepRender:!0,result:[]}).result.map((y,P)=>(0,$.jsx)(Ao,{children:y},P)),r[l.id]?(0,$.jsx)("span",{className:"list-error-label",children:r[l.id]}):""]},l.id)}).filter(Boolean),[e,t,r,o,n,i,s]),[f,d]=(0,nt.useMemo)(()=>[Object.keys(r).filter(p=>e.nodes[parseInt(p)]),Object.keys(r).filter(p=>!e.nodes[parseInt(p)])],[r,e]),u=null;return d.length>0?u=(0,$.jsx)("span",{className:"list-error-label",children:r[+d[0]]}):f.length>0&&(u=(0,$.jsx)("span",{className:"list-error-label",children:r[+f[0]]})),(0,$.jsxs)($.Fragment,{children:[u,Object.keys(e.nodes).length?"":(0,$.jsx)("span",{className:"list-error-label",children:h("no suitable node to control in this workflow")}),(0,$.jsx)("div",{className:"workflow-edit-content",children:c})]})}var Ao=class extends nt.default.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}componentDidCatch(t,r){this.setState({hasError:!0,error:t})}render(){return this.state.hasError?(0,$.jsx)("span",{className:"list-error-label",children:this.state.error?.stack||this.state.error?.message||this.state.error?.toString()}):this.props.children}};var ze=b(E(),1);var Ke=b(S(),1),ki=e=>{let{inputMin:t,inputMax:r,inputStep:o,value:n=0,onValueChange:i,name:s,uiWeight:a,extraOptions:c}=e,[f,d]=(0,ze.useState)(+n.toFixed(3));(0,ze.useEffect)(()=>{d(+n.toFixed(3))},[n]);let u=(0,ze.useCallback)(g=>{let w=+g.target.value;d(+w.toFixed(3))},[]),p=(0,ze.useCallback)(()=>{i(f)},[f,i]),l=(0,ze.useCallback)(g=>{let w=+g.target.value;d(+w.toFixed(3)),i(+w.toFixed(3))},[f,i]);return!((r-t)/o>1e3)&&a&&a>=1&&c?.useSliderForNumberWidget?(0,Ke.jsxs)("div",{style:{...Pe(a),display:"flex",alignItems:"center"},children:[(0,Ke.jsx)("sp-slider",{style:{width:"60%"},min:t,max:r,step:o,value:f,onInput:l,"show-value":"false",class:"sdppp-slider"}),(0,Ke.jsx)("sp-textfield",{style:{width:"40%"},onInput:u,onBlur:p,value:f})]}):(0,Ke.jsxs)("div",{style:{...Pe(a),display:"flex",alignItems:"center"},children:[s&&(0,Ke.jsx)("sp-label",{style:{flex:"1"},children:s}),(0,Ke.jsx)("sp-textfield",{style:s?{flex:"2"}:{width:"100%"},onInput:u,onBlur:p,value:f})]})};var j=b(E(),1);var Dt=b(S(),1);function xi(e){let t=j.default.useRef(null),[r,o]=(0,j.useState)(0),[n,i]=(0,j.useState)(e.value??""),[s,a]=(0,j.useState)(!1);return(0,j.useEffect)(()=>{s||i(e.value??"")},[e.value]),(0,j.useEffect)(()=>{let c=setInterval(()=>{if(t.current){let f=t.current.offsetHeight;f!==r&&o(f)}},16);return()=>clearInterval(c)},[r]),(0,Dt.jsxs)("div",{className:"widget-container",style:{...Pe(e.uiWeight),position:"relative",height:Math.max(55,r)},children:[(0,Dt.jsx)(na,{textAreaValue:n,setTextAreaValue:i,editing:s,setEditing:a,onValueChange:e.onValueChange,hiddenDivHeight:r}),(0,Dt.jsx)("p",{ref:t,style:{fontSize:14,visibility:"hidden",whiteSpace:"pre-line",width:"100%"},children:n})]})}function na({textAreaValue:e,onValueChange:t,editing:r,setEditing:o,setTextAreaValue:n,hiddenDivHeight:i}){let[s,a]=(0,j.useState)(0),c=(0,j.useCallback)(l=>{let m=l.target.value;t(m),n(m)},[t,n]),f=(0,j.useCallback)(()=>{o(!0)},[o]),d=(0,j.useCallback)(()=>{let l={textfieldRerender:s,editing:!1};s==2&&(l.textfieldRerender=1),a(l.textfieldRerender),o(l.editing)},[s,a,o]),[u,p]=(0,j.useState)(i);return(0,j.useEffect)(()=>{i!=u&&(a(r?2:1),p(i))},[i]),(0,j.useEffect)(()=>{s==1&&Promise.resolve().then(async()=>{await new Promise(requestAnimationFrame),a(0)})},[s]),s==1?"":(0,Dt.jsx)("sp-textarea",{style:{position:"absolute",height:"100%",width:"100%",top:0,left:0},value:e,onInput:c,onFocus:f,onBlur:d})}var _o=b(S(),1),Br=class extends St{onInput=t=>{let r=!!t.target.value;this.setState({value:r}),this.props.onValueChange(r)};render(){let t=this.props.value?{checked:!0}:{};return N.checkboxStyle==="div"?(0,_o.jsx)("div",{style:{...this.computeUIWeightCSS(this.props.uiWeight)},className:(t.checked?"active":"")+" sdppp-checkbox",onClick:r=>{this.props.onValueChange(!this.props.value)},children:this.props.name||""}):(0,_o.jsx)("sp-checkbox",{label:this.props.name||"",style:{...this.computeUIWeightCSS(this.props.uiWeight)},onInput:r=>{this.props.onValueChange(r.target.checked)},...t,children:this.props.name||""})}};function Ti(e){return e.replace(/^workflows\//,"").replace(/\.json$/,"").split("://").pop()}var ee=b(S(),1);function Ri(){let{callForPSDExtract:e}=ie(),{workflowAgent:t}=A(),{setWidgetValue:r}=ti(),{setShouldTriggerLivePainting:o}=Er(),{state:n}=ye(t,["/widgetTableValue","/widgetTableStructure","/widgetTableErrors"]),i=!!t?.data.hasPSDNodes,s=(0,ko.useCallback)(async(u,p,l,m)=>{await r(u,p,l),o(!0)},[r,o]),a=n?.widgetTableStructure,c=n?.widgetTableValue,f=n?.widgetTableErrors,d=(0,ko.useCallback)((u,p,l,m)=>{if(l.outputType=="PS_DOCUMENT")return u.result.push((0,ee.jsx)(Ur,{uiWeight:l.uiWeight||12,value:c?.[p.id]?.[m]||"",onSelectUpdate:g=>{s(p.id,m,g,p)},extraOptions:a?.extraOptions},m)),!0;if(l.outputType=="PS_LAYER"){let g=l.options?.documentNodeID||0,w=c?.[g]?.[0]||"";return u.result.push((0,ee.jsx)(qe,{uiWeight:l.uiWeight||12,value:c?.[p.id]?.[m]||"",documentValue:w?w.split("/").pop():"",onSelectUpdate:v=>{s(p.id,m,v,p)},extraOptions:a?.extraOptions},m)),!0}else{if(l.outputType=="IMAGE_PATH")return u.result.push((0,ee.jsx)(Ai,{uiWeight:l.uiWeight||12,value:c?.[p.id]?.[m]||"",onValueChange:async g=>{await s(p.id,m,g,p)},extraOptions:a?.extraOptions},m)),!0;if(l.outputType=="MASK_PATH")return u.result.push((0,ee.jsx)(_i,{uiWeight:l.uiWeight||12,value:c?.[p.id]?.[m]||"",onValueChange:async g=>{await s(p.id,m,g,p)},extraOptions:a?.extraOptions},m)),!0;if(l.outputType==="number"){let g=l.options?.min??0,w=l.options?.max??100,v=l.options?.step??1;u.result.push((0,ee.jsx)(ki,{uiWeight:l.uiWeight||12,name:l.name,inputMin:g,inputMax:w,inputStep:v,value:parseFloat(c?.[p.id]?.[m]||"0"),onValueChange:y=>{s(p.id,m,y,p)},extraOptions:a?.extraOptions},m))}else if(l.outputType==="combo")u.result.push((0,ee.jsx)(Ge,{uiWeight:l.uiWeight||12,name:l.name,options:l.options?.values||[],onSelectUpdate:g=>{s(p.id,m,g,p)},value:c?.[p.id]?.[m]||"",extraOptions:a?.extraOptions},m));else if(l.outputType==="toggle")u.result.push((0,ee.jsx)(Br,{uiWeight:l.uiWeight||12,name:l.name,value:c?.[p.id]?.[m]||"",onValueChange:g=>{s(p.id,m,g,p)},extraOptions:a?.extraOptions},m));else{let g=c?.[p.id]?.[m]||"";u.result.push((0,ee.jsx)(xi,{uiWeight:l.uiWeight||12,value:typeof g=="string"?g:JSON.stringify(g),onValueChange:w=>{s(p.id,m,w,p)},extraOptions:a?.extraOptions},m))}}return!1},[r,c]);return a?(0,ee.jsxs)("div",{className:"workflow-edit",children:[(0,ee.jsxs)("div",{className:"workflow-edit-title",children:[a.widgetTablePath&&(0,ee.jsx)("sp-label",{style:{fontWeight:"bold"},children:Ti(a.widgetTablePath)}),i?(0,ee.jsx)("a",{onClick:()=>{e(t?.data.sid||"").catch(u=>{alert(u.message)})},children:">"+h("sample .psd")}):""]}),(0,ee.jsx)(Lo,{widgetTableStructure:a,widgetTableValue:c||{},widgetTableErrors:f||{},onWidgetChange:s,onWidgetRender:d})]}):null}var Vr=b(E(),1);var G=b(S(),1);function Ni(){let{login:e,loginStyle:t,loginBannerTop:r,loginBannerBottom:o,setIsTrialing:n}=se(),[i,s]=(0,Vr.useState)(localStorage.getItem("last-username")||""),[a,c]=(0,Vr.useState)(""),[f,d]=(0,Vr.useState)("");return(0,G.jsxs)("div",{className:"login-container",children:[r,(0,G.jsx)("div",{className:"login-container-login",children:(0,G.jsxs)("div",{className:"login-form",children:[t==="invitation"?(0,G.jsxs)("div",{className:"login-form-item",children:[(0,G.jsx)("label",{htmlFor:"username",children:h("Invitation Code")}),(0,G.jsx)("sp-textfield",{type:"text",id:"username",placeholder:h("Please input invitation code"),value:i,onInput:u=>s(u.target.value)})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)("div",{className:"login-form-item",children:[(0,G.jsx)("label",{htmlFor:"username",children:h("Username")}),(0,G.jsx)("sp-textfield",{type:"text",id:"username",placeholder:h("Please input username"),value:i,onInput:u=>s(u.target.value)})]}),(0,G.jsxs)("div",{className:"login-form-item",children:[(0,G.jsx)("label",{htmlFor:"password",children:h("Password")}),(0,G.jsx)("sp-textfield",{type:"password",id:"password",placeholder:h("Please input password"),value:a,onInput:u=>c(u.target.value)})]})]}),(0,G.jsx)("div",{className:"login-error-message",children:f}),(0,G.jsx)("button",{className:"login-button",onClick:async()=>{let u=await e(i,a);u.success?(d(""),localStorage.setItem("last-username",i)):d(u.message)},children:h("Login")}),t==="trialable-password"&&(0,G.jsx)("a",{className:"trial-button",onClick:()=>n(!0),children:"\u6E38\u5BA2\u8BD5\u7528"})]})}),o]})}var He=b(S(),1);function Oi({renderContent:e}){let{connectState:t}=A(),{isLogin:r,isTrialing:o}=se();return(0,He.jsxs)("div",{className:"sdppp-container",style:t!=="connected"?{height:"100vh"}:{},children:[(0,He.jsx)(rt,{children:r||o?e(t,vi,Ri):(0,He.jsx)(Ni,{})}),t!="connected"&&(0,He.jsx)(mi,{}),o&&(0,He.jsx)("div",{className:"sdppp-trial-tips",children:(0,He.jsx)("span",{children:"\u6E38\u5BA2\u8BD5\u7528\u4E2D\uFF0C\u767B\u9646\u89E3\u9501\u66F4\u591A\u529F\u80FD"})})]})}var Wi=b(E(),1);var it=b(S(),1);function Mi(){let e=A(),{toggleWebviewDialog:t}=J(),r=(0,Wi.useCallback)(()=>{t()},[t]);return(0,it.jsx)("div",{className:"auths-bar",children:(0,it.jsx)("div",{className:"identifier-bar",children:(0,it.jsxs)("div",{className:"identifier-bar-left",children:[(0,it.jsx)(Or,{}),e.comfyMultiUser&&(0,it.jsx)(Nr,{onRequestLogin:r})]})})})}var qt=b(E(),1),Ui=b(E(),1),Fi=O("uxp"),xo=b(S(),1);function Bi(){let e=document.getElementById("color_computer")?.style.color||"#777",{data:t,isLoading:r}=Tr(),o=(0,qt.useRef)(null),[n,i]=(0,qt.useState)(!1),[s,a]=(0,qt.useState)(!1);if((0,Ui.useEffect)(()=>{o.current&&(r||s||(a(!0),o.current.addEventListener("loadstop",d=>{d.target.postMessage({action:"init",payload:{color:e,cloud:f}})}),o.current.addEventListener("loaderror",d=>{i(!0)}),o.current.addEventListener("message",d=>{let u=d.message;if(!u)return;let p=JSON.parse(u);p.action==="open"&&Fi.shell.openExternal(p.payload.url)})))},[o,r]),r||n)return(0,xo.jsx)("div",{style:{height:"8px"}});let c="./promote.html?color="+e,f=t.cloud[$e()=="zhcn"?"zhcn":"en"];return f.length==0?null:(0,xo.jsx)("webview",{ref:o,className:"promote-webview",style:{width:"100%",height:"24px"},src:c})}Object.assign(globalThis,{SDPPPInternal:To});})(); -/*! Bundled license information: - -fast-json-patch/module/helpers.mjs: - (*! - * https://github.com/Starcounter-Jack/JSON-Patch - * (c) 2017-2022 Joachim Wester - * MIT licensed - *) - -fast-json-patch/module/duplex.mjs: - (*! - * https://github.com/Starcounter-Jack/JSON-Patch - * (c) 2017-2021 Joachim Wester - * MIT license - *) -*/ diff --git a/plugins/photoshop/icons/sdppp_D.png b/plugins/photoshop/icons/sdppp_D.png deleted file mode 100644 index bab0a75..0000000 Binary files a/plugins/photoshop/icons/sdppp_D.png and /dev/null differ diff --git a/plugins/photoshop/icons/sdppp_D@1x.png b/plugins/photoshop/icons/sdppp_D@1x.png deleted file mode 100644 index bab0a75..0000000 Binary files a/plugins/photoshop/icons/sdppp_D@1x.png and /dev/null differ diff --git a/plugins/photoshop/icons/sdppp_D@2x.png b/plugins/photoshop/icons/sdppp_D@2x.png deleted file mode 100644 index 0e88872..0000000 Binary files a/plugins/photoshop/icons/sdppp_D@2x.png and /dev/null differ diff --git a/plugins/photoshop/icons/sdppp_L.png b/plugins/photoshop/icons/sdppp_L.png deleted file mode 100644 index aa3bcca..0000000 Binary files a/plugins/photoshop/icons/sdppp_L.png and /dev/null differ diff --git a/plugins/photoshop/icons/sdppp_L@1x.png b/plugins/photoshop/icons/sdppp_L@1x.png deleted file mode 100644 index aa3bcca..0000000 Binary files a/plugins/photoshop/icons/sdppp_L@1x.png and /dev/null differ diff --git a/plugins/photoshop/icons/sdppp_L@2x.png b/plugins/photoshop/icons/sdppp_L@2x.png deleted file mode 100644 index 8bc7e1a..0000000 Binary files a/plugins/photoshop/icons/sdppp_L@2x.png and /dev/null differ diff --git a/plugins/photoshop/index.html b/plugins/photoshop/index.html deleted file mode 100644 index 4b8d520..0000000 --- a/plugins/photoshop/index.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/photoshop/manifest.json b/plugins/photoshop/manifest.json deleted file mode 100644 index d1491b0..0000000 --- a/plugins/photoshop/manifest.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "id": "sd-ppp", - "name": "SD-PPP", - "version": "1.9.4", - "main": "index.html", - "manifestVersion": 5, - "host": { - "app": "PS", - "minVersion": "24.4.0" - }, - "featureFlags": { - "enableAlerts": true - }, - "requiredPermissions": { - "network": { - "domains": "all" - }, - "allowCodeGenerationFromStrings": true, - "launchProcess": { - "schemes": [ - "http", - "https" - ], - "extensions": [ - ".svg", - ".png" - ] - }, - "webview": { - "allow": "yes", - "allowLocalRendering": "yes", - "domains": "all", - "enableMessageBridge": "localAndRemote" - } - }, - "entrypoints": [ - { - "type": "panel", - "id": "sdppp-connect", - "label": { - "default": "SD-PPP 1.9.4" - }, - "minimumSize": { - "width": 300, - "height": 100 - }, - "maximumSize": { - "width": 3440, - "height": 1440 - }, - "preferredDockedSize": { - "width": 300, - "height": 540 - }, - "preferredFloatingSize": { - "width": 300, - "height": 540 - }, - "icons": [ - { - "width": 23, - "height": 23, - "path": "icons/sdppp_D.png", - "scale": [ - 1, - 2 - ], - "theme": [ - "darkest", - "dark", - "medium" - ] - }, - { - "width": 23, - "height": 23, - "path": "icons/sdppp_L.png", - "scale": [ - 1, - 2 - ], - "theme": [ - "lightest", - "light" - ] - } - ] - } - ], - "icons": [ - { - "width": 23, - "height": 23, - "path": "icons/sdppp_D.png", - "scale": [ - 1, - 2 - ], - "theme": [ - "darkest", - "dark", - "medium" - ], - "species": [ - "pluginList" - ] - }, - { - "width": 48, - "height": 48, - "path": "icons/sdppp_L.png", - "scale": [ - 1, - 2 - ], - "theme": [ - "lightest", - "light" - ], - "species": [ - "pluginList" - ] - } - ] -} diff --git a/plugins/photoshop/promote.html b/plugins/photoshop/promote.html deleted file mode 100644 index 79b3b96..0000000 --- a/plugins/photoshop/promote.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - - - - -
    - 云端推荐 - - - -
    - - - - \ No newline at end of file diff --git a/plugins/photoshop/run.js b/plugins/photoshop/run.js deleted file mode 100644 index 2175a85..0000000 --- a/plugins/photoshop/run.js +++ /dev/null @@ -1,90 +0,0 @@ - -const { entrypoints } = require("uxp"); - -const _id = Symbol("_id"); -const _root = Symbol("_root"); -const _attachment = Symbol("_attachment"); -const _menuItems = Symbol("_menuItems"); - -class PanelController { - constructor({ id, menuItems } = {}) { - this[_id] = null; - this[_root] = null; - this[_attachment] = null; - this[_menuItems] = []; - - this[_id] = id; - this[_menuItems] = menuItems || []; - this.menuItems = this[_menuItems].map(menuItem => ({ - id: menuItem.id, - label: menuItem.label, - enabled: menuItem.enabled || true, - checked: menuItem.checked || false - })); - - ["create", "show", "hide", "destroy", "invokeMenu"].forEach(fn => this[fn] = this[fn].bind(this)); - } - - create() { - this[_root] = document.createElement("div"); - this[_root].style.height = "100vh"; - this[_root].style.overflowY = "hidden"; - this[_root].style.overflowX = "hidden"; - - // render entry - // 渲染入口 - sdppp.renderPhotoshopPlugin(this[_root]); - - return this[_root]; - } - - show(event) { - if (!this[_root]) this.create(); - this[_attachment] = event; - this[_attachment].appendChild(this[_root]); - } - - hide() { - if (this[_attachment] && this[_root]) { - this[_attachment].removeChild(this[_root]); - this[_attachment] = null; - } - } - - destroy() { } - - invokeMenu(id) { - const menuItem = this[_menuItems].find(c => c.id === id); - if (menuItem) { - const handler = menuItem.oninvoke; - if (handler) { - handler(); - } - } - } -} - -entrypoints.setup({ - plugin: { - create(plugin) { - }, - destroy() { - } - }, - panels: { - 'sdppp-connect': new PanelController({ - id: "sdppp-connect", menuItems: [ - { - id: "sdppp-connect-log", - label: "查看日志", - enabled: true, - checked: false, - oninvoke: () => { - const logs = globalThis.sdpppX.getLogs(); - alert(JSON.stringify(logs)); - } - } - ] - }), - } -}); \ No newline at end of file diff --git a/plugins/photoshop/sdpppX.js b/plugins/photoshop/sdpppX.js deleted file mode 100644 index eb7dcc6..0000000 --- a/plugins/photoshop/sdpppX.js +++ /dev/null @@ -1,2 +0,0 @@ -global.sdpppX = { -} \ No newline at end of file diff --git a/static/sd-ppp2_PS.ccx b/static/sd-ppp2_PS.ccx index 1fb1c8a..955214f 100644 Binary files a/static/sd-ppp2_PS.ccx and b/static/sd-ppp2_PS.ccx differ diff --git a/static/sd-ppp2_PS.zip b/static/sd-ppp2_PS.zip index 1fb1c8a..955214f 100644 Binary files a/static/sd-ppp2_PS.zip and b/static/sd-ppp2_PS.zip differ diff --git a/static/sd-ppp_PS.ccx b/static/sd-ppp_PS.ccx index 778f910..fea8a55 100644 Binary files a/static/sd-ppp_PS.ccx and b/static/sd-ppp_PS.ccx differ diff --git a/typescripts/modules/comfy/src/popup/tsx/Settings.tsx b/typescripts/modules/comfy/src/popup/tsx/Settings.tsx index afc8a72..50fc968 100644 --- a/typescripts/modules/comfy/src/popup/tsx/Settings.tsx +++ b/typescripts/modules/comfy/src/popup/tsx/Settings.tsx @@ -28,7 +28,7 @@ const Settings: React.FC = () => {
    - +
    - +