1import{j as jsxRuntimeExports}from"./jsx-runtime-D_zvdyIk.js";import{v as reactExports,n as getDefaultExportFromCjs,R as React,z as useFetcher,I as useRevalidator}from"./chunk-4N6VE7H7-CYH4PXiQ.js";import"./runtime-2_b2CLRu.js";import{A as AccountSubscriptionTier}from"./AccountSubscriptionTier-Cz37hh3K.js";import{F as FileEncryptionKeyToJSON,j as SharingBucketToJSON,C as ContentItemFromJSON,n as base64Encode,P as PlatformSubscriptionPeriod,g as PlatformSubscriptionStatusEnum}from"./file-sharing-provider-DWrH9fGx.js";import{s as selectActionableElements,c as config,a as getSharingBucketExpirationLabel,g as getFileSize,A as AuthModal}from"./get-sharing-bucket-expiration-label-CKPg3s26.js";import{u as useUser}from"./user-context-H9i7VnPA.js";import{a as CryptoCurrencyFromJSON,B as BaseAPI$1,J as JSONApiResponse$1,C as CryptoCurrency}from"./CryptoCurrency-C8i-2yC7.js";import{f as formatCryptoCurrency}from"./format-crypto-currency-DU9teVm2.js";import{a as createBackendError,i as isBackendError,u as useLMWRContext,c as chevronRightIcon}from"./lmwr-context-BdnFN4FZ.js";import{u as useStateRef}from"./use-state-ref-0aYGV7fB.js";import{u as useCallbackRef}from"./use-callback-ref-CJ9SODNh.js";import{L as LoadingArc}from"./base-button-BOVQiXV3.js";import{r as useModalContext,h as ModalNavigationButtons,d as ModalContentWindow,g as ModalContentWindowTitleHeader,M as Modal}from"./modal-content-window-title-header-DByhHMtf.js";import{B as ButtonForwardedRef}from"./button-CB2fQLpx.js";import{A as Alert}from"./alert-Bsob527P.js";import{u as useAuthenticityToken}from"./authenticity-token-CFgl6Z4h.js";import{j as finalFormValidation,I as IconButtonForwardedRef,f as assignRef}from"./form-validation-BmVkRcjs.js";import{c as cn}from"./index-5zs3RZdd.js";import{T as ToggleForwardedRef,b as ToggleInput}from"./toggle-group-BSQQLJtK.js";import{I as Icon}from"./focus-visible-outline-CA5WDHp1.js";import{ar as objectType,aq as numberType,aF as stringType,a5 as enumType,_ as booleanType,X as arrayType,K as ZodString,N as NEVER,W as anyType}from"./types-CeqL-daw.js";import{C as ClientOnly}from"./client-only-CnbT09nL.js";import{f as format}from"./index-CWrIKnBx.js";import{B as BaseAPI,R as RequiredError,J as JSONApiResponse}from"./runtime-a9fv597q.js";import{A as ApiResponseError,g as getApi,w as wrapApiResponse}from"./get-api-DWzc_bBF.js";import{c as createInvalidatablePromise}from"./result-BtcenhOc.js";import{l as lazyWalletSingleton,u as useExternalWallet}from"./use-external-wallet-DbvtV7U2.js";import{u as useApiContext}from"./api-context-7msjQt-g.js";import{u as formatUnits,s as UserRejectedRequestError,B as BaseError}from"./rpc-CIWWEHu4.js";import{p as parseUnits}from"./parseUnits-CO_wz_ch.js";import{u as useConst}from"./use-const-CyuDI2Jw.js";import{O as Tooltip}from"./tooltip-Dh-GCyoz.js";import{r as resolveToNode}from"./resolve-to-node-Bl44lgnH.js";const PaymentIntentStatusEnum$1={Confirmation:"requires_confirmation",Action:"requires_action",PaymentMethod:"requires_payment_method"},ChangeAccountSubscriptionResponseUpdateAccountSubscriptionActionEnum={UpgradingUserActionRequired:"UPGRADING_USER_ACTION_REQUIRED"};function SharingContentInfoContentItemsInnerToJSON(t){return t==null?t:{contentItemId:t.contentItemId,privateKey:t.privateKey}}function SharingContentInfoToJSON(t){return t==null?t:{sharingBucket:SharingBucketToJSON(t.sharingBucket),fileEncryptionKey:FileEncryptionKeyToJSON(t.fileEncryptionKey),contentItems:t.contentItems==null?void 0:t.contentItems.map(SharingContentInfoContentItemsInnerToJSON)}}const PaymentTypeEnum={Credits:"CREDITS"};function PaymentTypeEnumToJSON(t){return t}function ExecuteActionRequestToJSON(t){return t==null?t:{actionParams:t.actionParams,filesharingInfo:SharingContentInfoToJSON(t.filesharingInfo),paymentType:t.paymentType}}function ExecuteActionResponseFromJSON(t){return ExecuteActionResponseFromJSONTyped(t)}function ExecuteActionResponseFromJSONTyped(t,e){return t==null?t:{generationId:t.generationId,contentItems:t.contentItems.map(ContentItemFromJSON)}}class ActionApi extends BaseAPI{async executeActionRaw(e,o){if(e.actionId==null)throw new RequiredError("actionId",'Required parameter "actionId" was null or undefined when calling executeAction().');const n={},a={};if(a["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){const s=this.configuration.accessToken,l=await s("jwt",[]);l&&(a.Authorization=`Bearer ${l}`)}const i=await this.request({path:"/actions/{actionId}/execute".replace("{actionId}",encodeURIComponent(String(e.actionId))),method:"POST",headers:a,query:n,body:ExecuteActionRequestToJSON(e.executeActionRequest)},o);return new JSONApiResponse(i,s=>ExecuteActionResponseFromJSON(s))}async executeAction(e,o){return await(await this.executeActionRaw(e,o)).value(
1)}}const chevronLeftIcon="/build/assets/chevron-left-icon-AykfI70e.svg",arrowUpIcon="/build/assets/arrow-up-icon-DdHTtYMW.svg",arrowDownIcon="/build/assets/arrow-down-icon-D7F7oqtw.svg",useTextOverflow=()=>{const[t,e]=reactExports.useState(null),[o,n]=reactExports.useState(null),[a,i]=reactExports.useState(null);reactExports.useEffect(()=>{if(o&&t){const l=new IntersectionObserver(r=>{const u=r[r.length-1];if(u){const{isIntersecting:d}=u,c=!d,p=t.getBoundingClientRect();selectActionableElements(t).forEach(b=>{b.getBoundingClientRect().top>p.bottom?b.style.visibility="hidden":b.style.visibility=""}),i(c)}},{root:t,threshold:0});return l.observe(o),()=>l.disconnect()}},[t,o]);const s=reactExports.useMemo(()=>function({className:r,...u}){return jsxRuntimeExports.jsx("span",{ref:n,...u,className:cn("default:block default:h-[1px] default:w-[1px] translate-y-px",r)})},[]);return{setElement:e,IntersectionElement:s,textOverflow:a}},renderOptions=(t,e,o)=>Object.entries(t).map(([n,a])=>jsxRuntimeExports.jsx("button",{className:cn("rounded-full h-full px-3 xs:px-4 flex items-center ",{"hover:bg-slate-100 focus-visible:bg-slate-100 text-slate-600 type-d-50-medium 2xl:type-d-75-medium cursor-pointer":n!==e,"bg-white text-slate-800 type-d-50-bold 2xl:type-d-75-bold cursor-default":n===e}),onClick:()=>o(n),children:a},n)),SwitchSelect=({className:t,value:e,options:o,onChange:n})=>{const a=reactExports.useMemo(()=>Array.isArray(o)?o.reduce((i,s)=>({...i,[s]:s}),{}):o,[o]);return jsxRuntimeExports.jsx("div",{className:cn("w-max rounded-full h-10 2xl:h-12 px-1 xs:px-2.5 py-1 bg-slate-200 flex flex-nowrap gap-1 xs:gap-3",t),children:renderOptions(a,e,n)})},buttonThemeMap={default:(t,e)=>cn({"border-slate-300 bg-white hover:border-primary-300 hover:bg-primary-25":!t,"border-primary-900 bg-primary-50":t,"text-slate-400":e,"text-slate-700":!e}),solid:(t,e)=>cn({"border-transparent bg-slate-100 hover:bg-slate-200":!t,"border-primary-900 bg-primary-900":t,"text-white":!e&&t,"text-slate-900":!e&&!t})},ToggleButton=({children:t,className:e,id:o,name:n,type:a="radio",value:i,checked:s,defaultChecked:l,disabled:r,onCheckedChange:u,inputProps:d,hideIndicator:c,theme:p="default",...m},b)=>jsxRuntimeExports.jsx(ToggleForwardedRef,{id:o,name:n,type:a,value:i,checked:s,defaultChecked:l,disabled:r,onCheckedChange:u,...m,children:({checked:g,disabled:f,type:y,id:x})=>jsxRuntimeExports.jsxs("div",{className:cn("default:type-d-75-medium default:text-center default:rounded-lg default:py-2.5 default:px-3 default:border default:flex default:items-center default:gap-x-3 default:relative transition-colors group/toggle-button",buttonThemeMap[p](g,f),e),children:[!c&&jsxRuntimeExports.jsxs("div",{className:cn("border w-4 h-4 flex-none transition-colors bg-white",{"rounded-full p-1":y==="radio","rounded-sm p-0.5":y==="checkbox","border-slate-300 bg-white group-hover/toggle-button:border-primary-300":!g,"border-primary-900":g}),children:[y==="radio"&&jsxRuntimeExports.jsx("div",{className:cn("rounded-full w-full h-full transition-opacity",{"bg-primary-900":!f,"bg-primary-500":f,"opacity-100":g,"opacity-0":!g})}),y==="checkbox"&&jsxRuntimeExports.jsx("svg",{viewBox:"0 0 10 8",className:cn("w-full h-full ",{"stroke-primary-900":!f,"stroke-primary-500":f,"opacity-100":g,"opacity-0":!g}),xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M9 1L3.5 6.5L1 4",fill:"none",strokeWidth:"1.6666",strokeLinecap:"round",strokeLinejoin:"round"})})]}),jsxRuntimeExports.jsx("div",{className:"w-full min-w-0",children:t}),jsxRuntimeExports.jsx(ToggleInput,{className:"sr-only peer/toggle-input",...d,ref:b}),jsxRuntimeExports.jsx("label",{htmlFor:x,className:cn("rounded-[inherit] absolute inset-0 peer-focus-visible/toggle-input:outline-2 peer-focus-visible/toggle-input:outline-primary-900 peer-focus-visible/toggle-input:outline-offset-2",{"default:cursor-pointer":!f,"cursor-not-allowed":f})})]})}),ToggleButtonForwardedRef=reactExports.forwardRef(ToggleButton),editImageV1Icon="/build/assets/edit-image-v1-DcsN-A1A.svg",editImageV1Definition={id:"edit-image-v1",name:"Edit Image",description:"Edit an image by providing a prompt with the desired changes.",internal:!1,aiAction:!0,actionAdjective:"edited",inputJsonSchema:{type:"object",properties:{prompt:{type:"string",description:"Describe what you want to see in the generated image. A clear, detailed prompt specifying elements, colors, and subjects will yield better results.",maxLength:1e4},temperature:{type:"number",description:"Temperature controls how predictable or creative the generated images are. Lower values make images more consistent with the prompt, while higher values introduce more variety and unexpected details.",minimum:0,maximum:1,default:1,multipleOf:.05},"top-p":{type:"number",description:"Top-P controls how many possible options the model considers when generating an image. Lower values keep it focused on only the most likely details, while higher values let it mix in less likely but more varied possibilities.",minimum:0,maximum:1,default:.95,multipleOf:.05},seed:{type:"integer",minimum:0,maximum:2147483647,"x-component":"NumericSeed"}},required:["prompt"]},minimumTier:"FREE",maximumInputContentItems:25,temporarilyDisabled:!1,supportedInputContentTypes:[],supportedInputContentClass:["IMAGE"],pricingJsFunction:"(function(actionParams,contentItems){const singlePrice=6;const individualPricing={};
1contentItems.forEach(item=>individualPricing[item.id]=singlePrice);return{totalPrice:singlePrice*contentItems.length,individualPricing:individualPricing}})(actionParams,contentItems);"},editImageV1OptionsSchema=objectType({prompt:stringType().max(1e4),temperature:numberType().multipleOf(.05).gte(0).lte(1),"top-p":numberType().multipleOf(.05).gte(0).lte(1),seed:numberType().int().gte(0).lte(2147483647).optional()}),genericConvertV1Icon="/build/assets/generic-convert-v1-TheM16VB.svg",genericConvertV1Definition={id:"generic-convert-v1",name:"Convert to ...",description:"Convert different types of files.",internal:!1,aiAction:!1,actionAdjective:"converted",inputJsonSchema:{type:"object",required:["targetType"],properties:{targetType:{type:"string","x-component":"DynamicSchema"}}},minimumTier:"FREE",maximumInputContentItems:10,temporarilyDisabled:!1,requireSameInputContentType:!0,supportedInputContentTypes:["application/pdf","image/png","image/jpeg","image/gif","image/bmp","image/svg+xml","image/webp","image/tiff","application/x-mobi8-ebook","application/x-mobipocket-ebook","application/vnd.amazon.mobi8-ebook","application/epub+zip","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/avif","image/x-icon","application/vnd.visio","application/vnd.ms-visio.drawing","image/vnd.adobe.photoshop","application/x-photoshop","application/postscript","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.apple.numbers","application/vnd.apple.keynote","application/vnd.apple.pages","text/csv","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.oasis.opendocument.chart","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.oasis.opendocument.graphics","text/markdown","image/vnd.djvu","image/x-djvu","model/vnd-dwf","model/vnd.dwfx+xps","image/vnd.dwg","image/vnd.dxf","application/eps","application/x-eps","image/eps","image/x-eps","text/rtf","text/richtext","application/rtf","application/x-mspublisher"],supportedInputContentClass:[],pricingJsFunction:"(function(actionParams,contentItems){const singlePrice=7.5;const individualPricing={};contentItems.forEach(item=>individualPricing[item.id]=singlePrice);return{totalPrice:singlePrice*contentItems.length,individualPricing:individualPricing}})(actionParams,contentItems);"},genericConvertV1OptionsSchema=objectType({targetType:stringType()}),googleGeminiTextToImageV1Definition={id:"google-gemini-text-to-image-v1",name:"Google Gemini 2.5",outputContentClass:"IMAGE",internal:!1,aiAction:!0,inputJsonSchema:{type:"object",properties:{prompt:{type:"string",description:"Describe the image you want to generate...",maxLength:2e3,"x-component":"CreationPrompt"},temperature:{type:"number",description:"Temperature controls how predictable or creative the generated images are. Lower values make images more consistent with the prompt, while higher values introduce more variety and unexpected details.",minimum:0,maximum:1,default:1,multipleOf:.05},"top-p":{type:"number",description:"Top-P controls how many possible options the model considers when generating an image. Lower values keep it focused on only the most likely details, while higher values let it mix in less likely but more varied possibilities.",minimum:0,maximum:1,default:.95,multipleOf:.05},imageSize:{type:"string",description:"The aspect ratio of the generated image.",default:"1:1",enum:["1:1","3:2","2:3","3:4","4:3","4:5","5:4","9:16","16:9","21:9"]},seed:{type:"integer",minimum:0,maximum:2147483647,"x-component":"NumericSeed"}},required:["prompt","imageSize"]},minimumTier:"PRO",maximumInputContentItems:0,temporarilyDisabled:!1,supportedInputContentTypes:[],supportedInputContentClass:[],pricingJsFunction:"(function(actionParams,contentItems){return{totalPrice:6}})(actionParams,contentItems);"},googleGeminiTextToImageV1OptionsSchema=objectType({prompt:stringType().max(2e3),temperature:numberType().multipleOf(.05).gte(0).lte(1),"top-p":numberType().multipleOf(.05).gte(0).lte(1),imageSize:enumType(["1:1","3:2","2:3","3:4","4:3","4:5","5:4","9:16","16:9","21:9"]),seed:numberType().int().gte(0).lte(2147483647).optional()}),googleGeminiTextToImageV1Icon=void 0,imageToVectorV1Icon="/build/assets/image-to-vector-v1-fhf3Q0K0.svg",imageToVectorV1Def
1inition={id:"image-to-vector-v1",name:"Image to Vector Graphics",description:"Convert a rasterized image to vector graphics. This is useful for creating scalable graphics that can be resized without losing quality.",internal:!1,aiAction:!0,actionAdjective:"vectorized",inputJsonSchema:{type:"object",properties:{maxColors:{type:"string",description:"The maximum number of colors to use for the result.",enum:["monochrome","full_color"],default:"full_color","x-enum-labels":{monochrome:"Monochrome",full_color:"Full Color"}},outputFileFormat:{type:"string",description:"Choose the output file format for the vectorized image. The SVG format is recommended for most use cases, while EPS and PDF are suitable for print and professional design applications. DXF is used for CAD applications.",enum:["svg","eps","pdf","dxf"],"x-component":"RadioButtonGroup"},drawStyle:{type:"string",description:"Specify how you want the output to be stroked or filled. There's a subtle difference between stroking the shapes and stroking the edges between them.",enum:["fill_shapes","stroke_shapes","stroke_edges"],default:"fill_shapes","x-enum-labels":{fill_shapes:"Fill Shapes",stroke_shapes:"Stroke Shapes",stroke_edges:"Stroke Edges"}},outputParametrizedShapesFlatten:{type:"boolean",description:"Flatten identified circles, ellipses, rectangles, triangles, and stars to ordinary curves.",default:!1},outputGapFillerEnabled:{type:"boolean",description:"Whether to work around the white line rendering bugs common in vector viewers.",default:!0}},required:["outputFileFormat"]},minimumTier:"FREE",maximumInputContentItems:10,temporarilyDisabled:!1,supportedInputContentTypes:["image/jpeg","image/png","image/tiff","image/webp"],supportedInputContentClass:[],pricingJsFunction:"(function(actionParams,contentItems){const singlePrice=30;const individualPricing={};contentItems.forEach(item=>individualPricing[item.id]=singlePrice);return{totalPrice:singlePrice*contentItems.length,individualPricing:individualPricing}})(actionParams,contentItems);"},imageToVectorV1OptionsSchema=objectType({maxColors:enumType(["monochrome","full_color"]),outputFileFormat:enumType(["svg","eps","pdf","dxf"]),drawStyle:enumType(["fill_shapes","stroke_shapes","stroke_edges"]),outputParametrizedShapesFlatten:booleanType(),outputGapFillerEnabled:booleanType()}),imageToVideoV1Icon="/build/assets/image-to-video-v1-W14tqmKi.svg",imageToVideoV1Definition={id:"image-to-video-v1",name:"Image to Video",description:"Automatically convert any image to a short video.",internal:!1,aiAction:!0,actionAdjective:"animated",inputJsonSchema:{type:"object",properties:{prompt:{type:"string",description:"Describe the video you want to generate. The model will use this description to generate a video from the image.",maxLength:512},duration:{type:"string",description:"The duration of the generated video in seconds.",enum:["5s","10s"],"x-enum-labels":{"5s":"5 Seconds","10s":"10 Seconds"},default:"5s","x-component":"RadioButtonGroup"},resolution:{type:"string",description:"The resolution of the generated video in pixels.",enum:["1280x720","720x1280","1104x832","832x1104","960x960","1584x672"],default:"1280x720","x-component":"RadioButtonGroup"},seed:{type:"integer",minimum:0,maximum:4294967294,"x-component":"NumericSeed"}},required:["prompt"]},minimumTier:"FREE",maximumInputContentItems:10,temporarilyDisabled:!1,supportedInputContentTypes:[],supportedInputContentClass:["IMAGE"],pricingJsFunction:'(function(actionParams,contentItems){const singlePrice=actionParams.duration==="5s"?37.5:75;const individualPricing={};contentItems.forEach(item=>individualPricing[item.id]=singlePrice);return{totalPrice:singlePrice*contentItems.length,individualPricing:individualPricing}})(actionParams,contentItems);'},imageToVideoV1OptionsSchema=objectType({prompt:stringType().max(512),duration:enumType(["5s","10s"]),resolution:enumType(["1280x720","720x1280","1104x832","832x1104","960x960","1584x672"]),seed:numberType().int().gte(0).lte(4294967294).optional()}),pdfAnyToPdfV1Icon="/build/assets/pdf-any-to-pdf-v1-DYephJ-f.svg",pdfAnyToPdfV1Definition={id:"pdf-any-to-pdf-v1",name:"Convert to PDF",description:"Convert various file types to PDF.",internal:!1,aiAction:!1,actionAdjective:"converted",inputJsonSchema:{type:"object",properties:{compression:{type:"string",description:"Level of compression for images.",enum:["lossless","lossy"],default:"lossless","x-enum-labels":{lossless:"Lossless compression",lossy:"Compression with loss of quality"},"x-always-visible":!0},downsample:{type:"string",description:"Resolution of images.",enum:["off","75","150","300","600","1200"],default:"off","x-enum-labels":{75:"75 dpi",150:"150 dpi",300:"300 dpi",600:"600 dpi",1200:"1200 dpi",off:"Preserve original resolution"},"x-always-visible":!0},locale:{type:"string",description:"Microsoft Excel only - Choose the right locale for the Excel document",enum:["US","Germany"],default:"US"},taggedPdf:{type:"string",description:"Create a tagged PDF document, required for accessibility compliance",default:"off",enum:["on","off"],"x-enum-labels":{on:"On",off:"Off"}}}},minimumTier:"FREE",maximumInputContentItems:10,temporarilyDisabled:!1,supportedInputContentClass:[],supportedInputContentTypes:["application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","image/jpeg","image/tiff","image/bmp","image/png"],supportedContentItemFilterJsFunction:"(function(contentItem){return contentItem.size<524288e3})(contentItem);",pricingJsFunction:"(function(actionParams,contentItems){const basePrice=16.5;const individualPricing={};let totalPrice=0;
1contentItems.forEach(item=>{const sizeInMB=item.size/1024/1024;const additionalPrice=Math.max(0,sizeInMB-50);individualPricing[item.id]=basePrice+additionalPrice;totalPrice+=basePrice+additionalPrice});return{totalPrice:totalPrice,individualPricing:individualPricing}})(actionParams,contentItems);"},pdfAnyToPdfV1OptionsSchema=objectType({compression:enumType(["lossless","lossy"]),downsample:enumType(["off","75","150","300","600","1200"]),locale:enumType(["US","Germany"]),taggedPdf:enumType(["on","off"])}),pdfArchiveV1Icon="/build/assets/pdf-archive-v1-BVVtrKIz.svg",pdfArchiveV1Definition={id:"pdf-archive-v1",name:"Archive PDF",description:"Create an archival-ready PDF/A document from a standard PDF.",internal:!1,aiAction:!1,actionAdjective:"archived",inputJsonSchema:{type:"object",properties:{outputType:{type:"string",description:"The PDF/A format of the generated PDF.",enum:["PDF/A-1b","PDF/A-2b","PDF/A-3b"],"x-enum-labels":{"PDF/A-1b":"PDF/A-1b (most compatible)","PDF/A-2b":"PDF/A-2b (better visual quality)","PDF/A-3b":"PDF/A-3b (for embedded documents)"},default:"PDF/A-2b","x-always-visible":!0}}},minimumTier:"FREE",maximumInputContentItems:10,temporarilyDisabled:!1,supportedInputContentTypes:["application/pdf"],supportedInputContentClass:[],supportedContentItemFilterJsFunction:"(function(contentItem){return contentItem.size<524288e3})(contentItem);",pricingJsFunction:"(function(actionParams,contentItems){const basePrice=16.5;const individualPricing={};let totalPrice=0;contentItems.forEach(item=>{const sizeInMB=item.size/1024/1024;const additionalPrice=Math.max(0,sizeInMB-50);individualPricing[item.id]=basePrice+additionalPrice;totalPrice+=basePrice+additionalPrice});return{totalPrice:totalPrice,individualPricing:individualPricing}})(actionParams,contentItems);"},pdfArchiveV1OptionsSchema=objectType({outputType:enumType(["PDF/A-1b","PDF/A-2b","PDF/A-3b"])}),pdfCompressV1Icon="/build/assets/pdf-compress-v1-CHEJYG_E.svg",pdfCompressV1Definition={id:"pdf-compress-v1",name:"Compress PDF",description:"Reduce the file size by compressing an existing PDF document.",internal:!1,aiAction:!1,actionAdjective:"compressed",inputJsonSchema:{type:"object",required:["compressionLevel"],properties:{compressionLevel:{type:"string",description:"The level of compression of the generated PDF.",enum:["low","medium","high"],"x-enum-labels":{low:"Low (Higher quality)",medium:"Medium (Reduced quality)",high:"High (Lowest quality)"}}}},minimumTier:"FREE",maximumInputContentItems:10,temporarilyDisabled:!1,supportedInputContentTypes:["application/pdf"],supportedInputContentClass:[],supportedContentItemFilterJsFunction:"(function(contentItem){return contentItem.size<524288e3})(contentItem);",pricingJsFunction:"(function(actionParams,contentItems){const basePrice=16.5;const individualPricing={};let totalPrice=0;contentItems.forEach(item=>{const sizeInMB=item.size/1024/1024;const additionalPrice=Math.max(0,sizeInMB-50);individualPricing[item.id]=basePrice+additionalPrice;totalPrice+=basePrice+additionalPrice});return{totalPrice:totalPrice,individualPricing:individualPricing}})(actionParams,contentItems);"},pdfCompressV1OptionsSchema=objectType({compressionLevel:enumType(["low","medium","high"])}),pdfEncryptV1Icon="/build/assets/pdf-encrypt-v1-DSSS6ZKh.svg",pdfEncryptV1Definition={id:"pdf-encrypt-v1",name:"Encrypt PDF",description:"Encrypt a PDF document by adding a password.",internal:!1,aiAction:!1,actionAdjective:"encrypted",inputJsonSchema:{type:"object",required:["newPassword"],properties:{newPassword:{type:"string",description:"The password for the generated PDF. (must be between 6 and 128 characters)",minLength:6,maxLength:50},currentOpenPassword:{type:"string",description:"The password to open the input PDF."},currentPermissionsPassword:{type:"string",description:"The password to change the input PDF permissions."}}},minimumTier:"FREE",maximumInputContentItems:10,temporarilyDisabled:!1,supportedInputContentTypes:["application/pdf"],supportedInputContentClass:[],supportedContentItemFilterJsFunction:"(function(contentItem){return contentItem.size<524288e3})(contentItem);",pricingJsFunction:"(function(actionParams,contentItems){const basePrice=16.5;const individualPricing={};let totalPrice=0;
1contentItems.forEach(item=>{const sizeInMB=item.size/1024/1024;const additionalPrice=Math.max(0,sizeInMB-50);individualPricing[item.id]=basePrice+additionalPrice;totalPrice+=basePrice+additionalPrice});return{totalPrice:totalPrice,individualPricing:individualPricing}})(actionParams,contentItems);"},pdfEncryptV1OptionsSchema=objectType({newPassword:stringType().min(6).max(50),currentOpenPassword:stringType().optional(),currentPermissionsPassword:stringType().optional()}),pdfMergeV1Definition={id:"pdf-merge-v1",name:"Merge multiple PDFs",internal:!1,aiAction:!1,minimumTier:"FREE",actionAdjective:"merged",maximumInputContentItems:10,temporarilyDisabled:!0,supportedInputContentTypes:["application/pdf"],supportedInputContentClass:[],supportedContentItemFilterJsFunction:"(function(contentItem){return contentItem.size<524288e3})(contentItem);",pricingJsFunction:"(function(actionParams,contentItems){return{totalPrice:16.5}})(actionParams,contentItems);"},pdfMergeV1OptionsSchema=objectType({}),pdfMergeV1Icon=void 0,pdfPdfToAnyV1Icon="/build/assets/pdf-pdf-to-any-v1-D4eaFrWk.svg",pdfPdfToAnyV1Definition={id:"pdf-pdf-to-any-v1",name:"Convert PDF to Word/Excel/PPT",description:"Convert a PDF to an editable document format like Word, Excel (for tables), or PowerPoint.",internal:!1,aiAction:!1,actionAdjective:"converted",inputJsonSchema:{type:"object",required:["destinationFormat"],properties:{destinationFormat:{type:"string",description:"The generated file type.",enum:["word","excel","powerpoint"],"x-enum-labels":{word:"Microsoft Word (.docx)",excel:"Microsoft Excel (.xlsx)",powerpoint:"Microsoft PowerPoint (.pptx)"}},performOcr:{"x-label":"Optical Character Recognition",type:"boolean",description:"Perform Optical Character Recognition (OCR) on scanned PDFs or PDFs that contain text embedded as graphics.",default:!1},language:{type:"string",description:"The Language used for Optical Character Recognition.",default:"English",enum:["ChineseSimplified","ChineseTraditional","Dutch","English","French","German","Italian","Japanese","Korean","Portuguese","Spanish"]}}},minimumTier:"FREE",maximumInputContentItems:10,temporarilyDisabled:!1,supportedInputContentTypes:["application/pdf"],supportedInputContentClass:[],supportedContentItemFilterJsFunction:"(function(contentItem){return contentItem.size<524288e3})(contentItem);",pricingJsFunction:"(function(actionParams,contentItems){const basePrice=16.5;const individualPricing={};let totalPrice=0;contentItems.forEach(item=>{const sizeInMB=item.size/1024/1024;const additionalPrice=Math.max(0,sizeInMB-50);individualPricing[item.id]=basePrice+additionalPrice;totalPrice+=basePrice+additionalPrice});return{totalPrice:totalPrice,individualPricing:individualPricing}})(actionParams,contentItems);"},pdfPdfToAnyV1OptionsSchema=objectType({destinationFormat:enumType(["word","excel","powerpoint"]),performOcr:booleanType(),language:enumType(["ChineseSimplified","ChineseTraditional","Dutch","English","French","German","Italian","Japanese","Korean","Portuguese","Spanish"])}),pdfRestrictV1Icon="/build/assets/pdf-restrict-v1-8bzkS5XA.svg",pdfRestrictV1Definition={id:"pdf-restrict-v1",name:"Set PDF Permissions",description:"Add restrictions to an existing PDF document.",internal:!1,aiAction:!1,actionAdjective:"restricted",inputJsonSchema:{type:"object",required:["newPermissionPassword","restrictions"],properties:{newPermissionPassword:{type:"string",description:"The password to change permissions for the generated PDF.",minLength:6,maxLength:50},restrictions:{type:"array",description:"Restrictions to apply to the PDF",minItems:1,items:{type:"string",enum:["print_low","print_high","edit_document_assembly","edit_fill_and_sign_form_fields","edit_annotations","edit_content","copy_content","accessibility_off"]},"x-enum-labels":{print_low:"Disallow printing (low res)",print_high:"Disallow printing (high res)",edit_document_assembly:"Disallow adding/removing pages",edit_fill_and_sign_form_fields:"Disallow form interactions",edit_annotations:"Disallow annotations",edit_content:"Disallow content editing",copy_content:"Disallow copying content",accessibility_off:"Disallow accessibility (screen readers, etc.)"}},currentOpenPassword:{type:"string",description:"The password to open the input PDF."},currentPermissionsPassword:{type:"string",description:"The password to change the input PDF permissions."}}},minimumTier:"FREE",maximumInputContentItems:10,temporarilyDisabled:!1,supportedInputContentTypes:["application/pdf"],supportedInputContentClass:[],supportedContentItemFilterJsFunction:"(function(contentItem){return contentItem.size<524288e3})(contentItem);",pricingJsFunction:"(function(actionParams,contentItems){const basePrice=16.5;const individualPricing={};let totalPrice=0;
1contentItems.forEach(item=>{const sizeInMB=item.size/1024/1024;const additionalPrice=Math.max(0,sizeInMB-50);individualPricing[item.id]=basePrice+additionalPrice;totalPrice+=basePrice+additionalPrice});return{totalPrice:totalPrice,individualPricing:individualPricing}})(actionParams,contentItems);"},pdfRestrictV1OptionsSchema=objectType({newPermissionPassword:stringType().min(6).max(50),restrictions:arrayType(enumType(["print_low","print_high","edit_document_assembly","edit_fill_and_sign_form_fields","edit_annotations","edit_content","copy_content","accessibility_off"])).min(1),currentOpenPassword:stringType().optional(),currentPermissionsPassword:stringType().optional()}),recolorImageV1Icon="/build/assets/recolor-image-v1-D2mBO09b.svg",recolorImageV1Definition={id:"recolor-image-v1",name:"Recolor Image",description:"Recolor an image by describing the elements of the image you want to recolor and which color you want to change them to.",internal:!1,aiAction:!0,actionAdjective:"recolored",inputJsonSchema:{type:"object",properties:{prompt:{type:"string",description:"Describe what you want to see in the generated image. A clear, detailed prompt specifying elements, colors, and subjects will yield better results.",maxLength:1e4},selectPrompt:{type:"string",description:"Describe what needs to be recolored in the image.",maxLength:1e4},negativePrompt:{type:"string",description:"Describe details you don't want in the generated image like color, objects, or a scenery.",maxLength:1e4},growMask:{type:"number",description:"Expands the mask edges outward in all directions by the specified number of pixels.",minimum:0,maximum:20},style:{type:"string",description:"Experiment with different styles that can be applied to the generated image.",enum:["3d-model","analog-film","anime","cinematic","comic-book","digital-art","enhance","fantasy-art","isometric","line-art","low-poly","modeling-compound","neon-punk","origami","photographic","pixel-art","tile-texture"],"x-enum-labels":{"3d-model":"3D Model","analog-film":"Analog Film",anime:"Anime",cinematic:"Cinematic","comic-book":"Comic-book","digital-art":"Digital-art",enhance:"Enhance","fantasy-art":"Fantasy-art",isometric:"Isometric","line-art":"Line Art","low-poly":"Low Poly","modeling-compound":"Modeling Compound","neon-punk":"Neon Punk",origami:"Origami",photographic:"Photographic","pixel-art":"Pixel Art","tile-texture":"Tile Texture"}},seed:{type:"integer",minimum:0,maximum:4294967294}},required:["prompt","selectPrompt"]},minimumTier:"FREE",maximumInputContentItems:25,temporarilyDisabled:!1,supportedInputContentTypes:[],supportedInputContentClass:["IMAGE"],pricingJsFunction:"(function(actionParams,contentItems){const singlePrice=6;const individualPricing={};contentItems.forEach(item=>individualPricing[item.id]=singlePrice);return{totalPrice:singlePrice*contentItems.length,individualPricing:individualPricing}})(actionParams,contentItems);"},recolorImageV1OptionsSchema=objectType({prompt:stringType().max(1e4),selectPrompt:stringType().max(1e4),negativePrompt:stringType().max(1e4).optional(),growMask:numberType().gte(0).lte(20).optional(),style:enumType(["3d-model","analog-film","anime","cinematic","comic-book","digital-art","enhance","fantasy-art","isometric","line-art","low-poly","modeling-compound","neon-punk","origami","photographic","pixel-art","tile-texture"]).optional(),seed:numberType().int().gte(0).lte(4294967294).optional()}),stableDiffusion35LargeTextToImageV1Definition={id:"stable-diffusion-35-large-text-to-image-v1",name:"Stable Diffusion 3.5 Large",outputContentClass:"IMAGE",internal:!1,aiAction:!0,inputJsonSchema:{type:"object",properties:{prompt:{type:"string",description:"Describe the image you want to generate...",maxLength:2e3,"x-component":"CreationPrompt"},negativePrompt:{type:"string",description:"Describe details you don't want in the generated image like color, objects, or a scenery.",maxLength:2e3},imageSize:{type:"string",description:"The aspect ration of the generated image.",default:"1:1",enum:["1:1","16:9","21:9","2:3","3:2","4:5","5:4","9:16","9:21"]},style:{type:"string",description:"Experiment with different styles that can be applied to the generated image.",enum:["3d-model","analog-film","anime","cinematic","comic-book","digital-art","enhance","fantasy-art","isometric","line-art","low-poly","modeling-compound","neon-punk","origami","photographic","pixel-art","tile-texture"],"x-enum-labels":{"3d-model":"3D Model","analog-film":"Analog Film",anime:"Anime",cinematic:"Cinematic","comic-book":"Comic-book","digital-art":"Digital-art",enhance:"Enhance","fantasy-art":"Fantasy-art",isometric:"Isometric","line-art":"Line Art","low-poly":"Low Poly","modeling-compound":"Modeling Compound","neon-punk":"Neon Punk",origami:"Origami",photographic:"Photographic","pixel-art":"Pixel Art","tile-texture":"Tile Texture"}},promptGuidance:{type:"integer",description:"A higher value will result in the generated image being closer to the prompt.",minimum:0,maximum:10},seed:{type:"integer",minimum:0,maximum:4294967294,"x-component":"NumericSeed"}},required:["prompt","imageSize"]},minimumTier:"PRO",maximumInputContentItems:25,temporarilyDisabled:!1,supportedInputContentTypes:[],supportedInputContentClass:[],pricingJsFunction:"(function(actionParams,contentItems){return{totalPrice:6}})(actionParams,contentItems);"},stableDiffusion35LargeTextToImageV1OptionsSchema=objectType({prompt:stringType().max(2e3),negativePrompt:stringType().max(2e3).optional(),imageSize:enumType(["1:1","16:9","21:9","2:3","3:2","4:5","5:4","9:16","9:21"]),style:enumType(["3d-model","analog-film","anime","cinematic","comic-book","digital-art","enhance","fantasy-art","isometric","line-art","low-poly","modeling-compound","neon-punk","origami","photographic","pixel-art","tile-texture"]).optional(),promptGuidance:numberType().int().gte(0).lte(10).optional(),seed:numberType().int().gte(0).lte(4294967294).optional()}),stableDiffusion35LargeTextToImageV1Icon=void 0,stableDiffusionBackgroun
1dRemovalV1Icon="/build/assets/stable-diffusion-background-removal-v1-r6e4qgU8.svg",stableDiffusionBackgroundRemovalV1Definition={id:"stable-diffusion-background-removal-v1",name:"Remove Background",description:"Remove the background from any image.",actionAdjective:"cropped",internal:!1,aiAction:!0,minimumTier:"FREE",maximumInputContentItems:25,temporarilyDisabled:!1,supportedInputContentTypes:[],supportedInputContentClass:["IMAGE"],pricingJsFunction:"(function(actionParams,contentItems){const singlePrice=3;const individualPricing={};contentItems.forEach(item=>individualPricing[item.id]=singlePrice);return{totalPrice:singlePrice*contentItems.length,individualPricing:individualPricing}})(actionParams,contentItems);"},stableDiffusionBackgroundRemovalV1OptionsSchema=objectType({}),stableDiffusionCoreTextToImageV1Definition={id:"stable-diffusion-core-text-to-image-v1",name:"Stable Diffusion Core",outputContentClass:"IMAGE",internal:!1,aiAction:!0,inputJsonSchema:{type:"object",properties:{prompt:{type:"string",description:"Describe the image you want to generate...",maxLength:2e3,"x-component":"CreationPrompt"},negativePrompt:{type:"string",description:"Describe details you don't want in the generated image like color, objects, or a scenery.",maxLength:2e3},imageSize:{type:"string",description:"The aspect ration of the generated image.",default:"1:1",enum:["1:1","16:9","21:9","2:3","3:2","4:5","5:4","9:16","9:21"]},style:{type:"string",description:"Experiment with different styles that can be applied to the generated image.",enum:["3d-model","analog-film","anime","cinematic","comic-book","digital-art","enhance","fantasy-art","isometric","line-art","low-poly","modeling-compound","neon-punk","origami","photographic","pixel-art","tile-texture"],"x-enum-labels":{"3d-model":"3D Model","analog-film":"Analog Film",anime:"Anime",cinematic:"Cinematic","comic-book":"Comic-book","digital-art":"Digital-art",enhance:"Enhance","fantasy-art":"Fantasy-art",isometric:"Isometric","line-art":"Line Art","low-poly":"Low Poly","modeling-compound":"Modeling Compound","neon-punk":"Neon Punk",origami:"Origami",photographic:"Photographic","pixel-art":"Pixel Art","tile-texture":"Tile Texture"}},seed:{type:"integer",minimum:0,maximum:4294967294,"x-component":"NumericSeed"}},required:["prompt","imageSize"]},minimumTier:"PRO",maximumInputContentItems:0,temporarilyDisabled:!1,supportedInputContentTypes:[],supportedInputContentClass:[],pricingJsFunction:"(function(actionParams,contentItems){return{totalPrice:4.5}})(actionParams,contentItems);"},stableDiffusionCoreTextToImageV1OptionsSchema=objectType({prompt:stringType().max(2e3),negativePrompt:stringType().max(2e3).optional(),imageSize:enumType(["1:1","16:9","21:9","2:3","3:2","4:5","5:4","9:16","9:21"]),style:enumType(["3d-model","analog-film","anime","cinematic","comic-book","digital-art","enhance","fantasy-art","isometric","line-art","low-poly","modeling-compound","neon-punk","origami","photographic","pixel-art","tile-texture"]).optional(),seed:numberType().int().gte(0).lte(4294967294).optional()}),stableDiffusionCoreTextToImageV1Icon=void 0,stableDiffusionPointAware3dIcon="/build/assets/stable-diffusion-point-aware-3d-BUGcPGpo.svg",stableDiffusionPointAware3dDefinition={id:"stable-diffusion-point-aware-3d",name:"Image to 3D Model",description:"Create a 3D Model from any image for use in, eg, 3D rendering, CAD or 3D printing software. This tool uses Stable Diffusion's Point Aware 3D model (SPAR3D) to create the complete structure of a 3D object from a single image in a few seconds.",internal:!1,aiAction:!0,minimumTier:"FREE",maximumInputContentItems:10,actionAdjective:"converted",temporarilyDisabled:!1,supportedInputContentTypes:[],supportedInputContentClass:["IMAGE"],pricingJsFunction:"(function(actionParams,contentItems){const singlePrice=6;const individualPricing={};contentItems.forEach(item=>individualPricing[item.id]=singlePrice);return{totalPrice:singlePrice*contentItems.length,individualPricing:individualPricing}})(actionParams,contentItems);",inputJsonSchema:{type:"object",properties:{textureResolution:{type:"string",description:"Sets the detail level of surface textures (color and bumps). Higher values look better but load slower. 1024 is a good default.",default:"1024",enum:["1024","2048","512"]},foregroundRatio:{type:"number",description:"Adjusts how much space the object takes up in the frame. Lower values add more padding, which helps with
1narrow objects like cars seen from the front. 1.3 works well for most cases.",minimum:1,maximum:2,default:1.3,multipleOf:.1},remesh:{type:"string",description:"Choose how the 3D modelâs surface is built. 'None' is best for most cases. Use 'triangle' or 'quad' if you need specific face types for tools like Blender or Maya.",default:"none",enum:["none","quad","triangle"]},targetCount:{type:"integer",description:"Sets how detailed the model is by choosing the number of faces or vertices. Lower numbers mean simpler modelsâ1,000 to 10,000 is usually a good range.",minimum:100,maximum:2e4,default:1e3},targetType:{type:"string",description:"If set to vertex or face, the result will have approximately target_count many vertices or faces in the simplified mesh, respectively.",default:"none",enum:["face","none","vertex"]},guidanceScale:{type:"integer",description:"This sets the guidance scaling of the point diffusion module. Lower values produce less detail and higher can introduce artifacts. The default of 3 produces best results.",default:3,minimum:1,maximum:10},seed:{type:"integer",minimum:0,maximum:4294967294,"x-component":"NumericSeed"}}}},stableDiffusionPointAware3dOptionsSchema=objectType({textureResolution:enumType(["1024","2048","512"]),foregroundRatio:numberType().multipleOf(.1).gte(1).lte(2),remesh:enumType(["none","quad","triangle"]),targetCount:numberType().int().gte(100).lte(2e4),targetType:enumType(["face","none","vertex"]),guidanceScale:numberType().int().gte(1).lte(10),seed:numberType().int().gte(0).lte(4294967294).optional()}),stableDiffusionUltraTextToImageV1Definition={id:"stable-diffusion-ultra-text-to-image-v1",name:"Stable Diffusion Ultra",outputContentClass:"IMAGE",internal:!1,aiAction:!0,inputJsonSchema:{type:"object",properties:{prompt:{type:"string",description:"Describe the image you want to generate...",maxLength:2e3,"x-component":"CreationPrompt"},negativePrompt:{type:"string",description:"Describe details you don't want in the generated image like color, objects, or a scenery.",maxLength:2e3},imageSize:{type:"string",description:"The aspect ration of the generated image.",default:"1:1",enum:["1:1","16:9","21:9","2:3","3:2","4:5","5:4","9:16","9:21"]},style:{type:"string",description:"Experiment with different styles that can be applied to the generated image.",enum:["3d-model","analog-film","anime","cinematic","comic-book","digital-art","enhance","fantasy-art","isometric","line-art","low-poly","modeling-compound","neon-punk","origami","photographic","pixel-art","tile-texture"],"x-enum-labels":{"3d-model":"3D Model","analog-film":"Analog Film",anime:"Anime",cinematic:"Cinematic","comic-book":"Comic-book","digital-art":"Digital-art",enhance:"Enhance","fantasy-art":"Fantasy-art",isometric:"Isometric","line-art":"Line Art","low-poly":"Low Poly","modeling-compound":"Modeling Compound","neon-punk":"Neon Punk",origami:"Origami",photographic:"Photographic","pixel-art":"Pixel Art","tile-texture":"Tile Texture"}},seed:{type:"integer",minimum:0,maximum:4294967294,"x-component":"NumericSeed"}},required:["prompt","imageSize"]},minimumTier:"PRO",maximumInputContentItems:0,temporarilyDisabled:!1,supportedInputContentTypes:[],supportedInputContentClass:[],pricingJsFunction:"(function(actionParams,contentItems){return{totalPrice:12}})(actionParams,contentItems);"},stableDiffusionUltraTextToImageV1OptionsSchema=objectType({prompt:stringType().max(2e3),negativePrompt:stringType().max(2e3).optional(),imageSize:enumType(["1:1","16:9","21:9","2:3","3:2","4:5","5:4","9:16","9:21"]),style:enumType(["3d-model","analog-film","anime","cinematic","comic-book","digital-art","enhance","fantasy-art","isometric","line-art","low-poly","modeling-compound","neon-punk","origami","photographic","pixel-art","tile-texture"]).optional(),seed:numberType().int().gte(0).lte(4294967294).optional()}),stableDiffusionUltraTextToImageV1Icon=void 0,stableDiffusionUpscaleV1Icon="/build/assets/image-upscale-icon-f36Ig8HU.svg",stableDiffusionUpscaleV1Def
1inition={id:"stable-diffusion-upscale-v1",name:"Upscale Image",description:"Upscale a low-resolution image using AI.",internal:!1,aiAction:!0,actionAdjective:"upscaled",minimumTier:"FREE",maximumInputContentItems:25,temporarilyDisabled:!1,supportedInputContentTypes:[],supportedInputContentClass:["IMAGE"],pricingJsFunction:"(function(actionParams,contentItems){const singlePrice=1.5;const individualPricing={};contentItems.forEach(item=>individualPricing[item.id]=singlePrice);return{totalPrice:singlePrice*contentItems.length,individualPricing:individualPricing}})(actionParams,contentItems);"},stableDiffusionUpscaleV1OptionsSchema=objectType({}),stableDiffusionXl10TextToImageV1Definition={id:"stable-diffusion-xl-10-text-to-image-v1",name:"Stable Diffusion XL v1.0",outputContentClass:"IMAGE",internal:!1,aiAction:!0,inputJsonSchema:{type:"object",properties:{prompt:{type:"string",description:"Describe the image you want to generate...",maxLength:2e3,"x-component":"CreationPrompt"},negativePrompt:{type:"string",description:"Describe details you don't want in the generated image like color, objects, or a scenery.",maxLength:2e3},imageSize:{type:"string",description:"The size of the generated image in pixels.",default:"1024x1024",enum:["1024x1024","1152x896","1216x832","1344x768","1536x640","640x1536","768x1344","832x1216","896x1152"]},promptGuidance:{type:"integer",description:"A higher value will result in the generated image being closer to the prompt.",minimum:0,maximum:35,default:7},style:{type:"string",description:"Experiment with different styles that can be applied to the generated image.",enum:["3d-model","analog-film","anime","cinematic","comic-book","digital-art","enhance","fantasy-art","isometric","line-art","low-poly","modeling-compound","neon-punk","origami","photographic","pixel-art","tile-texture"]},steps:{type:"integer",description:"More steps will generate a higher quality image, but will take longer.",minimum:10,maximum:50,default:30},clipGuidancePreset:{type:"string",description:"The CLIP neural network preset which guides the generation of images.",default:"NONE",enum:["NONE","FAST_BLUE","FAST_GREEN","SIMPLE","SLOW","SLOWER","SLOWEST"],"x-enum-labels":{NONE:"None",FAST_BLUE:"Fast Blue",FAST_GREEN:"Fast Green",SIMPLE:"Simple",SLOW:"Slow",SLOWER:"Slower",SLOWEST:"Slowest"}},sampler:{type:"string",description:"The diffusion sampling method.",enum:["DDIM","DDPM","K_DPM_2","K_DPM_2_ANCESTRAL","K_DPMPP_2M","K_DPMPP_2S_ANCESTRAL","K_EULER","K_EULER_ANCESTRAL","K_HEUN","K_LMS"],"x-enum-labels":{DDIM:"Ddim",DDPM:"Ddpm",K_DPM_2:"K-Dpm2",K_DPM_2_ANCESTRAL:"K-Dpm2 Ancestral",K_DPMPP_2M:"K-Dpmpp 2M",K_DPMPP_2S_ANCESTRAL:"K-Dpmpp 2M Ancestral",K_EULER:"K-Euler",K_EULER_ANCESTRAL:"K-Euler Ancestral",K_HEUN:"K-Heun",K_LMS:"K-Lms"}},samples:{type:"integer",description:"The number of images generated.",minimum:1,maximum:4,default:1,"x-component":"NumericRadioButtonGroup"},seed:{type:"integer",minimum:0,maximum:4294967294,"x-component":"NumericSeed"}},required:["prompt","imageSize","samples"]},minimumTier:"PRO",maximumInputContentItems:0,temporarilyDisabled:!1,supportedInputContentTypes:[],supportedInputContentClass:[],pricingJsFunction:"(function(actionParams,contentItems){return{totalPrice:1.35*(Math.max(actionParams.steps||30,30)/30)*actionParams.samples}})(actionParams,contentItems);"},stableDiffusionXl10TextToImageV1OptionsSchema=objectType({prompt:stringType().max(2e3),negativePrompt:stringType().max(2e3).optional(),imageSize:enumType(["1024x1024","1152x896","1216x832","1344x768","1536x640","640x1536","768x1344","832x1216","896x1152"]),promptGuidance:numberType().int().gte(0).lte(35),style:enumType(["3d-model","analog-film","anime","cinematic","comic-book","digital-art","enhance","fantasy-art","isometric","line-art","low-poly","modeling-compound","neon-punk","origami","photographic","pixel-art","tile-texture"]).optional(),steps:numberType().int().gte(10).lte(50),clipGuidancePreset:enumType(["NONE","FAST_BLUE","FAST_GREEN","SIMPLE","SLOW","SLOWER","SLOWEST"]),sampler:enumType(["DDIM","DDPM","K_DPM_2","K_DPM_2_ANCESTRAL","K_DPMPP_2M","K_DPMPP_2S_ANCESTRAL","K_EULER","K_EULER_ANCESTRAL","K_HEUN","K_LMS"]).optional(),samples:numberType().int().gte(1).lte(4),seed:numberType().int().gte(0).lte(4294967294).optional()}),stableDiffusionXl10TextToImageV1Icon=void 0,textToVideoV1Definition={id:"text-to-vi
1deo-v1",name:"Text to Video",outputContentClass:"VIDEO",internal:!1,aiAction:!0,inputJsonSchema:{type:"object",properties:{prompt:{type:"string",description:"Describe the video you want to generate...",maxLength:512,"x-component":"CreationPrompt"},duration:{type:"string",enum:["5s","10s"],default:"5s",description:"The duration of the generated video in seconds.","x-component":"RadioButtonGroup"},resolution:{type:"string",enum:["1280x720","720x1280","1104x832","832x1104","960x960","1584x672"],default:"1280x720",description:"The resolution of the generated video.","x-component":"RadioButtonGroup"},seed:{type:"integer",minimum:0,maximum:4294967294,"x-component":"NumericSeed"}},required:["prompt"]},minimumTier:"PRO",maximumInputContentItems:0,temporarilyDisabled:!1,supportedInputContentTypes:[],supportedInputContentClass:[],pricingJsFunction:'(function(actionParams,contentItems){const singlePriceVideo=actionParams.duration==="5s"?37.5:75;const singlePriceDalle3=12;const singlePrice=singlePriceVideo+singlePriceDalle3;return{totalPrice:singlePrice}})(actionParams,contentItems);'},textToVideoV1OptionsSchema=objectType({prompt:stringType().max(512),duration:enumType(["5s","10s"]),resolution:enumType(["1280x720","720x1280","1104x832","832x1104","960x960","1584x672"]),seed:numberType().int().gte(0).lte(4294967294).optional()}),textToVideoV1Icon=void 0,platformActionDefinitionMap={"edit-image-v1":editImageV1Definition,"generic-convert-v1":genericConvertV1Definition,"google-gemini-text-to-image-v1":googleGeminiTextToImageV1Definition,"image-to-vector-v1":imageToVectorV1Definition,"image-to-video-v1":imageToVideoV1Definition,"pdf-any-to-pdf-v1":pdfAnyToPdfV1Definition,"pdf-archive-v1":pdfArchiveV1Definition,"pdf-compress-v1":pdfCompressV1Definition,"pdf-encrypt-v1":pdfEncryptV1Definition,"pdf-merge-v1":pdfMergeV1Definition,"pdf-pdf-to-any-v1":pdfPdfToAnyV1Definition,"pdf-restrict-v1":pdfRestrictV1Definition,"recolor-image-v1":recolorImageV1Definition,"stable-diffusion-35-large-text-to-image-v1":stableDiffusion35LargeTextToImageV1Definition,"stable-diffusion-background-removal-v1":stableDiffusionBackgroundRemovalV1Definition,"stable-diffusion-core-text-to-image-v1":stableDiffusionCoreTextToImageV1Definition,"stable-diffusion-point-aware-3d":stableDiffusionPointAware3dDefinition,"stable-diffusion-ultra-text-to-image-v1":stableDiffusionUltraTextToImageV1Definition,"stable-diffusion-upscale-v1":stableDiffusionUpscaleV1Def
1inition,"stable-diffusion-xl-10-text-to-image-v1":stableDiffusionXl10TextToImageV1Definition,"text-to-video-v1":textToVideoV1Definition},platformActionDefinitionOptionsSchemaMap={"edit-image-v1":editImageV1OptionsSchema,"generic-convert-v1":genericConvertV1OptionsSchema,"google-gemini-text-to-image-v1":googleGeminiTextToImageV1OptionsSchema,"image-to-vector-v1":imageToVectorV1OptionsSchema,"image-to-video-v1":imageToVideoV1OptionsSchema,"pdf-any-to-pdf-v1":pdfAnyToPdfV1OptionsSchema,"pdf-archive-v1":pdfArchiveV1OptionsSchema,"pdf-compress-v1":pdfCompressV1OptionsSchema,"pdf-encrypt-v1":pdfEncryptV1OptionsSchema,"pdf-merge-v1":pdfMergeV1OptionsSchema,"pdf-pdf-to-any-v1":pdfPdfToAnyV1OptionsSchema,"pdf-restrict-v1":pdfRestrictV1OptionsSchema,"recolor-image-v1":recolorImageV1OptionsSchema,"stable-diffusion-35-large-text-to-image-v1":stableDiffusion35LargeTextToImageV1OptionsSchema,"stable-diffusion-background-removal-v1":stableDiffusionBackgroundRemovalV1OptionsSchema,"stable-diffusion-core-text-to-image-v1":stableDiffusionCoreTextToImageV1OptionsSchema,"stable-diffusion-point-aware-3d":stableDiffusionPointAware3dOptionsSchema,"stable-diffusion-ultra-text-to-image-v1":stableDiffusionUltraTextToImageV1OptionsSchema,"stable-diffusion-upscale-v1":stableDiffusionUpscaleV1OptionsSchema,"stable-diffusion-xl-10-text-to-image-v1":stableDiffusionXl10TextToImageV1OptionsSchema,"text-to-video-v1":textToVideoV1OptionsSchema},platformActionIconMap={"edit-image-v1":editImageV1Icon,"generic-convert-v1":genericConvertV1Icon,"google-gemini-text-to-image-v1":googleGeminiTextToImageV1Icon,"image-to-vector-v1":imageToVectorV1Icon,"image-to-video-v1":imageToVideoV1Icon,"pdf-any-to-pdf-v1":pdfAnyToPdfV1Icon,"pdf-archive-v1":pdfArchiveV1Icon,"pdf-compress-v1":pdfCompressV1Icon,"pdf-encrypt-v1":pdfEncryptV1Icon,"pdf-merge-v1":pdfMergeV1Icon,"pdf-pdf-to-any-v1":pdfPdfToAnyV1Icon,"pdf-restrict-v1":pdfRestrictV1Icon,"recolor-image-v1":recolorImageV1Icon,"stable-diffusion-35-large-text-to-image-v1":stableDiffusion35LargeTextToImageV1Icon,"stable-diffusion-background-removal-v1":stableDiffusionBackgroundRemovalV1Icon,"stable-diffusion-core-text-to-image-v1":stableDiffusionCoreTextToImageV1Icon,"stable-diffusion-point-aware-3d":stableDiffusionPointAware3dIcon,"stable-diffusion-ultra-text-to-image-v1":stableDiffusionUltraTextToImageV1Icon,"stable-diffusion-upscale-v1":stableDiffusionUpscaleV1Icon,"stable-diffusion-xl-10-text-to-image-v1":stableDiffusionXl10TextToImageV1Icon,"text-to-video-v1":textToVideoV1Icon},jsonSchemaDefaultFieldName="default",wrapPlatformActionSchemaField=(t,e,o)=>{if(o instanceof ZodString){const n=getPlatformActionOptionsRequiredFields(t);return stringType().trim().min(n.includes(e)?1:0).transform((a,i)=>{const s=o.safeParse(a);return s.success?s.data:(s.error.issues.forEach(i.addIssue),NEVER)})}return o},getAllPlatformActionIds=()=>Object.keys(platformActionDefinitionMap),getPlatformActionIcon=t=>platformActionIconMap[t],getPlatformActionDefinition=t=>platformActionDefinitionMap[t],getPlatformActionOptionsSchema=t=>{const e=platformActionDefinitionOptionsSchemaMap[t];return objectType(Object.fromEntries(Object.entries(e.shape).map(([o,n])=>[o,wrapPlatformActionSchemaField(t,o,n)])))},getPlatformActionOptionsDefaults=t=>{const{inputJsonSchema:e}=getPlatformActionDefinition(t),o=e==null?void 0:e.properties;return o?Object.entries(o).reduce((n,[a,i])=>(Object.keys(i).includes(jsonSchemaDefaultFieldName)&&(n[a]=i[jsonSchemaDefaultFieldName]),n),{}):{}},getPlatformActionOptionsRequiredFields=t=>{const{inputJsonSchema:e}=getPlatformActionDefinition(t);return e?e.required?[...e.required]:[]:[]},PlatformActionOptionsFormContext=reactExports.createContext(null),usePlatformActionOptionsFormContext=()=>{const t=reactExports.useContext(PlatformActionOptionsFormContext);if(!t)throw new Error("PlatformActionOptionsFormContext not found.");return t},PlatformActionOptionsFormField=reactExports.memo(function({id:e,field:o,componentType:n,description:a,emptyValueLabel:i,enumMap:s,jsonSchema:l,jsonSchemaDefaultValue:r,label:u,required:d,type:c,contentItems:p}){const{defaultValues:m}=usePlatformActionOptionsFormContext(),b=reactExports.useMemo(()=>{const x=(getPlatformActionOptionsSchema(e).shape[o]||anyType()).optional().safeParse(m[o]);return x.success?x.data:null},[m,o,e]),g=n;return jsxRuntimeExports.jsx(g,{jsonSchema:l,jsonSchemaDefaultValue:r,label:u,description:a,field:o,defaultValue:b,required:d,emptyValueLabel:i,enumMap:s,type:c,contentItems:p})}),aiToJpgDefinition={id:"ai-to-jpg",endpoint:"/convert/ai/to/jpg",label:"AI to JPG",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",
1srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},aiToJpgOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),aiToPngDefinition={id:"ai-to-png",endpoint:"/convert/ai/to/png",label:"AI to PNG",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200}}}},aiToPngOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800)}),aiToPnmDefinition={id:"ai-to-pnm",endpoint:"/convert/ai/to/pnm",label:"AI to PNM",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200}}}},aiToPnmOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800)}),aiToTiffDefinition={id:"ai-to-tiff",endpoint:"/convert/ai/to/tiff",label:"AI to TIFF",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},aiToTiffOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),MultiPage:booleanType(),ImageQuality:numberType().int().gte(10).lte(100)}),aiToWebpDefinition={id:"ai-to-webp",endpoint:"/convert/ai/to/webp",label:"AI to WEBP",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},aiToWebpOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),bmpToJpgDefinition={id:"bmp-to-jpg",endpoint:"/convert/bmp/to/jpg",label:"BMP to JPG",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},bmpToJpgOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),bmpToPdfDefinition={id:"bmp-to-pdf",endpoint:"/convert/bmp/to/pdf",label:"BMP to PDF",inputJsonSchema:{required:[],type:"object",properties:{ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}},PageSize:{enum:["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","letter","legal"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},Pdfa:{type:"boolean",description:"Create PDF/A-1b compliant document.",default:!1}}}},bmpToPdfOptionsSchema=objectType({ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),PageSize:enumType(["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","letter","legal"]),PageOrientation:enumType(["default","portrait","landscape"]),Pdfa:booleanType()}),bmpToPngDefinition={id:"bmp-to-png",endpoint:"/convert/bmp/to/png",label:"BMP to PNG",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200}}}},bmpToPngOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800)}),bmpToPnmDefinition={id:"bmp-to-pnm",endpoint:"/convert/bmp/to/pnm",label:"BMP to PNM",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200}}}},bmpToPnmOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800)}),bmpToTiffDefinition={id:"bmp-to-tiff",endpoint:"/convert/bmp/to/tiff",label:"BMP to TIFF",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},bmpToTiffOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),MultiPage:booleanType(),ImageQuality:numberType().int().gte(10).lte(100)}),bmpToWebpDefinition={id:"bmp-to-webp",endpoint:"/convert/bmp/to/webp",label:"BMP to WEBP",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",
1srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},bmpToWebpOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),csvToNumbersDefinition={id:"csv-to-numbers",endpoint:"/convert/csv/to/numbers",label:"CSV to NUMBERS",inputJsonSchema:{required:[],type:"object",properties:{}}},csvToNumbersOptionsSchema=objectType({}),csvToPdfDefinition={id:"csv-to-pdf",endpoint:"/convert/csv/to/pdf",label:"CSV to PDF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},ConvertMetadata:{type:"boolean",description:"Convert document metadata like Title, Author, Keywords to PDF metadata.",default:!0},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},AutoFit:{type:"boolean",description:"Auto fit columns and rows.",default:!1},ClearPrintArea:{type:"boolean",description:"Clear the print area in the converting document.",default:!1},Scale:{maximum:300,minimum:10,type:"integer",description:"Set content scale value in percentage."},HeaderOnEachPage:{type:"boolean",description:"Ensures the header row is repeated on all pages when the sheet's content spans multiple pages in the PDF output. If a table is detected in the sheet, its header row is used; otherwise, the first row with data is treated as the header.",default:!1},ThousandsSeparator:{type:"string",description:"Thousands separator.",default:","},DecimalSeparator:{type:"string",description:"Decimal separator.",default:"."},DateFormat:{enum:["us","iso","eu","german","japanese"],type:"string",description:"Sets the date format for output document, overriding the default US locale (M/d/yyyy) to ensure consistency regardless of regional Excel settings.\n * `us` - US (M/d/yyyy)\n * `iso` - ISO (yyyy-MM-dd)\n * `eu` - EU (dd/MM/yyyy)\n * `german` - German (dd.MM.yyyy)\n * `japanese` - Japanese (yyyy/MM/dd)",default:"us"},CompressPDF:{type:"boolean",description:"It tries to produce smaller output files but requires Adobe Reader 6, released in 2003 or newer, to view created PDF files.",default:!1},Pdfa:{type:"boolean",description:"Create PDF/A-1b compliant document.",default:!1}}}},csvToPdfOptionsSchema=objectType({Password:stringType().optional(),ConvertMetadata:booleanType(),PageOrientation:enumType(["default","portrait","landscape"]),PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5"]),AutoFit:booleanType(),ClearPrintArea:booleanType(),Scale:numberType().int().gte(10).lte(300).optional(),HeaderOnEachPage:booleanType(),ThousandsSeparator:stringType(),DecimalSeparator:stringType(),DateFormat:enumType(["us","iso","eu","german","japanese"]),CompressPDF:booleanType(),Pdfa:booleanType()}),csvToXlsDefinition={id:"csv-to-xls",endpoint:"/convert/csv/to/xls",label:"CSV to XLS",inputJsonSchema:{required:["Delimiter"],type:"object",properties:{Delimiter:{type:"string",description:"Set fields separator.",default:","},CellType:{enum:["general","text"],type:"string",description:"Set Excel cell type, if set as text the date and number format will be the same as in CSV file.\n * `general` - General\n * `text` - Text",default:"text"}}}},csvToXlsOptionsSchema=objectType({Delimiter:stringType(),CellType:enumType(["general","text"])}),csvToXlsxDefinition={id:"csv-to-xlsx",endpoint:"/convert/csv/to/xlsx",label:"CSV to XLSX",inputJsonSchema:{required:["Delimiter"],t
1ype:"object",properties:{Delimiter:{type:"string",description:"Set fields separator.",default:","},CellType:{enum:["general","text"],type:"string",description:"Set Excel cell type, if set as text the date and number format will be the same as in CSV file.\n * `general` - General\n * `text` - Text",default:"text"}}}},csvToXlsxOptionsSchema=objectType({Delimiter:stringType(),CellType:enumType(["general","text"])}),djvuToJpgDefinition={id:"djvu-to-jpg",endpoint:"/convert/djvu/to/jpg",label:"DJVU to JPG",inputJsonSchema:{required:[],type:"object",properties:{ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},djvuToJpgOptionsSchema=objectType({ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),djvuToPdfDefinition={id:"djvu-to-pdf",endpoint:"/convert/djvu/to/pdf",label:"DJVU to PDF",inputJsonSchema:{required:[],type:"object",properties:{PdfVersion:{enum:["1.2","1.3","1.4","1.5","1.6","1.7","1.8","2.0"],type:"string",description:"Specify the target PDF Version",default:"1.5","x-enum-labels":{"1.2":"Acrobat 3 (PDF 1.2)","1.3":"Acrobat 4 (PDF 1.3)","1.4":"Acrobat 5 (PDF 1.4)","1.5":"Acrobat 6 (PDF 1.5)","1.6":"Acrobat 7 (PDF 1.6)","1.7":"Acrobat 8 (PDF 1.7)","1.8":"Acrobat 9 (PDF 1.7, e-level 3)","2.0":"Acrobat DC (PDF 2.0)"}},PdfResolution:{maximum:2400,minimum:10,type:"integer",description:"Set PDF resolution.",default:300},EmbedFonts:{type:"boolean",description:"Embed fonts in PDF.",default:!0},ColorSpace:{enum:["Default","RGB","CMYK","Gray"],type:"string",description:"Sets the color space of the output image.",default:"Default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}}}}},djvuToPdfOptionsSchema=objectType({PdfVersion:enumType(["1.2","1.3","1.4","1.5","1.6","1.7","1.8","2.0"]),PdfResolution:numberType().int().gte(10).lte(2400),EmbedFonts:booleanType(),ColorSpace:enumType(["Default","RGB","CMYK","Gray"])}),djvuToPngDefinition={id:"djvu-to-png",endpoint:"/convert/djvu/to/png",label:"DJVU to PNG",inputJsonSchema:{required:[],type:"object",properties:{TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},djvuToPngOptionsSchema=objectType({TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),djvuToTiffDefinition={id:"djvu-to-tiff",endpoint:"/convert/djvu/to/tiff",label:"DJVU to TIFF",inputJsonSchema:{required:[],type:"object",properties:{TiffType:{enum:["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"],type:"string",description:"Set TIFF type",default:"color24lzw","x-enum-labels":{color24nc:"24bits RGB, uncompressed",color32nc:"32bits CMYK, uncompressed",color24lzw:"24bits RGB, LZW-compatible compression",color32lzw:"32bits CMYK, LZW-compatible compression",color24zip:"24bits RGB, ZIP (Deflate) compression",color32zip:"32bits CMYK, ZIP (Deflate) compression",grayscale:"8bits Grayscale, uncompressed",grayscalelzw:"8bits Grayscale, LZW-compatible compression",grayscalezip:"8bits Grayscale, ZIP (Deflate) compression",monochromeg3:"Monochrome - G3 fax encoding with EOLs",monochromeg32d:"Monochrome - 2-D G3 fax encoding",monochromeg4:"Monochrome - G4 fax encoding",monochromelzw:"Monochrome - LZW-compatible compression",monochromepackbits:"Monochrome - PackBits compression"}},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},FillOrder:{enum:["0","1"],type:"string",description:"The logical order of bits within a byte.",default:"0","x-enum-labels":{0:"MSB-to-LSB",1:"LSB-to-MSB"}},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},djvuToTiffOptionsSchema=objectType({TiffType:enumType(["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"]),MultiPage:booleanType(),FillOrder:enumType(["0","1"]),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),djvuToWebpDefinition={id:"djvu-to-webp",endpoint:"/convert/djvu/to/webp",label:"DJVU to WEBP",inputJsonSchema:{required:[],type:"object",properties:{ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},djvuToWebpOptionsSchema=objectType({ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),docToDocxDefinition={id:"doc-to-docx",endpoint:"/convert/doc/to/docx",label:"DOC to DOCX",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},UpdateReferences:{type:"boolean",description:"Update all reference fields in the document.",default:!1}}}},docToDocxOptionsSchema=objectType({Password:stringType().optional(),UpdateToc:booleanType(),UpdateReferences:booleanType()}),docToHtmlDefinition={id:"doc-to-html",endpoint:"/convert/doc/to/html",label:"DOC to HTML",inputJsonSchema:{required:[],type:"object",properties:{InlineImages:{type:"boolean",description:"Inline images to html.",default:!0}}}},docToHtmlOptionsSchema=objectType({InlineImages:booleanType()}),docToJpgDefinition={id:"doc-to-jpg",endpoint:"/convert/doc/to/jpg",label:"DOC to JPG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10.",default:"1-2000"},ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},docToJpgOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ImageResolution:numberType().int().gte(10).lte(800),ImageQuality:numberType().int().gte(10).lte(100)}),docToOdtDefinition={id:"doc-to-odt",endpoint:"/convert/doc/to/odt",label:"DOC to ODT",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},UpdateReferences:{type:"boolean",description:"Update all reference fields in the document.",default:!1}}}},docToOdtOptionsSchema=objectType({Password:stringType().optional(),UpdateToc:booleanType(),UpdateReferences:booleanType()}),docToPdfDefinition={id:"doc-to-pdf",endpoint:"/convert/doc/to/pdf",label:"DOC to PDF ",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10.",default:"1-6000"},ConvertMarkups:{type:"boolean",description:"Convert document markups like revisions and comments.",default:!1},ConvertTags:{type:"boolean",description:"Convert document structure tags for accessibility.",default:!1},ConvertMetadata:{type:"boolean",description:"Convert document metadata like Title, Author, Keywords to PDF metadata.",default:!0},ConvertHeadings:{type:"boolean",description:"Convert Word headings to PDF bookmarks.",default:!0},ConvertBookmarks:{type:"boolean",description:"Convert Word bookmarks to PDF bookmarks.",default:!1},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},CompressPDF:{type:"boolean",description:"It tries to produce smaller output files but requires Adobe Reader 6, released in 2003 or newer, to view created PDF files.",default:!1},Pdfa:{type:"boolean",description:"Create PDF/A-3b compliant document.",default:!1}}}},docToPdfOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertMarkups:booleanType(),ConvertTags:booleanType(),ConvertMetadata:booleanType(),ConvertHeadings:booleanType(),ConvertBookmarks:booleanType(),UpdateToc:booleanType(),CompressPDF:booleanType(),Pdfa:booleanType()}),docToPngDefinition={id:"doc-to-png",endpoint:"/convert/doc/to/png",label:"DOC to PNG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10.",default:"1-2000"},ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ImageAntialiasing:{maximum:8,minimum:0,type:"integer",description:"Control the use of text and graphics subsample antialiasing. The subsampling box size should be 8 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:8}}}},docToPngOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ImageResolution:numberType().int().gte(10).lte(800),ImageAntialiasing:numberType().int().gte(0).lte(8)}),docToRtfDefinition={id:"doc-to-rtf",endpoint:"/convert/doc/to/rtf",label:"DOC to RTF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},UpdateReferences:{type:"boolean",description:"Update all reference fields in the document.",default:!1}}}},docToRtfOptionsSchema=objectType({Password:stringType().optional(),UpdateToc:booleanType(),UpdateReferences:booleanType()}),docToTxtDefinition={id:"doc-to-txt",endpoint:"/convert/doc/to/txt",label:"DOC to TXT",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},Substitutions:{type:"boolean",description:"Replace similar symbols with their counterparts in a text file, such as a copyright symbol with (c).",default:!1},LineBreaks:{type:"boolean",description:"Inserts line breaks at the end of each line of text.",default:!0},EndLineChar:{enum:["crlf","cr","lfcr","lf"],type:"string",description:"Set end of line character, which will be used to break lines.",default:"crlf","x-enum-labels":{crlf:"CR+LF (Windows)",cr:"CR (Windows)",lfcr:"LFCR (Mac OS)",lf:"LF (Mac OS)"}},SaveFormat:{enum:["wintext","wintextlb","dostext","dostextlb","unicodetext"],type:"string",description:"Specifies the format to use when saving a document.",default:"unicodetext","x-enum-labels":{wintext:"Windows Text",wintextlb:"Windows Text with line breaks preserved",dostext:"DOS text",dostextlb:"DOS text with line breaks preserved",unicodetext:"Unicode text format"}}}}},docToTxtOptionsSchema=objectType({Password:stringType().optional(),Substitutions:booleanType(),LineBreaks:booleanType(),EndLineChar:enumType(["crlf","cr","lfcr","lf"]),SaveFormat:enumType(["wintext","wintextlb","dostext","dostextlb","unicodetext"])}),docToXmlDefinition={id:"doc-to-xml",endpoint:"/convert/doc/to/xml",label:"DOC to XML",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},UpdateReferences:{type:"boolean",description:"Update all reference fields in the document.",default:!1},XmlType:{enum:["word2003","flatWordXml","strictOpenXml"],type:"string",description:"Specifies the type of XML to use when saving a Word document.",default:"word2003","x-enum-labels":{word2003:"Word 2003 (legacy)",flatWordXml:"Word Flat OPC XML",strictOpenXml:"Strict Open XML Document"}}}}},docToXmlOptionsSchema=objectType({Password:stringType().optional(),UpdateToc:booleanType(),UpdateReferences:booleanType(),XmlType:enumType(["word2003","flatWordXml","strictOpenXml"])}),docToXpsDefinition={id:"doc-to-xps",endpoint:"/convert/doc/to/xps",label:"DOC to XPS",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},UpdateReferences:{type:"boolean",description:"Update all reference fields in the document.",default:!1}}}},docToXpsOptionsSchema=objectType({Password:stringType().optional(),UpdateToc:booleanType(),UpdateReferences:booleanType()}),docxToDocDefinition={id:"docx-to-doc",endpoint:"/convert/docx/to/doc",label:"DOCX to DOC",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},UpdateReferences:{type:"boolean",description:"Update all reference fields in the document.",default:!1}}}},docxToDocOptionsSchema=objectType({Password:stringType().optional(),UpdateToc:booleanType(),UpdateReferences:booleanType()}),docxToHtmlDefinition={id:"docx-to-html",endpoint:"/convert/docx/to/html",label:"DOCX to HTML",inputJsonSchema:{required:[],type:"object",properties:{InlineImages:{type:"boolean",description:"Inline images to html.",default:!0}}}},docxToHtmlOptionsSchema=objectType({InlineImages:booleanType()}),docxToJpgDefinition={id:"docx-to-jpg",endpoint:"/convert/docx/to/jpg",label:"DOCX to JPG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-
110.",default:"1-2000"},ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},docxToJpgOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ImageResolution:numberType().int().gte(10).lte(800),ImageQuality:numberType().int().gte(10).lte(100)}),docxToOdtDefinition={id:"docx-to-odt",endpoint:"/convert/docx/to/odt",label:"DOCX to ODT",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},UpdateReferences:{type:"boolean",description:"Update all reference fields in the document.",default:!1}}}},docxToOdtOptionsSchema=objectType({Password:stringType().optional(),UpdateToc:booleanType(),UpdateReferences:booleanType()}),docxToPagesDefinition={id:"docx-to-pages",endpoint:"/convert/docx/to/pages",label:"DOCX to PAGES ",inputJsonSchema:{required:[],type:"object",properties:{}}},docxToPagesOptionsSchema=objectType({}),docxToPdfDefinition={id:"docx-to-pdf",endpoint:"/convert/docx/to/pdf",label:"DOCX to PDF ",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10.",default:"1-6000"},ConvertMarkups:{type:"boolean",description:"Convert document markups like revisions and comments.",default:!1},ConvertTags:{type:"boolean",description:"Convert document structure tags for accessibility.",default:!1},ConvertMetadata:{type:"boolean",description:"Convert document metadata like Title, Author, Keywords to PDF metadata.",default:!0},ConvertHeadings:{type:"boolean",description:"Convert Word headings to PDF bookmarks.",default:!0},ConvertBookmarks:{type:"boolean",description:"Convert Word bookmarks to PDF bookmarks.",default:!1},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},CompressPDF:{type:"boolean",description:"It tries to produce smaller output files but requires Adobe Reader 6, released in 2003 or newer, to view created PDF files.",default:!1},Pdfa:{type:"boolean",description:"Create PDF/A-3b compliant document.",default:!1}}}},docxToPdfOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertMarkups:booleanType(),ConvertTags:booleanType(),ConvertMetadata:booleanType(),ConvertHeadings:booleanType(),ConvertBookmarks:booleanType(),UpdateToc:booleanType(),CompressPDF:booleanType(),Pdfa:booleanType()}),docxToPngDefinition={id:"docx-to-png",endpoint:"/convert/docx/to/png",label:"DOCX to PNG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10.",default:"1-2000"},ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ImageAntialiasing:{maximum:8,minimum:0,type:"integer",description:"Control the use of text and graphics subsample antialiasing. The subsampling box size should be 8 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:8}}}},docxToPngOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ImageResolution:numberType().int().gte(10).lte(800),ImageAntialiasing:numberType().int().gte(0).lte(8)}),docxToRtfDefinition={id:"docx-to-rtf",endpoint:"/convert/docx/to/rtf",label:"DOCX to RTF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},UpdateReferences:{type:"boolean",description:"Update all reference fields in the document.",default:!1}}}},docxToRtfOptionsSchema=objectType({Password:stringType().optional(),UpdateToc:booleanType(),UpdateReferences:booleanType()}),docxToTiffDefinition={id:"docx-to-tiff",endpoint:"/convert/docx/to/tiff",label:"DOCX to TIFF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10.",default:"1-2000"},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","ds
1heet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},TiffType:{enum:["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"],type:"string",description:"Set TIFF type",default:"color24lzw","x-enum-labels":{color24nc:"24bits RGB, uncompressed",color32nc:"32bits CMYK, uncompressed",color24lzw:"24bits RGB, LZW-compatible compression",color32lzw:"32bits CMYK, LZW-compatible compression",color24zip:"24bits RGB, ZIP (Deflate) compression",color32zip:"32bits CMYK, ZIP (Deflate) compression",grayscale:"8bits Grayscale, uncompressed",grayscalelzw:"8bits Grayscale, LZW-compatible compression",grayscalezip:"8bits Grayscale, ZIP (Deflate) compression",monochromeg3:"Monochrome - G3 fax encoding with EOLs",monochromeg32d:"Monochrome - 2-D G3 fax encoding",monochromeg4:"Monochrome - G4 fax encoding",monochromelzw:"Monochrome - LZW-compatible compression",monochromepackbits:"Monochrome - PackBits compression"}},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},FillOrder:{enum:["0","1"],type:"string",description:"The logical order of bits within a byte.",default:"0","x-enum-labels":{0:"MSB-to-LSB",1:"LSB-to-MSB"}},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},docxToTiffOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),PageOrientation:enumType(["default","portrait","landscape"]),PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),TiffType:enumType(["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"]),MultiPage:booleanType(),FillOrder:enumType(["0","1"]),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),docxToTxtDefinition={id:"docx-to-txt",endpoint:"/convert/docx/to/txt",label:"DOCX to TXT",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},Substitutions:{type:"boolean",description:"Replace similar symbols with their counterparts in a text file, such as a copyright symbol with (c).",default:!1},LineBreaks:{type:"boolean",description:"Inserts line breaks at the end of each line of text.",default:!0},EndLineChar:{enum:["crlf","cr","lfcr","lf"],type:"string",description:"Set end of line character, which will be used to break lines.",default:"crlf","x-enum-labels":{crlf:"CR+LF (Windows)",cr:"CR (Windows)",lfcr:"LFCR (Mac OS)",lf:"LF (Mac OS)"}},SaveFormat:{enum:["wintext","wintextlb","dostext","dostextlb","unicodetext"],type:"string",description:"Specifies the format to use when saving a document.",default:"unicodetext","x-enum-labels":{wintext:"Windows Text",wintextlb:"Windows Text with line breaks preserved",dostext:"DOS text",dostextlb:"DOS text with line breaks preserved",unicodetext:"Unicode text format"}}}}},docxToTxtOptionsSchema=objectType({Password:stringType().optional(),Substitutions:booleanType(),LineBreaks:booleanType(),EndLineChar:enumType(["crlf","cr","lfcr","lf"]),SaveFormat:enumType(["wintext","wintextlb","dostext","dostextlb","unicodetext"])}),docxToWebpDefinition={id:"docx-to-webp",endpoint:"/convert/docx/to/webp",label:"DOCX to WEBP",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10.",default:"1-2000"},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","ds
1heet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},docxToWebpOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),PageOrientation:enumType(["default","portrait","landscape"]),PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),docxToXmlDefinition={id:"docx-to-xml",endpoint:"/convert/docx/to/xml",label:"DOCX to XML",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},UpdateReferences:{type:"boolean",description:"Update all reference fields in the document.",default:!1},XmlType:{enum:["word2003","flatWordXml","strictOpenXml"],type:"string",description:"Specifies the type of XML to use when saving a Word document.",default:"word2003","x-enum-labels":{word2003:"Word 2003 (legacy)",flatWordXml:"Word Flat OPC XML",strictOpenXml:"Strict Open XML Document"}}}}},docxToXmlOptionsSchema=objectType({Password:stringType().optional(),UpdateToc:booleanType(),UpdateReferences:booleanType(),XmlType:enumType(["word2003","flatWordXml","strictOpenXml"])}),docxToXpsDefinition={id:"docx-to-xps",endpoint:"/convert/docx/to/xps",label:"DOCX to XPS",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},UpdateReferences:{type:"boolean",description:"Update all reference fields in the document.",default:!1}}}},docxToXpsOptionsSchema=objectType({Password:stringType().optional(),UpdateToc:booleanType(),UpdateReferences:booleanType()}),dotxToDocDefinition={id:"dotx-to-doc",endpoint:"/convert/dotx/to/doc",label:"DOTX to DOC",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},UpdateReferences:{type:"boolean",description:"Update all reference fields in the document.",default:!1}}}},dotxToDocOptionsSchema=objectType({Password:stringType().optional(),UpdateToc:booleanType(),UpdateReferences:booleanType()}),dotxToDocxDefinition={id:"dotx-to-docx",endpoint:"/convert/dotx/to/docx",label:"DOTX to DOCX",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},UpdateReferences:{type:"boolean",description:"Update all reference fields in the document.",default:!1}}}},dotxToDocxOptionsSchema=objectType({Password:stringType().optional(),UpdateToc:booleanType(),UpdateReferences:booleanType()}),dotxToJpgDefinition={id:"dotx-to-jpg",endpoint:"/convert/dotx/to/jpg",label:"DOTX to JPG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10.",default:"1-2000"},ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},dotxToJpgOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ImageResolution:numberType().int().gte(10).lte(800),ImageQuality:numberType().int().gte(10).lte(100)}),dotxToOdtDefinition={id:"dotx-to-odt",endpoint:"/convert/dotx/to/odt",label:"DOTX to ODT",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},UpdateReferences:{type:"boolean",description:"Update all reference fields in the document.",default:!1}}}},dotxToOdtOptionsSchema=objectType({Password:stringType().optional(),UpdateToc:booleanType(),UpdateReferences:booleanType()}),dotxToPdfDefinition={id:"dotx-to-pdf",endpoint:"/convert/dotx/to/pdf",label:"DOTX to PDF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10.",default:"1-6000"},ConvertMarkups:{type:"boolean",description:"Convert document markups like revisions and comments.",default:!1},ConvertTags:{type:"boolean",description:"Convert document structure tags for accessibility.",default:!1},ConvertMetadata:{type:"boolean",description:"Convert document metadata like Title, Author, Keywords to PDF metadata.",default:!0},ConvertHeadings:{type:"boolean",description:"Convert Word headings to PDF bookmarks.",default:!0},ConvertBookmarks:{type:"boolean",description:"Convert Word bookmarks to PDF bookmarks.",default:!1},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},CompressPDF:{type:"boolean",description:"It tries to produce smaller output files but requires Adobe Reader 6, released in 2003 or newer, to view created PDF files.",default:!1},Pdfa:{type:"boolean",description:"Create PDF/A-3b compliant document.",default:!1}}}},dotxToPdfOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertMarkups:booleanType(),ConvertTags:booleanType(),ConvertMetadata:booleanType(),ConvertHeadings:booleanType(),ConvertBookmarks:booleanType(),UpdateToc:booleanType(),CompressPDF:booleanType(),Pdfa:booleanType()}),dotxToRtfDefinition={id:"dotx-to-rtf",endpoint:"/convert/dotx/to/rtf",label:"DOTX to RTF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},UpdateReferences:{type:"boolean",description:"Update all reference fields in the document.",default:!1}}}},dotxToRtfOptionsSchema=objectType({Password:stringType().optional(),UpdateToc:booleanType(),UpdateReferences:booleanType()}),dotxToXmlDefinition={id:"dotx-to-xml",endpoint:"/convert/dotx/to/xml",label:"DOTX to XML",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},UpdateReferences:{type:"boolean",description:"Update all reference fields in the document.",default:!1},XmlType:{enum:["word2003","flatWordXml","strictOpenXml"],type:"string",description:"Specifies the type of XML to use when saving a Word document.",default:"word2003","x-enum-labels":{word2003:"Word 2003 (legacy)",flatWordXml:"Word Flat OPC XML",strictOpenXml:"Strict Open XML Document"}}}}},dotxToXmlOptionsSchema=objectType({Password:stringType().optional(),UpdateToc:booleanType(),UpdateReferences:booleanType(),XmlType:enumType(["word2003","flatWordXml","strictOpenXml"])}),dotxToXpsDefinition={id:"dotx-to-xps",endpoint:"/convert/dotx/to/xps",label:"DOTX to XPS",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},UpdateReferences:{type:"boolean",description:"Update all reference fields in the document.",default:!1}}}},dotxToXpsOptionsSchema=objectType({Password:stringType().optional(),UpdateToc:booleanType(),UpdateReferences:booleanType()}),dwfToJpgDefinition={id:"dwf-to-jpg",endpoint:"/convert/dwf/to/jpg",label:"DWF to JPG",inputJsonSchema:{required:[],type:"object",properties:{PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","ds
1heet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},SpaceToConvert:{enum:["default","all","model"],type:"string",description:"Set space type to convert.",default:"default","x-enum-labels":{default:"Default",all:"All",model:"Model Space"}},CustomSpaceToConvert:{type:"string",description:"Set custom layout name to convert by setting it name or index. This property overrides the SpaceToConvert property."},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},dwfToJpgOptionsSchema=objectType({PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),SpaceToConvert:enumType(["default","all","model"]),CustomSpaceToConvert:stringType().optional(),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),dwfToPdfDefinition={id:"dwf-to-pdf",endpoint:"/convert/dwf/to/pdf",label:"DWF to PDF",inputJsonSchema:{required:[],type:"object",properties:{SpaceToConvert:{enum:["default","all","model"],type:"string",description:"Set space type to convert.",default:"default","x-enum-labels":{default:"Default",all:"All",model:"Model Space"}},CustomSpaceToConvert:{type:"string",description:"Set custom layout name to convert by setting it name or index. This property overrides the SpaceToConvert property."},ExportLayers:{type:"boolean",description:"Export AutoCAD layers.",default:!0},AutoFit:{type:"boolean",description:"The converted drawing is detected and adjusted to fit the current page size, with the possibility of changing the page orientation to accommodate the drawing.",default:!0},PageSize:{enum:["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","b0","b1","b2","b3","b4","b5","letter","legal","ledger"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},PageOrientation:{enum:["portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"portrait","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},PageHeight:{maximum:3e4,minimum:10,type:"integer",description:"Custom page height in millimeters (mm). This option override PageSize option."},PageWidth:{maximum:3e4,minimum:10,type:"integer",description:"Custom page width in millimeters (mm). This option override PageSize option."},ColorSpace:{enum:["truecolors","grayscale","monochrome"],type:"string",description:"Sets the color space of the output image.",default:"truecolors","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",
1srgb:"sRGB",truecolors:"Truecolors"}}}}},dwfToPdfOptionsSchema=objectType({SpaceToConvert:enumType(["default","all","model"]),CustomSpaceToConvert:stringType().optional(),ExportLayers:booleanType(),AutoFit:booleanType(),PageSize:enumType(["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","b0","b1","b2","b3","b4","b5","letter","legal","ledger"]),PageOrientation:enumType(["portrait","landscape"]),PageHeight:numberType().int().gte(10).lte(3e4).optional(),PageWidth:numberType().int().gte(10).lte(3e4).optional(),ColorSpace:enumType(["truecolors","grayscale","monochrome"])}),dwfToPngDefinition={id:"dwf-to-png",endpoint:"/convert/dwf/to/png",label:"DWF to PNG",inputJsonSchema:{required:[],type:"object",properties:{SpaceToConvert:{enum:["default","all","model"],type:"string",description:"Set space type to convert.",default:"default","x-enum-labels":{default:"Default",all:"All",model:"Model Space"}},CustomSpaceToConvert:{type:"string",description:"Set custom layout name to convert by setting it name or index. This property overrides the SpaceToConvert property."},ExportLayers:{type:"boolean",description:"Export AutoCAD layers.",default:!0},ColorSpace:{enum:["truecolors","grayscale","monochrome"],type:"string",description:"Sets the color space of the output image.",default:"truecolors","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}},ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ImageAntialiasing:{maximum:8,minimum:0,type:"integer",description:"Control the use of text and graphics subsample antialiasing. The subsampling box size should be 8 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:8}}}},dwfToPngOptionsSchema=objectType({SpaceToConvert:enumType(["default","all","model"]),CustomSpaceToConvert:stringType().optional(),ExportLayers:booleanType(),ColorSpace:enumType(["truecolors","grayscale","monochrome"]),ImageResolution:numberType().int().gte(10).lte(800),ImageAntialiasing:numberType().int().gte(0).lte(8)}),dwfToTiffDefinition={id:"dwf-to-tiff",endpoint:"/convert/dwf/to/tiff",label:"DWF to TIFF",inputJsonSchema:{required:[],type:"object",properties:{PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},SpaceToConvert:{enum:["default","all","model"],type:"string",description:"Set space type to convert.",default:"default","x-enum-labels":{default:"Default",all:"All",model:"Model Space"}},CustomSpaceToConvert:{type:"string",description:"Set custom layout name to convert by setting it name or index. This property overrides the SpaceToConvert property."},TiffType:{enum:["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"],type:"string",description:"Set TIFF type",default:"color24lzw","x-enum-labels":{color24nc:"24bits RGB, uncompressed",color32nc:"32bits CMYK, uncompressed",color24lzw:"24bits RGB, LZW-compatible compression",color32lzw:"32bits CMYK, LZW-compatible compression",color24zip:"24bits RGB, ZIP (Deflate) compression",color32zip:"32bits CMYK, ZIP (Deflate) compression",grayscale:"8bits Grayscale, uncompressed",grayscalelzw:"8bits Grayscale, LZW-compatible compression",grayscalezip:"8bits Grayscale, ZIP (Deflate) compression",monochromeg3:"Monochrome - G3 fax encoding with EOLs",monochromeg32d:"Monochrome - 2-D G3 fax encoding",monochromeg4:"Monochrome - G4 fax encoding",monochromelzw:"Monochrome - LZW-compatible compression",monochromepackbits:"Monochrome - PackBits compression"}},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},FillOrder:{enum:["0","1"],type:"string",description:"The logical order of bits within a byte.",default:"0","x-enum-labels":{0:"MSB-to-LSB",1:"LSB-to-MSB"}},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},dwfToTiffOptionsSchema=objectType({PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","ds
1heet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),SpaceToConvert:enumType(["default","all","model"]),CustomSpaceToConvert:stringType().optional(),TiffType:enumType(["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"]),MultiPage:booleanType(),FillOrder:enumType(["0","1"]),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),dwfToWebpDefinition={id:"dwf-to-webp",endpoint:"/convert/dwf/to/webp",label:"DWF to WEBP",inputJsonSchema:{required:[],type:"object",properties:{PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},SpaceToConvert:{enum:["default","all","model"],type:"string",description:"Set space type to convert.",default:"default","x-enum-labels":{default:"Default",all:"All",model:"Model Space"}},CustomSpaceToConvert:{type:"string",description:"Set custom layout name to convert by setting it name or index. This property overrides the SpaceToConvert property."},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},dwfToWebpOptionsSchema=objectType({PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),SpaceToConvert:enumType(["default","all","model"]),CustomSpaceToConvert:stringType().optional(),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),dwfxToJpgDefinition={id:"dwfx-to-jpg",endpoint:"/convert/dwfx/to/jpg",label:"DWFX to JPG",inputJsonSchema:{required:[],type:"object",properties:{PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},SpaceToConvert:{enum:["default","all","model"],type:"string",description:"Set space type to convert.",default:"default","x-enum-labels":{default:"Default",all:"All",model:"Model Space"}},CustomSpaceToConvert:{type:"string",description:"Set custom layout name to convert by setting it name or index. This property overrides the SpaceToConvert property."},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},dwfxToJpgOptionsSchema=objectType({PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","ds
1heet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),SpaceToConvert:enumType(["default","all","model"]),CustomSpaceToConvert:stringType().optional(),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),dwfxToPdfDefinition={id:"dwfx-to-pdf",endpoint:"/convert/dwfx/to/pdf",label:"DWFX to PDF",inputJsonSchema:{required:[],type:"object",properties:{SpaceToConvert:{enum:["default","all","model"],type:"string",description:"Set space type to convert.",default:"default","x-enum-labels":{default:"Default",all:"All",model:"Model Space"}},CustomSpaceToConvert:{type:"string",description:"Set custom layout name to convert by setting it name or index. This property overrides the SpaceToConvert property."},ExportLayers:{type:"boolean",description:"Export AutoCAD layers.",default:!0},AutoFit:{type:"boolean",description:"The converted drawing is detected and adjusted to fit the current page size, with the possibility of changing the page orientation to accommodate the drawing.",default:!0},PageSize:{enum:["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","b0","b1","b2","b3","b4","b5","letter","legal","ledger"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},PageOrientation:{enum:["portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"portrait","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},PageHeight:{maximum:3e4,minimum:10,type:"integer",description:"Custom page height in millimeters (mm). This option override PageSize option."},PageWidth:{maximum:3e4,minimum:10,type:"integer",description:"Custom page width in millimeters (mm). This option override PageSize option."},ColorSpace:{enum:["truecolors","grayscale","monochrome"],type:"string",description:"Sets the color space of the output image.",default:"truecolors","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}}}}},dwfxToPdfOptionsSchema=objectType({SpaceToConvert:enumType(["default","all","model"]),CustomSpaceToConvert:stringType().optional(),ExportLayers:booleanType(),AutoFit:booleanType(),PageSize:enumType(["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","b0","b1","b2","b3","b4","b5","letter","legal","ledger"]),PageOrientation:enumType(["portrait","landscape"]),PageHeight:numberType().int().gte(10).lte(3e4).optional(),PageWidth:numberType().int().gte(10).lte(3e4).optional(),ColorSpace:enumType(["truecolors","grayscale","monochrome"])}),dwfxToPngDefinition={id:"dwfx-to-png",endpoint:"/convert/dwfx/to/png",label:"DWFX to PNG",inputJsonSchema:{required:[],type:"object",properties:{SpaceToConvert:{enum:["default","all","model"],type:"string",description:"Set space type to convert.",default:"default","x-enum-labels":{default:"Default",all:"All",model:"Model Space"}},CustomSpaceToConvert:{type:"string",description:"Set custom layout name to convert by setting it name or index. This property overrides the SpaceToConvert property."},ExportLayers:{type:"boolean",description:"Export AutoCAD layers.",default:!0},ColorSpace:{enum:["truecolors","grayscale","monochrome"],type:"string",description:"Sets the color space of the output image.",default:"truecolors","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}},ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ImageAntialiasing:{maximum:8,minimum:0,type:"integer",description:"Control the use of text and graphics subsample antialiasing. The subsampling box size should be 8 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:8}}}},dwfxToPngOptionsSchema=objectType({SpaceToConvert:enumType(["default","all","model"]),CustomSpaceToConvert:stringType().optional(),ExportLayers:booleanType(),ColorSpace:enumType(["truecolors","grayscale","monochrome"]),ImageResolution:numberType().int().gte(10).lte(800),ImageAntialiasing:numberType().int().gte(0).lte(8)}),dwfxToTiffDefinition={id:"dwfx-to-tiff",endpoint:"/convert/dwfx/to/tiff",label:"DWFX to TIFF",inputJsonSchema:{required:[],type:"object",properties:{PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","ds
1heet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},SpaceToConvert:{enum:["default","all","model"],type:"string",description:"Set space type to convert.",default:"default","x-enum-labels":{default:"Default",all:"All",model:"Model Space"}},CustomSpaceToConvert:{type:"string",description:"Set custom layout name to convert by setting it name or index. This property overrides the SpaceToConvert property."},TiffType:{enum:["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"],type:"string",description:"Set TIFF type",default:"color24lzw","x-enum-labels":{color24nc:"24bits RGB, uncompressed",color32nc:"32bits CMYK, uncompressed",color24lzw:"24bits RGB, LZW-compatible compression",color32lzw:"32bits CMYK, LZW-compatible compression",color24zip:"24bits RGB, ZIP (Deflate) compression",color32zip:"32bits CMYK, ZIP (Deflate) compression",grayscale:"8bits Grayscale, uncompressed",grayscalelzw:"8bits Grayscale, LZW-compatible compression",grayscalezip:"8bits Grayscale, ZIP (Deflate) compression",monochromeg3:"Monochrome - G3 fax encoding with EOLs",monochromeg32d:"Monochrome - 2-D G3 fax encoding",monochromeg4:"Monochrome - G4 fax encoding",monochromelzw:"Monochrome - LZW-compatible compression",monochromepackbits:"Monochrome - PackBits compression"}},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},FillOrder:{enum:["0","1"],type:"string",description:"The logical order of bits within a byte.",default:"0","x-enum-labels":{0:"MSB-to-LSB",1:"LSB-to-MSB"}},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},dwfxToTiffOptionsSchema=objectType({PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),SpaceToConvert:enumType(["default","all","model"]),CustomSpaceToConvert:stringType().optional(),TiffType:enumType(["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"]),MultiPage:booleanType(),FillOrder:enumType(["0","1"]),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),dwfxToWebpDefinition={id:"dwfx-to-webp",endpoint:"/convert/dwfx/to/webp",label:"DWFX to WEBP",inputJsonSchema:{required:[],type:"object",properties:{PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","ds
1heet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},SpaceToConvert:{enum:["default","all","model"],type:"string",description:"Set space type to convert.",default:"default","x-enum-labels":{default:"Default",all:"All",model:"Model Space"}},CustomSpaceToConvert:{type:"string",description:"Set custom layout name to convert by setting it name or index. This property overrides the SpaceToConvert property."},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},dwfxToWebpOptionsSchema=objectType({PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),SpaceToConvert:enumType(["default","all","model"]),CustomSpaceToConvert:stringType().optional(),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),dwgToJpgDefinition={id:"dwg-to-jpg",endpoint:"/convert/dwg/to/jpg",label:"DWG to JPG",inputJsonSchema:{required:[],type:"object",properties:{PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},SpaceToConvert:{enum:["default","all","model"],type:"string",description:"Set space type to convert.",default:"default","x-enum-labels":{default:"Default",all:"All",model:"Model Space"}},CustomSpaceToConvert:{type:"string",description:"Set custom layout name to convert by setting it name or index. This property overrides the SpaceToConvert property."},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},dwgToJpgOptionsSchema=objectType({PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","ds
1heet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),SpaceToConvert:enumType(["default","all","model"]),CustomSpaceToConvert:stringType().optional(),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),dwgToPdfDefinition={id:"dwg-to-pdf",endpoint:"/convert/dwg/to/pdf",label:"DWG to PDF",inputJsonSchema:{required:[],type:"object",properties:{SpaceToConvert:{enum:["default","all","model"],type:"string",description:"Set space type to convert.",default:"default","x-enum-labels":{default:"Default",all:"All",model:"Model Space"}},CustomSpaceToConvert:{type:"string",description:"Set custom layout name to convert by setting it name or index. This property overrides the SpaceToConvert property."},ExportLayers:{type:"boolean",description:"Export AutoCAD layers.",default:!0},AutoFit:{type:"boolean",description:"The converted drawing is detected and adjusted to fit the current page size, with the possibility of changing the page orientation to accommodate the drawing.",default:!0},PageSize:{enum:["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","b0","b1","b2","b3","b4","b5","letter","legal","ledger"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},PageOrientation:{enum:["portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"portrait","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},PageHeight:{maximum:3e4,minimum:10,type:"integer",description:"Custom page height in millimeters (mm). This option override PageSize option."},PageWidth:{maximum:3e4,minimum:10,type:"integer",description:"Custom page width in millimeters (mm). This option override PageSize option."},ColorSpace:{enum:["truecolors","grayscale","monochrome"],type:"string",description:"Sets the color space of the output image.",default:"truecolors","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}}}}},dwgToPdfOptionsSchema=objectType({SpaceToConvert:enumType(["default","all","model"]),CustomSpaceToConvert:stringType().optional(),ExportLayers:booleanType(),AutoFit:booleanType(),PageSize:enumType(["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","b0","b1","b2","b3","b4","b5","letter","legal","ledger"]),PageOrientation:enumType(["portrait","landscape"]),PageHeight:numberType().int().gte(10).lte(3e4).optional(),PageWidth:numberType().int().gte(10).lte(3e4).optional(),ColorSpace:enumType(["truecolors","grayscale","monochrome"])}),dwgToPngDefinition={id:"dwg-to-png",endpoint:"/convert/dwg/to/png",label:"DWG to PNG",inputJsonSchema:{required:[],type:"object",properties:{SpaceToConvert:{enum:["default","all","model"],type:"string",description:"Set space type to convert.",default:"default","x-enum-labels":{default:"Default",all:"All",model:"Model Space"}},CustomSpaceToConvert:{type:"string",description:"Set custom layout name to convert by setting it name or index. This property overrides the SpaceToConvert property."},ExportLayers:{type:"boolean",description:"Export AutoCAD layers.",default:!0},ColorSpace:{enum:["truecolors","grayscale","monochrome"],type:"string",description:"Sets the color space of the output image.",default:"truecolors","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}},ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ImageAntialiasing:{maximum:8,minimum:0,type:"integer",description:"Control the use of text and graphics subsample antialiasing. The subsampling box size should be 8 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:8}}}},dwgToPngOptionsSchema=objectType({SpaceToConvert:enumType(["default","all","model"]),CustomSpaceToConvert:stringType().optional(),ExportLayers:booleanType(),ColorSpace:enumType(["truecolors","grayscale","monochrome"]),ImageResolution:numberType().int().gte(10).lte(800),ImageAntialiasing:numberType().int().gte(0).lte(8)}),dwgToTiffDefinition={id:"dwg-to-tiff",endpoint:"/convert/dwg/to/tiff",label:"DWG to TIFF",inputJsonSchema:{required:[],type:"object",properties:{PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","ds
1heet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},SpaceToConvert:{enum:["default","all","model"],type:"string",description:"Set space type to convert.",default:"default","x-enum-labels":{default:"Default",all:"All",model:"Model Space"}},CustomSpaceToConvert:{type:"string",description:"Set custom layout name to convert by setting it name or index. This property overrides the SpaceToConvert property."},TiffType:{enum:["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"],type:"string",description:"Set TIFF type",default:"color24lzw","x-enum-labels":{color24nc:"24bits RGB, uncompressed",color32nc:"32bits CMYK, uncompressed",color24lzw:"24bits RGB, LZW-compatible compression",color32lzw:"32bits CMYK, LZW-compatible compression",color24zip:"24bits RGB, ZIP (Deflate) compression",color32zip:"32bits CMYK, ZIP (Deflate) compression",grayscale:"8bits Grayscale, uncompressed",grayscalelzw:"8bits Grayscale, LZW-compatible compression",grayscalezip:"8bits Grayscale, ZIP (Deflate) compression",monochromeg3:"Monochrome - G3 fax encoding with EOLs",monochromeg32d:"Monochrome - 2-D G3 fax encoding",monochromeg4:"Monochrome - G4 fax encoding",monochromelzw:"Monochrome - LZW-compatible compression",monochromepackbits:"Monochrome - PackBits compression"}},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},FillOrder:{enum:["0","1"],type:"string",description:"The logical order of bits within a byte.",default:"0","x-enum-labels":{0:"MSB-to-LSB",1:"LSB-to-MSB"}},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},dwgToTiffOptionsSchema=objectType({PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),SpaceToConvert:enumType(["default","all","model"]),CustomSpaceToConvert:stringType().optional(),TiffType:enumType(["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"]),MultiPage:booleanType(),FillOrder:enumType(["0","1"]),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),dwgToWebpDefinition={id:"dwg-to-webp",endpoint:"/convert/dwg/to/webp",label:"DWG to WEBP",inputJsonSchema:{required:[],type:"object",properties:{PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","ds
1heet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},SpaceToConvert:{enum:["default","all","model"],type:"string",description:"Set space type to convert.",default:"default","x-enum-labels":{default:"Default",all:"All",model:"Model Space"}},CustomSpaceToConvert:{type:"string",description:"Set custom layout name to convert by setting it name or index. This property overrides the SpaceToConvert property."},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},dwgToWebpOptionsSchema=objectType({PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),SpaceToConvert:enumType(["default","all","model"]),CustomSpaceToConvert:stringType().optional(),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),dxfToJpgDefinition={id:"dxf-to-jpg",endpoint:"/convert/dxf/to/jpg",label:"DXF to JPG",inputJsonSchema:{required:[],type:"object",properties:{PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},SpaceToConvert:{enum:["default","all","model"],type:"string",description:"Set space type to convert.",default:"default","x-enum-labels":{default:"Default",all:"All",model:"Model Space"}},CustomSpaceToConvert:{type:"string",description:"Set custom layout name to convert by setting it name or index. This property overrides the SpaceToConvert property."},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},dxfToJpgOptionsSchema=objectType({PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","ds
1heet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),SpaceToConvert:enumType(["default","all","model"]),CustomSpaceToConvert:stringType().optional(),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),dxfToPdfDefinition={id:"dxf-to-pdf",endpoint:"/convert/dxf/to/pdf",label:"DXF to PDF",inputJsonSchema:{required:[],type:"object",properties:{SpaceToConvert:{enum:["default","all","model"],type:"string",description:"Set space type to convert.",default:"default","x-enum-labels":{default:"Default",all:"All",model:"Model Space"}},CustomSpaceToConvert:{type:"string",description:"Set custom layout name to convert by setting it name or index. This property overrides the SpaceToConvert property."},ExportLayers:{type:"boolean",description:"Export AutoCAD layers.",default:!0},AutoFit:{type:"boolean",description:"The converted drawing is detected and adjusted to fit the current page size, with the possibility of changing the page orientation to accommodate the drawing.",default:!0},PageSize:{enum:["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","b0","b1","b2","b3","b4","b5","letter","legal","ledger"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},PageOrientation:{enum:["portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"portrait","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},PageHeight:{maximum:3e4,minimum:10,type:"integer",description:"Custom page height in millimeters (mm). This option override PageSize option."},PageWidth:{maximum:3e4,minimum:10,type:"integer",description:"Custom page width in millimeters (mm). This option override PageSize option."},ColorSpace:{enum:["truecolors","grayscale","monochrome"],type:"string",description:"Sets the color space of the output image.",default:"truecolors","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}}}}},dxfToPdfOptionsSchema=objectType({SpaceToConvert:enumType(["default","all","model"]),CustomSpaceToConvert:stringType().optional(),ExportLayers:booleanType(),AutoFit:booleanType(),PageSize:enumType(["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","b0","b1","b2","b3","b4","b5","letter","legal","ledger"]),PageOrientation:enumType(["portrait","landscape"]),PageHeight:numberType().int().gte(10).lte(3e4).optional(),PageWidth:numberType().int().gte(10).lte(3e4).optional(),ColorSpace:enumType(["truecolors","grayscale","monochrome"])}),dxfToPngDefinition={id:"dxf-to-png",endpoint:"/convert/dxf/to/png",label:"DXF to PNG",inputJsonSchema:{required:[],type:"object",properties:{SpaceToConvert:{enum:["default","all","model"],type:"string",description:"Set space type to convert.",default:"default","x-enum-labels":{default:"Default",all:"All",model:"Model Space"}},CustomSpaceToConvert:{type:"string",description:"Set custom layout name to convert by setting it name or index. This property overrides the SpaceToConvert property."},ExportLayers:{type:"boolean",description:"Export AutoCAD layers.",default:!0},ColorSpace:{enum:["truecolors","grayscale","monochrome"],type:"string",description:"Sets the color space of the output image.",default:"truecolors","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}},ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ImageAntialiasing:{maximum:8,minimum:0,type:"integer",description:"Control the use of text and graphics subsample antialiasing. The subsampling box size should be 8 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:8}}}},dxfToPngOptionsSchema=objectType({SpaceToConvert:enumType(["default","all","model"]),CustomSpaceToConvert:stringType().optional(),ExportLayers:booleanType(),ColorSpace:enumType(["truecolors","grayscale","monochrome"]),ImageResolution:numberType().int().gte(10).lte(800),ImageAntialiasing:numberType().int().gte(0).lte(8)}),dxfToTiffDefinition={id:"dxf-to-tiff",endpoint:"/convert/dxf/to/tiff",label:"DXF to TIFF",inputJsonSchema:{required:[],type:"object",properties:{PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","ds
1heet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},SpaceToConvert:{enum:["default","all","model"],type:"string",description:"Set space type to convert.",default:"default","x-enum-labels":{default:"Default",all:"All",model:"Model Space"}},CustomSpaceToConvert:{type:"string",description:"Set custom layout name to convert by setting it name or index. This property overrides the SpaceToConvert property."},TiffType:{enum:["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"],type:"string",description:"Set TIFF type",default:"color24lzw","x-enum-labels":{color24nc:"24bits RGB, uncompressed",color32nc:"32bits CMYK, uncompressed",color24lzw:"24bits RGB, LZW-compatible compression",color32lzw:"32bits CMYK, LZW-compatible compression",color24zip:"24bits RGB, ZIP (Deflate) compression",color32zip:"32bits CMYK, ZIP (Deflate) compression",grayscale:"8bits Grayscale, uncompressed",grayscalelzw:"8bits Grayscale, LZW-compatible compression",grayscalezip:"8bits Grayscale, ZIP (Deflate) compression",monochromeg3:"Monochrome - G3 fax encoding with EOLs",monochromeg32d:"Monochrome - 2-D G3 fax encoding",monochromeg4:"Monochrome - G4 fax encoding",monochromelzw:"Monochrome - LZW-compatible compression",monochromepackbits:"Monochrome - PackBits compression"}},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},FillOrder:{enum:["0","1"],type:"string",description:"The logical order of bits within a byte.",default:"0","x-enum-labels":{0:"MSB-to-LSB",1:"LSB-to-MSB"}},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},dxfToTiffOptionsSchema=objectType({PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),SpaceToConvert:enumType(["default","all","model"]),CustomSpaceToConvert:stringType().optional(),TiffType:enumType(["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"]),MultiPage:booleanType(),FillOrder:enumType(["0","1"]),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),dxfToWebpDefinition={id:"dxf-to-webp",endpoint:"/convert/dxf/to/webp",label:"DXF to WEBP",inputJsonSchema:{required:[],type:"object",properties:{PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","ds
1heet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},SpaceToConvert:{enum:["default","all","model"],type:"string",description:"Set space type to convert.",default:"default","x-enum-labels":{default:"Default",all:"All",model:"Model Space"}},CustomSpaceToConvert:{type:"string",description:"Set custom layout name to convert by setting it name or index. This property overrides the SpaceToConvert property."},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},dxfToWebpOptionsSchema=objectType({PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),SpaceToConvert:enumType(["default","all","model"]),CustomSpaceToConvert:stringType().optional(),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),epsToJpgDefinition={id:"eps-to-jpg",endpoint:"/convert/eps/to/jpg",label:"EPS to JPG",inputJsonSchema:{required:[],type:"object",properties:{ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},epsToJpgOptionsSchema=objectType({ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),epsToPdfDefinition={id:"eps-to-pdf",endpoint:"/convert/eps/to/pdf",label:"EPS to PDF",inputJsonSchema:{required:[],type:"object",properties:{PdfVersion:{enum:["1.2","1.3","1.4","1.5","1.6","1.7","1.8","2.0"],type:"string",description:"Specify the target PDF Version",default:"1.5","x-enum-labels":{"1.2":"Acrobat 3 (PDF 1.2)","1.3":"Acrobat 4 (PDF 1.3)","1.4":"Acrobat 5 (PDF 1.4)","1.5":"Acrobat 6 (PDF 1.5)","1.6":"Acrobat 7 (PDF 1.6)","1.7":"Acrobat 8 (PDF 1.7)","1.8":"Acrobat 9 (PDF 1.7, e-level 3)","2.0":"Acrobat DC (PDF 2.0)"}},PdfResolution:{maximum:2400,minimum:10,type:"integer",description:"Set PDF resolution.",default:300},EmbedFonts:{type:"boolean",description:"Embed fonts in PDF.",default:!0},ColorSpace:{enum:["Default","RGB","CMYK","Gray"],type:"string",description:"Sets the color space of the output image.",default:"Default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",
1srgb:"sRGB",truecolors:"Truecolors"}}}}},epsToPdfOptionsSchema=objectType({PdfVersion:enumType(["1.2","1.3","1.4","1.5","1.6","1.7","1.8","2.0"]),PdfResolution:numberType().int().gte(10).lte(2400),EmbedFonts:booleanType(),ColorSpace:enumType(["Default","RGB","CMYK","Gray"])}),epsToPngDefinition={id:"eps-to-png",endpoint:"/convert/eps/to/png",label:"EPS to PNG",inputJsonSchema:{required:[],type:"object",properties:{TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},epsToPngOptionsSchema=objectType({TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),epsToTiffDefinition={id:"eps-to-tiff",endpoint:"/convert/eps/to/tiff",label:"EPS to TIFF",inputJsonSchema:{required:[],type:"object",properties:{TiffType:{enum:["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"],type:"string",description:"Set TIFF type",default:"color24lzw","x-enum-labels":{color24nc:"24bits RGB, uncompressed",color32nc:"32bits CMYK, uncompressed",color24lzw:"24bits RGB, LZW-compatible compression",color32lzw:"32bits CMYK, LZW-compatible compression",color24zip:"24bits RGB, ZIP (Deflate) compression",color32zip:"32bits CMYK, ZIP (Deflate) compression",grayscale:"8bits Grayscale, uncompressed",grayscalelzw:"8bits Grayscale, LZW-compatible compression",grayscalezip:"8bits Grayscale, ZIP (Deflate) compression",monochromeg3:"Monochrome - G3 fax encoding with EOLs",monochromeg32d:"Monochrome - 2-D G3 fax encoding",monochromeg4:"Monochrome - G4 fax encoding",monochromelzw:"Monochrome - LZW-compatible compression",monochromepackbits:"Monochrome - PackBits compression"}},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},FillOrder:{enum:["0","1"],type:"string",description:"The logical order of bits within a byte.",default:"0","x-enum-labels":{0:"MSB-to-LSB",1:"LSB-to-MSB"}},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},epsToTiffOptionsSchema=objectType({TiffType:enumType(["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"]),MultiPage:booleanType(),FillOrder:enumType(["0","1"]),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),epsToWebpDefinition={id:"eps-to-webp",endpoint:"/convert/eps/to/webp",label:"EPS to WEBP",inputJsonSchema:{required:[],type:"object",properties:{ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},epsToWebpOptionsSchema=objectType({ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),epubToJpgDefinition={id:"epub-to-jpg",endpoint:"/convert/epub/to/jpg",label:"EPUB to JPG",inputJsonSchema:{required:[],type:"object",properties:{ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},epubToJpgOptionsSchema=objectType({ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),epubToPdfDefinition={id:"epub-to-pdf",endpoint:"/convert/epub/to/pdf",label:"EPUB to PDF",inputJsonSchema:{required:[],type:"object",properties:{PdfVersion:{enum:["1.2","1.3","1.4","1.5","1.6","1.7","1.8","2.0"],type:"string",description:"Specify the target PDF Version",default:"1.5","x-enum-labels":{"1.2":"Acrobat 3 (PDF 1.2)","1.3":"Acrobat 4 (PDF 1.3)","1.4":"Acrobat 5 (PDF 1.4)","1.5":"Acrobat 6 (PDF 1.5)","1.6":"Acrobat 7 (PDF 1.6)","1.7":"Acrobat 8 (PDF 1.7)","1.8":"Acrobat 9 (PDF 1.7, e-level 3)","2.0":"Acrobat DC (PDF 2.0)"}},PdfResolution:{maximum:2400,minimum:10,type:"integer",description:"Set PDF resolution.",default:300},EmbedFonts:{type:"boolean",description:"Embed fonts in PDF.",default:!0},ColorSpace:{enum:["Default","RGB","CMYK","Gray"],type:"string",description:"Sets the color space of the output image.",default:"Default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",
1srgb:"sRGB",truecolors:"Truecolors"}}}}},epubToPdfOptionsSchema=objectType({PdfVersion:enumType(["1.2","1.3","1.4","1.5","1.6","1.7","1.8","2.0"]),PdfResolution:numberType().int().gte(10).lte(2400),EmbedFonts:booleanType(),ColorSpace:enumType(["Default","RGB","CMYK","Gray"])}),epubToPngDefinition={id:"epub-to-png",endpoint:"/convert/epub/to/png",label:"EPUB to PNG",inputJsonSchema:{required:[],type:"object",properties:{TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},epubToPngOptionsSchema=objectType({TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),epubToTiffDefinition={id:"epub-to-tiff",endpoint:"/convert/epub/to/tiff",label:"EPUB to TIFF",inputJsonSchema:{required:[],type:"object",properties:{TiffType:{enum:["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"],type:"string",description:"Set TIFF type",default:"color24lzw","x-enum-labels":{color24nc:"24bits RGB, uncompressed",color32nc:"32bits CMYK, uncompressed",color24lzw:"24bits RGB, LZW-compatible compression",color32lzw:"32bits CMYK, LZW-compatible compression",color24zip:"24bits RGB, ZIP (Deflate) compression",color32zip:"32bits CMYK, ZIP (Deflate) compression",grayscale:"8bits Grayscale, uncompressed",grayscalelzw:"8bits Grayscale, LZW-compatible compression",grayscalezip:"8bits Grayscale, ZIP (Deflate) compression",monochromeg3:"Monochrome - G3 fax encoding with EOLs",monochromeg32d:"Monochrome - 2-D G3 fax encoding",monochromeg4:"Monochrome - G4 fax encoding",monochromelzw:"Monochrome - LZW-compatible compression",monochromepackbits:"Monochrome - PackBits compression"}},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},FillOrder:{enum:["0","1"],type:"string",description:"The logical order of bits within a byte.",default:"0","x-enum-labels":{0:"MSB-to-LSB",1:"LSB-to-MSB"}},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},epubToTiffOptionsSchema=objectType({TiffType:enumType(["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"]),MultiPage:booleanType(),FillOrder:enumType(["0","1"]),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),epubToWebpDefinition={id:"epub-to-webp",endpoint:"/convert/epub/to/webp",label:"EPUB to WEBP",inputJsonSchema:{required:[],type:"object",properties:{ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},epubToWebpOptionsSchema=objectType({ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),gifToJpgDefinition={id:"gif-to-jpg",endpoint:"/convert/gif/to/jpg",label:"GIF to JPG",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",
1srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},gifToJpgOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),gifToPdfDefinition={id:"gif-to-pdf",endpoint:"/convert/gif/to/pdf",label:"GIF to PDF",inputJsonSchema:{required:[],type:"object",properties:{ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}},PageSize:{enum:["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","letter","legal"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},Pdfa:{type:"boolean",description:"Create PDF/A-1b compliant document.",default:!1}}}},gifToPdfOptionsSchema=objectType({ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),PageSize:enumType(["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","letter","legal"]),PageOrientation:enumType(["default","portrait","landscape"]),Pdfa:booleanType()}),gifToPngDefinition={id:"gif-to-png",endpoint:"/convert/gif/to/png",label:"GIF to PNG",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200}}}},gifToPngOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800)}),gifToPnmDefinition={id:"gif-to-pnm",endpoint:"/convert/gif/to/pnm",label:"GIF to PNM",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200}}}},gifToPnmOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800)}),gifToTiffDefinition={id:"gif-to-tiff",endpoint:"/convert/gif/to/tiff",label:"GIF to TIFF",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},gifToTiffOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),MultiPage:booleanType(),ImageQuality:numberType().int().gte(10).lte(100)}),gifToWebpDefinition={id:"gif-to-webp",endpoint:"/convert/gif/to/webp",label:"GIF to WEBP",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},gifToWebpOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),heicToJpgDefinition={id:"heic-to-jpg",endpoint:"/convert/heic/to/jpg",label:"HEIC to JPG",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",
1srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},heicToJpgOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),heicToJxlDefinition={id:"heic-to-jxl",endpoint:"/convert/heic/to/jxl",label:"HEIC to JXL",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},heicToJxlOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),heicToPdfDefinition={id:"heic-to-pdf",endpoint:"/convert/heic/to/pdf",label:"HEIC to PDF",inputJsonSchema:{required:[],type:"object",properties:{ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}},PageSize:{enum:["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","letter","legal"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},Pdfa:{type:"boolean",description:"Create PDF/A-1b compliant document.",default:!1}}}},heicToPdfOptionsSchema=objectType({ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),PageSize:enumType(["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","letter","legal"]),PageOrientation:enumType(["default","portrait","landscape"]),Pdfa:booleanType()}),heicToPngDefinition={id:"heic-to-png",endpoint:"/convert/heic/to/png",label:"HEIC to PNG",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200}}}},heicToPngOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800)}),heicToPnmDefinition={id:"heic-to-pnm",endpoint:"/convert/heic/to/pnm",label:"HEIC to PNM",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200}}}},heicToPnmOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800)}),heicToTiffDefinition={id:"heic-to-tiff",endpoint:"/convert/heic/to/tiff",label:"HEIC to TIFF",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},heicToTiffOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),MultiPage:booleanType(),ImageQuality:numberType().int().gte(10).lte(100)}),heicToWebpDefinition={id:"heic-to-webp",endpoint:"/convert/heic/to/webp",label:"HEIC to WEBP",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",
1srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},heicToWebpOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),icoToJpgDefinition={id:"ico-to-jpg",endpoint:"/convert/ico/to/jpg",label:"ICO to JPG",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},icoToJpgOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),icoToPdfDefinition={id:"ico-to-pdf",endpoint:"/convert/ico/to/pdf",label:"ICO to PDF",inputJsonSchema:{required:[],type:"object",properties:{ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}},PageSize:{enum:["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","letter","legal"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},Pdfa:{type:"boolean",description:"Create PDF/A-1b compliant document.",default:!1}}}},icoToPdfOptionsSchema=objectType({ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),PageSize:enumType(["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","letter","legal"]),PageOrientation:enumType(["default","portrait","landscape"]),Pdfa:booleanType()}),icoToPngDefinition={id:"ico-to-png",endpoint:"/convert/ico/to/png",label:"ICO to PNG",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200}}}},icoToPngOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800)}),icoToPnmDefinition={id:"ico-to-pnm",endpoint:"/convert/ico/to/pnm",label:"ICO to PNM",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200}}}},icoToPnmOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800)}),icoToTiffDefinition={id:"ico-to-tiff",endpoint:"/convert/ico/to/tiff",label:"ICO to TIFF",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},icoToTiffOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),MultiPage:booleanType(),ImageQuality:numberType().int().gte(10).lte(100)}),icoToWebpDefinition={id:"ico-to-webp",endpoint:"/convert/ico/to/webp",label:"ICO to WEBP",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",
1srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},icoToWebpOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),jpgToGifDefinition={id:"jpg-to-gif",endpoint:"/convert/jpg/to/gif",label:"JPG to GIF",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},PersistAnimation:{type:"boolean",description:"Read animation values AnimationIterations and AnimationDelay from GIF file. Only works if GIF file is added to file list.",default:!0},AnimationDelay:{maximum:2e4,minimum:0,type:"integer",description:"Animation delay in milliseconds before playing the next image in an animated sequence.",default:100},AnimationIterations:{maximum:1e3,minimum:0,type:"integer",description:"Set the number of iterations to loop an animation. Zero is infinity.",default:0}}}},jpgToGifOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),PersistAnimation:booleanType(),AnimationDelay:numberType().int().gte(0).lte(2e4),AnimationIterations:numberType().int().gte(0).lte(1e3)}),jpgToJxlDefinition={id:"jpg-to-jxl",endpoint:"/convert/jpg/to/jxl",label:"JPG to JXL",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},jpgToJxlOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),jpgToPdfDefinition={id:"jpg-to-pdf",endpoint:"/convert/jpg/to/pdf",label:"JPG to PDF",inputJsonSchema:{required:[],type:"object",properties:{ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}},PageSize:{enum:["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","letter","legal"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},Pdfa:{type:"boolean",description:"Create PDF/A-1b compliant document.",default:!1}}}},jpgToPdfOptionsSchema=objectType({ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),PageSize:enumType(["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","letter","legal"]),PageOrientation:enumType(["default","portrait","landscape"]),Pdfa:booleanType()}),jpgToPngDefinition={id:"jpg-to-png",endpoint:"/convert/jpg/to/png",label:"JPG to PNG",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200}}}},jpgToPngOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800)}),jpgToPnmDefinition={id:"jpg-to-pnm",endpoint:"/convert/jpg/to/pnm",label:"JPG to PNM",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200}}}},jpgToPnmOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800)}),jpgToTiffDefinition={id:"jpg-to-tiff",endpoint:"/convert/jpg/to/tiff",label:"JPG to TIFF",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},jpgToTiffOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),MultiPage:booleanType(),ImageQuality:numberType().int().gte(10).lte(100)}),jpgToWebpDefinition={id:"jpg-to-webp",endpoint:"/convert/jpg/to/webp",label:"JPG to WEBP",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",
1srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},jpgToWebpOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),keyToJpgDefinition={id:"key-to-jpg",endpoint:"/convert/key/to/jpg",label:"KEY to JPG",inputJsonSchema:{required:[],type:"object",properties:{ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},keyToJpgOptionsSchema=objectType({ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),keyToPdfDefinition={id:"key-to-pdf",endpoint:"/convert/key/to/pdf",label:"KEY to PDF",inputJsonSchema:{required:[],type:"object",properties:{}}},keyToPdfOptionsSchema=objectType({}),keyToPngDefinition={id:"key-to-png",endpoint:"/convert/key/to/png",label:"KEY to PNG",inputJsonSchema:{required:[],type:"object",properties:{}}},keyToPngOptionsSchema=objectType({}),keyToPptxDefinition={id:"key-to-pptx",endpoint:"/convert/key/to/pptx",label:"KEY to PPTX",inputJsonSchema:{required:[],type:"object",properties:{}}},keyToPptxOptionsSchema=objectType({}),keyToTiffDefinition={id:"key-to-tiff",endpoint:"/convert/key/to/tiff",label:"KEY to TIFF",inputJsonSchema:{required:[],type:"object",properties:{}}},keyToTiffOptionsSchema=objectType({}),mdToHtmlDefinition={id:"md-to-html",endpoint:"/convert/md/to/html",label:"MD to Html ",inputJsonSchema:{required:[],type:"object",properties:{}}},mdToHtmlOptionsSchema=objectType({}),mdToPdfDefinition={id:"md-to-pdf",endpoint:"/convert/md/to/pdf",label:"MD to PDF ",inputJsonSchema:{required:[],type:"object",properties:{PageSize:{enum:["a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","b0","b1","b2","b3","b4","b5","letter","legal","ledger"],type:"string",description:"The property scales each image to fit a given page size",default:"a4","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}}}}},mdToPdfOptionsSchema=objectType({PageSize:enumType(["a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","b0","b1","b2","b3","b4","b5","letter","legal","ledger"])}),mobiToJpgDefinition={id:"mobi-to-jpg",endpoint:"/convert/mobi/to/jpg",label:"MOBI to JPG",inputJsonSchema:{required:[],type:"object",properties:{ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},mobiToJpgOptionsSchema=objectType({ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),mobiToPdfDefinition={id:"mobi-to-pdf",endpoint:"/convert/mobi/to/pdf",label:"MOBI to PDF",inputJsonSchema:{required:[],type:"object",properties:{PdfVersion:{enum:["1.2","1.3","1.4","1.5","1.6","1.7","1.8","2.0"],type:"string",description:"Specify the target PDF Version",default:"1.5","x-enum-labels":{"1.2":"Acrobat 3 (PDF 1.2)","1.3":"Acrobat 4 (PDF 1.3)","1.4":"Acrobat 5 (PDF 1.4)","1.5":"Acrobat 6 (PDF 1.5)","1.6":"Acrobat 7 (PDF 1.6)","1.7":"Acrobat 8 (PDF 1.7)","1.8":"Acrobat 9 (PDF 1.7, e-level 3)","2.0":"Acrobat DC (PDF 2.0)"}},PdfResolution:{maximum:2400,minimum:10,type:"integer",description:"Set PDF resolution.",default:300},EmbedFonts:{type:"boolean",description:"Embed fonts in PDF.",default:!0},ColorSpace:{enum:["Default","RGB","CMYK","Gray"],type:"string",description:"Sets the color space of the output image.",default:"Default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",
1srgb:"sRGB",truecolors:"Truecolors"}}}}},mobiToPdfOptionsSchema=objectType({PdfVersion:enumType(["1.2","1.3","1.4","1.5","1.6","1.7","1.8","2.0"]),PdfResolution:numberType().int().gte(10).lte(2400),EmbedFonts:booleanType(),ColorSpace:enumType(["Default","RGB","CMYK","Gray"])}),mobiToPngDefinition={id:"mobi-to-png",endpoint:"/convert/mobi/to/png",label:"MOBI to PNG",inputJsonSchema:{required:[],type:"object",properties:{TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},mobiToPngOptionsSchema=objectType({TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),mobiToTiffDefinition={id:"mobi-to-tiff",endpoint:"/convert/mobi/to/tiff",label:"MOBI to TIFF",inputJsonSchema:{required:[],type:"object",properties:{TiffType:{enum:["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"],type:"string",description:"Set TIFF type",default:"color24lzw","x-enum-labels":{color24nc:"24bits RGB, uncompressed",color32nc:"32bits CMYK, uncompressed",color24lzw:"24bits RGB, LZW-compatible compression",color32lzw:"32bits CMYK, LZW-compatible compression",color24zip:"24bits RGB, ZIP (Deflate) compression",color32zip:"32bits CMYK, ZIP (Deflate) compression",grayscale:"8bits Grayscale, uncompressed",grayscalelzw:"8bits Grayscale, LZW-compatible compression",grayscalezip:"8bits Grayscale, ZIP (Deflate) compression",monochromeg3:"Monochrome - G3 fax encoding with EOLs",monochromeg32d:"Monochrome - 2-D G3 fax encoding",monochromeg4:"Monochrome - G4 fax encoding",monochromelzw:"Monochrome - LZW-compatible compression",monochromepackbits:"Monochrome - PackBits compression"}},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},FillOrder:{enum:["0","1"],type:"string",description:"The logical order of bits within a byte.",default:"0","x-enum-labels":{0:"MSB-to-LSB",1:"LSB-to-MSB"}},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},mobiToTiffOptionsSchema=objectType({TiffType:enumType(["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"]),MultiPage:booleanType(),FillOrder:enumType(["0","1"]),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),mobiToWebpDefinition={id:"mobi-to-webp",endpoint:"/convert/mobi/to/webp",label:"MOBI to WEBP",inputJsonSchema:{required:[],type:"object",properties:{ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},mobiToWebpOptionsSchema=objectType({ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),numbersToCsvDefinition={id:"numbers-to-csv",endpoint:"/convert/numbers/to/csv",label:"NUMBERS to CSV",inputJsonSchema:{required:[],type:"object",properties:{}}},numbersToCsvOptionsSchema=objectType({}),numbersToJpgDefinition={id:"numbers-to-jpg",endpoint:"/convert/numbers/to/jpg",label:"NUMBERS to JPG",inputJsonSchema:{required:[],type:"object",properties:{ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",
1srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},numbersToJpgOptionsSchema=objectType({ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),numbersToPdfDefinition={id:"numbers-to-pdf",endpoint:"/convert/numbers/to/pdf",label:"NUMBERS to PDF",inputJsonSchema:{required:[],type:"object",properties:{}}},numbersToPdfOptionsSchema=objectType({}),numbersToPngDefinition={id:"numbers-to-png",endpoint:"/convert/numbers/to/png",label:"NUMBERS to PNG",inputJsonSchema:{required:[],type:"object",properties:{}}},numbersToPngOptionsSchema=objectType({}),numbersToXlsxDefinition={id:"numbers-to-xlsx",endpoint:"/convert/numbers/to/xlsx",label:"NUMBERS to XLSX",inputJsonSchema:{required:[],type:"object",properties:{}}},numbersToXlsxOptionsSchema=objectType({}),odcToJpgDefinition={id:"odc-to-jpg",endpoint:"/convert/odc/to/jpg",label:"ODC to JPG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},odcToJpgOptionsSchema=objectType({Password:stringType().optional(),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),odcToPdfDefinition={id:"odc-to-pdf",endpoint:"/convert/odc/to/pdf",label:"ODC to PDF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},CompressPDF:{type:"boolean",description:"It tries to produce smaller output files but requires Adobe Reader 6, released in 2003 or newer, to view created PDF files.",default:!1},Pdfa:{type:"boolean",description:"Create PDF/A-1b compliant document.",default:!1}}}},odcToPdfOptionsSchema=objectType({Password:stringType().optional(),CompressPDF:booleanType(),Pdfa:booleanType()}),odcToPngDefinition={id:"odc-to-png",endpoint:"/convert/odc/to/png",label:"ODC to PNG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},odcToPngOptionsSchema=objectType({Password:stringType().optional(),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),odcToTiffDefinition={id:"odc-to-tiff",endpoint:"/convert/odc/to/tiff",label:"ODC to TIFF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},TiffType:{enum:["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"],type:"string",description:"Set TIFF type",default:"color24lzw","x-enum-labels":{color24nc:"24bits RGB, uncompressed",color32nc:"32bits CMYK, uncompressed",color24lzw:"24bits RGB, LZW-compatible compression",color32lzw:"32bits CMYK, LZW-compatible compression",color24zip:"24bits RGB, ZIP (Deflate) compression",color32zip:"32bits CMYK, ZIP (Deflate) compression",grayscale:"8bits Grayscale, uncompressed",grayscalelzw:"8bits Grayscale, LZW-compatible compression",grayscalezip:"8bits Grayscale, ZIP (Deflate) compression",monochromeg3:"Monochrome - G3 fax encoding with EOLs",monochromeg32d:"Monochrome - 2-D G3 fax encoding",monochromeg4:"Monochrome - G4 fax encoding",monochromelzw:"Monochrome - LZW-compatible compression",monochromepackbits:"Monochrome - PackBits compression"}},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},FillOrder:{enum:["0","1"],type:"string",description:"The logical order of bits within a byte.",default:"0","x-enum-labels":{0:"MSB-to-LSB",1:"LSB-to-MSB"}},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},odcToTiffOptionsSchema=objectType({Password:stringType().optional(),TiffType:enumType(["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"]),MultiPage:booleanType(),FillOrder:enumType(["0","1"]),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),odcToWebpDefinition={id:"odc-to-webp",endpoint:"/convert/odc/to/webp",label:"ODC to WEBP",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},odcToWebpOptionsSchema=objectType({Password:stringType().optional(),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),odgToPdfDefinition={id:"odg-to-pdf",endpoint:"/convert/odg/to/pdf",label:"ODG to PDF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},CompressPDF:{type:"boolean",description:"It tries to produce smaller output files but requires Adobe Reader 6, released in 2003 or newer, to view created PDF files.",default:!1},Pdfa:{type:"boolean",description:"Create PDF/A-1b compliant document.",default:!1}}}},odgToPdfOptionsSchema=objectType({Password:stringType().optional(),CompressPDF:booleanType(),Pdfa:booleanType()}),odpToPdfDefinition={id:"odp-to-pdf",endpoint:"/convert/odp/to/pdf",label:"ODP to PDF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},CompressPDF:{type:"boolean",description:"It tries to produce smaller output files but requires Adobe Reader 6, released in 2003 or newer, to view created PDF files.",default:!1},Pdfa:{type:"boolean",description:"Create PDF/A-1b compliant document.",default:!1}}}},odpToPdfOptionsSchema=objectType({Password:stringType().optional(),CompressPDF:booleanType(),Pdfa:booleanType()}),odsToPdfDefinition={id:"ods-to-pdf",endpoint:"/convert/ods/to/pdf",label:"ODS to PDF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},CompressPDF:{type:"boolean",description:"It tries to produce smaller output files but requires Adobe Reader 6, released in 2003 or newer, to view created PDF files.",default:!1},Pdfa:{type:"boolean",description:"Create PDF/A-1b compliant document.",default:!1}}}},odsToPdfOptionsSchema=objectType({Password:stringType().optional(),CompressPDF:booleanType(),Pdfa:booleanType()}),odtToDocDefinition={id:"odt-to-doc",endpoint:"/convert/odt/to/doc",label:"ODT to DOC",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},UpdateReferences:{type:"boolean",description:"Update all reference fields in the document.",default:!1}}}},odtToDocOptionsSchema=objectType({Password:stringType().optional(),UpdateToc:booleanType(),UpdateReferences:booleanType()}),odtToDocxDefinition={id:"odt-to-docx",endpoint:"/convert/odt/to/docx",label:"ODT to DOCX",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},UpdateReferences:{type:"boolean",description:"Update all reference fields in the document.",default:!1}}}},odtToDocxOptionsSchema=objectType({Password:stringType().optional(),UpdateToc:booleanType(),UpdateReferences:booleanType()}),odtToPdfDefinition={id:"odt-to-pdf",endpoint:"/convert/odt/to/pdf",label:"ODT to PDF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},CompressPDF:{type:"boolean",description:"It tries to produce smaller output files but requires Adobe Reader 6, released in 2003 or newer, to view created PDF files.",default:!1},Pdfa:{type:"boolean",description:"Create PDF/A-1b compliant document.",default:!1}}}},odtToPdfOptionsSchema=objectType({Password:stringType().optional(),CompressPDF:booleanType(),Pdfa:booleanType()}),odtToRtfDefinition={id:"odt-to-rtf",endpoint:"/convert/odt/to/rtf",label:"ODT to RTF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},UpdateReferences:{type:"boolean",description:"Update all reference fields in the document.",default:!1}}}},odtToRtfOptionsSchema=objectType({Password:stringType().optional(),UpdateToc:booleanType(),UpdateReferences:booleanType()}),odtToTxtDefinition={id:"odt-to-txt",endpoint:"/convert/odt/to/txt",label:"ODT to TXT",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},Substitutions:{type:"boolean",description:"Replace similar symbols with their counterparts in a text file, such as a copyright symbol with (c).",default:!1},LineBreaks:{type:"boolean",description:"Inserts line breaks at the end of each line of text.",default:!0},EndLineChar:{enum:["crlf","cr","lfcr","lf"],type:"string",description:"Set end of line character, which will be used to break lines.",default:"crlf","x-enum-labels":{crlf:"CR+LF (Windows)",cr:"CR (Windows)",lfcr:"LFCR (Mac OS)",lf:"LF (Mac OS)"}},SaveFormat:{enum:["wintext","wintextlb","dostext","dostextlb","unicodetext"],type:"string",description:"Specifies the format to use when saving a document.",default:"unicodetext","x-enum-labels":{wintext:"Windows Text",wintextlb:"Windows Text with line breaks preserved",dostext:"DOS text",dostextlb:"DOS text with line breaks preserved",unicodetext:"Unicode text format"}}}}},odtToTxtOptionsSchema=objectType({Password:stringType().optional(),Substitutions:booleanType(),LineBreaks:booleanType(),EndLineChar:enumType(["crlf","cr","lfcr","lf"]),SaveFormat:enumType(["wintext","wintextlb","dostext","dostextlb","unicodetext"])}),odtToXmlDefinition={id:"odt-to-xml",endpoint:"/convert/odt/to/xml",label:"ODT to XML",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},UpdateReferences:{type:"boolean",description:"Update all reference fields in the document.",default:!1},XmlType:{enum:["word2003","flatWordXml","strictOpenXml"],type:"string",description:"Specifies the type of XML to use when saving a Word document.",default:"word2003","x-enum-labels":{word2003:"Word 2003 (legacy)",flatWordXml:"Word Flat OPC XML",strictOpenXml:"Strict Open XML Document"}}}}},odtToXmlOptionsSchema=objectType({Password:stringType().optional(),UpdateToc:booleanType(),UpdateReferences:booleanType(),XmlType:enumType(["word2003","flatWordXml","strictOpenXml"])}),odtToXpsDefinition={id:"odt-to-xps",endpoint:"/convert/odt/to/xps",label:"ODT to XPS",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},UpdateReferences:{type:"boolean",description:"Update all reference fields in the document.",default:!1}}}},odtToXpsOptionsSchema=objectType({Password:stringType().optional(),UpdateToc:booleanType(),UpdateReferences:booleanType()}),pagesToDocxDefinition={id:"pages-to-docx",endpoint:"/convert/pages/to/docx",label:"PAGES to DOCX",inputJsonSchema:{required:[],type:"object",properties:{}}},pagesToDocxOptionsSchema=objectType({}),pagesToEpubDefinition={id:"pages-to-epub",endpoint:"/convert/pages/to/epub",label:"PAGES to EPUB",inputJsonSchema:{required:[],type:"object",properties:{}}},pagesToEpubOptionsSchema=objectType({}),pagesToJpgDefinition={id:"pages-to-jpg",endpoint:"/convert/pages/to/jpg",label:"PAGES to JPG",inputJsonSchema:{required:[],type:"object",properties:{ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",
1srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},pagesToJpgOptionsSchema=objectType({ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),pagesToPdfDefinition={id:"pages-to-pdf",endpoint:"/convert/pages/to/pdf",label:"PAGES to PDF",inputJsonSchema:{required:[],type:"object",properties:{}}},pagesToPdfOptionsSchema=objectType({}),pagesToPngDefinition={id:"pages-to-png",endpoint:"/convert/pages/to/png",label:"PAGES to PNG",inputJsonSchema:{required:[],type:"object",properties:{}}},pagesToPngOptionsSchema=objectType({}),pagesToTxtDefinition={id:"pages-to-txt",endpoint:"/convert/pages/to/txt",label:"PAGES to TXT",inputJsonSchema:{required:[],type:"object",properties:{}}},pagesToTxtOptionsSchema=objectType({}),pdfToCsvDefinition={id:"pdf-to-csv",endpoint:"/convert/pdf/to/csv",label:"PDF to CSV",inputJsonSchema:{required:["Delimiter"],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},EnableOcr:{enum:["Scanned","All","None"],type:"string",description:"Enable text recognition (OCR) for your PDF: choose 'All' to process every page, or 'Scanned' to only process image-based pages in mixed documents.",default:"Scanned"},OcrLanguage:{enum:["ca","da","nl","en","fa","de","he","lt","pl","pt","ru","es","sv","tr","ua"],type:"string",description:"Define the language used for text recognition (OCR).",default:"en","x-enum-labels":{ar:"Arabic",auto:"Auto",ca:"Catalan",da:"Danish",de:"German",en:"English",es:"Spanish",fa:"French",fi:"Finnish",fr:"French",gr:"Greek",he:"Hebrew",it:"Italian",ja:"Japanese",ko:"Korean",lt:"Lithuanian",nl:"Dutch",no:"Norwegian",pl:"Polish",pt:"Portuguese",ro:"Romanian",ru:"Russian",sl:"Slovenian",sv:"Swedish",th:"Thai",tr:"Turkish",ua:"Ukrainian",zh:"Chinese"}},Delimiter:{type:"string",description:"Set fields separator.",default:","}}}},pdfToCsvOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),EnableOcr:enumType(["Scanned","All","None"]),OcrLanguage:enumType(["ca","da","nl","en","fa","de","he","lt","pl","pt","ru","es","sv","tr","ua"]),Delimiter:stringType()}),pdfToDocxDefinition={id:"pdf-to-docx",endpoint:"/convert/pdf/to/docx",label:"PDF to DOCX",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},Wysiwyg:{type:"boolean",description:"Persist exact formatting using text boxes.",default:!1},OcrMode:{enum:["auto","force","never"],type:"string",description:"Decide when to apply OCR: 'Auto' detects if it's needed, 'Force' always applies it, and 'Never' skips it entirely.",default:"auto","x-enum-labels":{auto:"Auto",force:"Force",never:"Never"}},OcrLanguage:{enum:["auto","ar","ca","zh","da","nl","en","fi","fr","de","gr","ko","it","ja","no","pl","pt","ro","ru","sl","es","sv","tr","ua","th"],type:"string",description:"Define the language used for text recognition (OCR).",default:"auto","x-enum-labels":{ar:"Arabic",auto:"Auto",ca:"Catalan",da:"Danish",de:"German",en:"English",es:"Spanish",fa:"French",fi:"Finnish",fr:"French",gr:"Greek",he:"Hebrew",it:"Italian",ja:"Japanese",ko:"Korean",lt:"Lithuanian",nl:"Dutch",no:"Norwegian",pl:"Polish",pt:"Portuguese",ro:"Romanian",ru:"Russian",sl:"Slovenian",sv:"Swedish",th:"Thai",tr:"Turkish",ua:"Ukrainian",zh:"Chinese"}},OcrEngine:{enum:["native","tesseract"],type:"string",description:"Choose how we recognize text in your PDF: use 'Native' for faster results on digital PDFs, or 'Tesseract' for better accuracy with scanned or image-based PDFs.",default:"native","x-enum-labels":{tesseract:"Tesseract",native:"Native"}}}}},pdfToDocxOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),Wysiwyg:booleanType(),OcrMode:enumType(["auto","force","never"]),OcrLanguage:enumType(["auto","ar","ca","zh","da","nl","en","fi","fr","de","gr","ko","it","ja","no","pl","pt","ro","ru","sl","es","sv","tr","ua","th"]),OcrEngine:enumType(["native","tesseract"])}),pdfToHtmlDefinition={id:"pdf-to-html",endpoint:"/convert/pdf/to/html",label:"PDF to HTML",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},Wysiwyg:{type:"boolean",description:"Persist exact formatting using text boxes.",default:!0}
1,OcrMode:{enum:["auto","force","never"],type:"string",description:"Decide when to apply OCR: 'Auto' detects if it's needed, 'Force' always applies it, and 'Never' skips it entirely.",default:"auto","x-enum-labels":{auto:"Auto",force:"Force",never:"Never"}},OcrLanguage:{enum:["auto","ar","ca","zh","da","nl","en","fi","fr","de","gr","ko","it","ja","no","pl","pt","ro","ru","sl","es","sv","tr","ua","th"],type:"string",description:"Define the language used for text recognition (OCR).",default:"auto","x-enum-labels":{ar:"Arabic",auto:"Auto",ca:"Catalan",da:"Danish",de:"German",en:"English",es:"Spanish",fa:"French",fi:"Finnish",fr:"French",gr:"Greek",he:"Hebrew",it:"Italian",ja:"Japanese",ko:"Korean",lt:"Lithuanian",nl:"Dutch",no:"Norwegian",pl:"Polish",pt:"Portuguese",ro:"Romanian",ru:"Russian",sl:"Slovenian",sv:"Swedish",th:"Thai",tr:"Turkish",ua:"Ukrainian",zh:"Chinese"}},OcrEngine:{enum:["native","tesseract"],type:"string",description:"Choose how we recognize text in your PDF: use 'Native' for faster results on digital PDFs, or 'Tesseract' for better accuracy with scanned or image-based PDFs.",default:"native","x-enum-labels":{tesseract:"Tesseract",native:"Native"}}}}},pdfToHtmlOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),Wysiwyg:booleanType(),OcrMode:enumType(["auto","force","never"]),OcrLanguage:enumType(["auto","ar","ca","zh","da","nl","en","fi","fr","de","gr","ko","it","ja","no","pl","pt","ro","ru","sl","es","sv","tr","ua","th"]),OcrEngine:enumType(["native","tesseract"])}),pdfToJpgDefinition={id:"pdf-to-jpg",endpoint:"/convert/pdf/to/jpg",label:"PDF to JPG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected PDF."},PageRange:{type:"string",description:"Set PDF page range to convert. Example 1-10 or 1,2,5.",default:"1-2000"},CropTo:{enum:["BoundingBox","TrimBox","MediaBox","ArtBox","BleedBox"],type:"string",description:"Choose which box to use for cropping your PDF pages â each defines a different area like content bounds, trim marks, or bleed space used in publishing.",default:"BoundingBox","x-enum-labels":{BoundingBox:"Bounding Box",TrimBox:"Trim Box",MediaBox:"Media Box",ArtBox:"Art Box",BleedBox:"Bleed Box"}},ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},ColorSpace:{enum:["rgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"rgb","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}}}}},pdfToJpgOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),CropTo:enumType(["BoundingBox","TrimBox","MediaBox","ArtBox","BleedBox"]),ImageResolution:numberType().int().gte(10).lte(800),ImageQuality:numberType().int().gte(10).lte(100),ColorSpace:enumType(["rgb","cmyk","gray"])}),pdfToPdfDefinition={id:"pdf-to-pdf",endpoint:"/convert/pdf/to/pdf",label:"PDF to PDF ",inputJsonSchema:{required:[],type:"object",properties:{EmbedFonts:{type:"boolean",description:"Embed fonts in PDF.",default:!0},PdfVersion:{enum:["1.2","1.3","1.4","1.5","1.6","1.7","1.8","2.0"],type:"string",description:"Specify the target PDF Version",default:"1.5","x-enum-labels":{"1.2":"Acrobat 3 (PDF 1.2)","1.3":"Acrobat 4 (PDF 1.3)","1.4":"Acrobat 5 (PDF 1.4)","1.5":"Acrobat 6 (PDF 1.5)","1.6":"Acrobat 7 (PDF 1.6)","1.7":"Acrobat 8 (PDF 1.7)","1.8":"Acrobat 9 (PDF 1.7, e-level 3)","2.0":"Acrobat DC (PDF 2.0)"}},PdfCreator:{type:"string",description:"Provide a value to customize the PDF creator. Otherwise, the default document creator will be used. Use single quotes and a space (' ') to remove the creator."},ColorSpace:{enum:["Default","RGB","CMYK","Gray"],type:"string",description:"Sets the color space of the output image.",default:"Default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",
1srgb:"sRGB",truecolors:"Truecolors"}}}}},pdfToPdfOptionsSchema=objectType({EmbedFonts:booleanType(),PdfVersion:enumType(["1.2","1.3","1.4","1.5","1.6","1.7","1.8","2.0"]),PdfCreator:stringType().optional(),ColorSpace:enumType(["Default","RGB","CMYK","Gray"])}),pdfToPdfaDefinition={id:"pdf-to-pdfa",endpoint:"/convert/pdf/to/pdfa",label:"PDF to PDF/A ",inputJsonSchema:{required:[],type:"object",properties:{PdfaVersion:{enum:["pdfa","pdfa2","pdfa2u","pdfa3","pdfa3u"],type:"string",description:"Specify the target PDF Version",default:"pdfa2","x-enum-labels":{pdfa:"PDF/A-1b",pdfa2:"PDF/A-2b",pdfa2u:"PDF/A-2u",pdfa3:"PDF/A-3b",pdfa3u:"PDF/A-3u"}},PdfaOutputIntent:{enum:["srgb","jc200103","fogra27","swop","gray"],type:"string",description:"xxx",default:"srgb","x-enum-labels":{srgb:"sRGB",jc200103:"Japan Color 2001 Coated",fogra27:"Europe ISO Coated",swop:"U.S. Web Coated",gray:"Gray Gamma 2.2"}}}}},pdfToPdfaOptionsSchema=objectType({PdfaVersion:enumType(["pdfa","pdfa2","pdfa2u","pdfa3","pdfa3u"]),PdfaOutputIntent:enumType(["srgb","jc200103","fogra27","swop","gray"])}),pdfToPngDefinition={id:"pdf-to-png",endpoint:"/convert/pdf/to/png",label:"PDF to PNG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected PDF."},PageRange:{type:"string",description:"Set PDF page range to convert. Example 1-10 or 1,2,5.",default:"1-2000"},CropTo:{enum:["BoundingBox","TrimBox","MediaBox","ArtBox","BleedBox"],type:"string",description:"Choose which box to use for cropping your PDF pages â each defines a different area like content bounds, trim marks, or bleed space used in publishing.",default:"BoundingBox","x-enum-labels":{BoundingBox:"Bounding Box",TrimBox:"Trim Box",MediaBox:"Media Box",ArtBox:"Art Box",BleedBox:"Bleed Box"}},ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200}
1,BackgroundColor:{type:"string",description:""}}}},pdfToPngOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),CropTo:enumType(["BoundingBox","TrimBox","MediaBox","ArtBox","BleedBox"]),ImageResolution:numberType().int().gte(10).lte(800),BackgroundColor:stringType().optional()}),pdfToPptxDefinition={id:"pdf-to-pptx",endpoint:"/convert/pdf/to/pptx",label:"PDF to PPTX",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},OcrMode:{enum:["auto","force","never"],type:"string",description:"Decide when to apply OCR: 'Auto' detects if it's needed, 'Force' always applies it, and 'Never' skips it entirely.",default:"auto","x-enum-labels":{auto:"Auto",force:"Force",never:"Never"}},OcrLanguage:{enum:["auto","ar","ca","zh","da","nl","en","fi","fr","de","gr","ko","it","ja","no","pl","pt","ro","ru","sl","es","sv","tr","ua","th"],type:"string",description:"Define the language used for text recognition (OCR).",default:"auto","x-enum-labels":{ar:"Arabic",auto:"Auto",ca:"Catalan",da:"Danish",de:"German",en:"English",es:"Spanish",fa:"French",fi:"Finnish",fr:"French",gr:"Greek",he:"Hebrew",it:"Italian",ja:"Japanese",ko:"Korean",lt:"Lithuanian",nl:"Dutch",no:"Norwegian",pl:"Polish",pt:"Portuguese",ro:"Romanian",ru:"Russian",sl:"Slovenian",sv:"Swedish",th:"Thai",tr:"Turkish",ua:"Ukrainian",zh:"Chinese"}},OcrEngine:{enum:["native","tesseract"],type:"string",description:"Choose how we recognize text in your PDF: use 'Native' for faster results on digital PDFs, or 'Tesseract' for better accuracy with scanned or image-based PDFs.",default:"native","x-enum-labels":{tesseract:"Tesseract",native:"Native"}}}}},pdfToPptxOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),OcrMode:enumType(["auto","force","never"]),OcrLanguage:enumType(["auto","ar","ca","zh","da","nl","en","fi","fr","de","gr","ko","it","ja","no","pl","pt","ro","ru","sl","es","sv","tr","ua","th"]),OcrEngine:enumType(["native","tesseract"])}),pdfToTiffDefinition={id:"pdf-to-tiff",endpoint:"/convert/pdf/to/tiff",label:"PDF to TIFF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},TiffType:{enum:["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"],type:"string",description:"Set TIFF type",default:"color24lzw","x-enum-labels":{color24nc:"24bits RGB, uncompressed",color32nc:"32bits CMYK, uncompressed",color24lzw:"24bits RGB, LZW-compatible compression",color32lzw:"32bits CMYK, LZW-compatible compression",color24zip:"24bits RGB, ZIP (Deflate) compression",color32zip:"32bits CMYK, ZIP (Deflate) compression",grayscale:"8bits Grayscale, uncompressed",grayscalelzw:"8bits Grayscale, LZW-compatible compression",grayscalezip:"8bits Grayscale, ZIP (Deflate) compression",monochromeg3:"Monochrome - G3 fax encoding with EOLs",monochromeg32d:"Monochrome - 2-D G3 fax encoding",monochromeg4:"Monochrome - G4 fax encoding",monochromelzw:"Monochrome - LZW-compatible compression",monochromepackbits:"Monochrome - PackBits compression"}},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},FillOrder:{enum:["0","1"],type:"string",description:"The logical order of bits within a byte.",default:"0","x-enum-labels":{0:"MSB-to-LSB",1:"LSB-to-MSB"}},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},pdfToTiffOptionsSchema=objectType({Password:stringType().optional(),TiffType:enumType(["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"]),MultiPage:booleanType(),FillOrder:enumType(["0","1"]),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}
1),pdfToTiffFaxDefinition={id:"pdf-to-tiff-fax",endpoint:"/convert/pdf/to/tiff-fax",label:"PDF to TIFF-FAX",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},ImageResolution:{enum:["204x98","204x196"],type:"string",description:"Specifies the image resolution",default:"204x98","x-enum-labels":{"204x98":"204x98 DPI","204x196":"204x196 DPI"}},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},DitheringMethod:{enum:["default","sierra","burkes","stucki","floyd","jarvis","cluster6","cluster8","cluster16","bayer4","bayer8"],type:"string",description:"Specifies the dithering algorithm",default:"default","x-enum-labels":{default:"Default",sierra:"Sierra",burkes:"Burkes",stucki:"Stucki",floyd:"Floyd",jarvis:"Jarvis",cluster6:"Cluster 6x6",cluster8:"Cluster 8x8",cluster16:"Cluster 16x16",bayer4:"Bayer 4x4",bayer8:"Bayer 8x8"}},Wts:{type:"boolean",description:"Use Well Tempered Screening algorithm for halftoning.",default:!1},TiffType:{enum:["monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"],type:"string",description:"Set TIFF type",default:"monochromeg4","x-enum-labels":{color24nc:"24bits RGB, uncompressed",color32nc:"32bits CMYK, uncompressed",color24lzw:"24bits RGB, LZW-compatible compression",color32lzw:"32bits CMYK, LZW-compatible compression",color24zip:"24bits RGB, ZIP (Deflate) compression",color32zip:"32bits CMYK, ZIP (Deflate) compression",grayscale:"8bits Grayscale, uncompressed",grayscalelzw:"8bits Grayscale, LZW-compatible compression",grayscalezip:"8bits Grayscale, ZIP (Deflate) compression",monochromeg3:"Monochrome - G3 fax encoding with EOLs",monochromeg32d:"Monochrome - 2-D G3 fax encoding",monochromeg4:"Monochrome - G4 fax encoding",monochromelzw:"Monochrome - LZW-compatible compression",monochromepackbits:"Monochrome - PackBits compression"}},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},FillOrder:{enum:["0","1"],type:"string",description:"The logical order of bits within a byte.",default:"0","x-enum-labels":{0:"MSB-to-LSB",1:"LSB-to-MSB"}}}}},pdfToTiffFaxOptionsSchema=objectType({Password:stringType().optional(),ImageResolution:enumType(["204x98","204x196"]),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"]),DitheringMethod:enumType(["default","sierra","burkes","stucki","floyd","jarvis","cluster6","cluster8","cluster16","bayer4","bayer8"]),Wts:booleanType(),TiffType:enumType(["monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"]),MultiPage:booleanType(),FillOrder:enumType(["0","1"])}),pdfToTxtDefinition={id:"pdf-to-txt",endpoint:"/convert/pdf/to/txt",label:"PDF to Text ",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},OcrMode:{enum:["auto","force","never"],type:"string",description:"Decide when to apply OCR: 'Auto' detects if it's needed, 'Force' always applies it, and 'Never' skips it entirely.",default:"auto","x-enum-labels":{auto:"Auto",force:"Force",never:"Never"}},OcrLanguage:{enum:["auto","ar","ca","zh","da","nl","en","fi","fr","de","gr","ko","it","ja","no","pl","pt","ro","ru","sl","es","sv","tr","ua","th"],type:"string",description:"Define the language used for text recognition (OCR).",default:"auto","x-enum-labels":{ar:"Arabic",auto:"Auto",ca:"Catalan",da:"Danish",de:"German",en:"English",es:"Spanish",fa:"French",fi:"Finnish",fr:"French",gr:"Greek",he:"Hebrew",it:"Italian",ja:"Japanese",ko:"Korean",lt:"Lithuanian",
1nl:"Dutch",no:"Norwegian",pl:"Polish",pt:"Portuguese",ro:"Romanian",ru:"Russian",sl:"Slovenian",sv:"Swedish",th:"Thai",tr:"Turkish",ua:"Ukrainian",zh:"Chinese"}},OcrEngine:{enum:["native","tesseract"],type:"string",description:"Choose how we recognize text in your PDF: use 'Native' for faster results on digital PDFs, or 'Tesseract' for better accuracy with scanned or image-based PDFs.",default:"native","x-enum-labels":{tesseract:"Tesseract",native:"Native"}},IncludeFormatting:{type:"boolean",description:"Persist formatting while extracting text. Only works when RemoveHeadersFooters and RemoveFootnotes properties are disabled.",default:!1},RemoveHeadersFooters:{type:"boolean",description:"Remove headers and footers from the document.",default:!1},RemoveFootnotes:{type:"boolean",description:"Remove footnotes from the document.",default:!1},RemoveTables:{type:"boolean",description:"Remove tables from the document.",default:!1}}}},pdfToTxtOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),OcrMode:enumType(["auto","force","never"]),OcrLanguage:enumType(["auto","ar","ca","zh","da","nl","en","fi","fr","de","gr","ko","it","ja","no","pl","pt","ro","ru","sl","es","sv","tr","ua","th"]),OcrEngine:enumType(["native","tesseract"]),IncludeFormatting:booleanType(),RemoveHeadersFooters:booleanType(),RemoveFootnotes:booleanType(),RemoveTables:booleanType()}),pdfToWebpDefinition={id:"pdf-to-webp",endpoint:"/convert/pdf/to/webp",label:"PDF to WEBP",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ImageAntialiasing:{maximum:8,minimum:0,type:"integer",description:"Control the use of text and graphics subsample antialiasing. The subsampling box size should be 8 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:8},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},pdfToWebpOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ImageResolution:numberType().int().gte(10).lte(800),ImageAntialiasing:numberType().int().gte(0).lte(8),ImageQuality:numberType().int().gte(10).lte(100)}),pdfToXlsxDefinition={id:"pdf-to-xlsx",endpoint:"/convert/pdf/to/xlsx",label:"PDF to XLSX",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},OcrMode:{enum:["auto","force","never"],type:"string",description:"Decide when to apply OCR: 'Auto' detects if it's needed, 'Force' always applies it, and 'Never' skips it entirely.",default:"auto","x-enum-labels":{auto:"Auto",force:"Force",never:"Never"}},OcrLanguage:{enum:["auto","ar","ca","zh","da","nl","en","fi","fr","de","gr","ko","it","ja","no","pl","pt","ro","ru","sl","es","sv","tr","ua","th"],type:"string",description:"Define the language used for text recognition (OCR).",default:"auto","x-enum-labels":{ar:"Arabic",auto:"Auto",ca:"Catalan",da:"Danish",de:"German",en:"English",es:"Spanish",fa:"French",fi:"Finnish",fr:"French",gr:"Greek",he:"Hebrew",it:"Italian",ja:"Japanese",ko:"Korean",lt:"Lithuanian",nl:"Dutch",no:"Norwegian",pl:"Polish",pt:"Portuguese",ro:"Romanian",ru:"Russian",sl:"Slovenian",sv:"Swedish",th:"Thai",tr:"Turkish",ua:"Ukrainian",zh:"Chinese"}},OcrEngine:{enum:["native","tesseract"],type:"string",description:"Choose how we recognize text in your PDF: use 'Native' for faster results on digital PDFs, or 'Tesseract' for better accuracy with scanned or image-based PDFs.",default:"native","x-enum-labels":{tesseract:"Tesseract",native:"Native"}},IncludeFormatting:{type:"boolean",description:"Include non-table content in an excel file, like images and paragraphs.",default:!1},SingleSheet:{type:"boolean",description:"Combine extracted tables into a single sheet.",default:!1}}}},pdfToXlsxOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),OcrMode:enumType(["auto","force","never"]),OcrLanguage:enumType(["auto","ar","ca","zh","da","nl","en","fi","fr","de","gr","ko","it","ja","no","pl","pt","ro","ru","sl","es","sv","tr","ua","th"]),OcrEngine:enumType(["native","tesseract"]),IncludeFormatting:booleanType(),SingleSheet:booleanType()}),pngToGifDefinition={id:"png-to-gif",endpoint:"/convert/png/to/gif",label:"PNG to GIF",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},PersistAnimation:{type:"boolean",description:"Read animation values AnimationIterations and AnimationDelay from GIF file. Only works if GIF file is added to file list.",default:!0},AnimationDelay:{maximum:2e4,minimum:0,type:"integer",description:"Animation delay in milliseconds before playing the next image in an animated sequence.",default:100},AnimationIterations:{maximum:1e3,minimum:0,type:"integer",description:"Set the number of iterations to loop an animation. Zero is infinity.",default:0}}}},pngToGifOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),PersistAnimation:booleanType(),AnimationDelay:numberType().int().gte(0).lte(2e4),AnimationIterations:numberType().int().gte(0).lte(1e3)}),pngToJpgDefinition={id:"png-to-jpg",endpoint:"/convert/png/to/jpg",label:"PNG to JPG",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",
1srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},pngToJpgOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),pngToPdfDefinition={id:"png-to-pdf",endpoint:"/convert/png/to/pdf",label:"PNG to PDF",inputJsonSchema:{required:[],type:"object",properties:{ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}},PageSize:{enum:["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","letter","legal"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},Pdfa:{type:"boolean",description:"Create PDF/A-1b compliant document.",default:!1}}}},pngToPdfOptionsSchema=objectType({ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),PageSize:enumType(["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","letter","legal"]),PageOrientation:enumType(["default","portrait","landscape"]),Pdfa:booleanType()}),pngToPnmDefinition={id:"png-to-pnm",endpoint:"/convert/png/to/pnm",label:"PNG to PNM",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200}}}},pngToPnmOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800)}),pngToTiffDefinition={id:"png-to-tiff",endpoint:"/convert/png/to/tiff",label:"PNG to TIFF",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},pngToTiffOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),MultiPage:booleanType(),ImageQuality:numberType().int().gte(10).lte(100)}),pngToWebpDefinition={id:"png-to-webp",endpoint:"/convert/png/to/webp",label:"PNG to WEBP",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},pngToWebpOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),potxToJpgDefinition={id:"potx-to-jpg",endpoint:"/convert/potx/to/jpg",label:"POTX to JPG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},ConvertHiddenSlides:{type:"boolean",description:"Include hidden slides while converting.",default:!1},ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},potxToJpgOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertHiddenSlides:booleanType(),ImageResolution:numberType().int().gte(10).lte(800),ImageQuality:numberType().int().gte(10).lte(100)}),potxToPdfDefinition={id:"potx-to-pdf",endpoint:"/convert/potx/to/pdf",label:"POTX to PDF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},ConvertHiddenSlides:{type:"boolean",description:"Include hidden slides while converting.",default:!1},ConvertMetadata:{type:"boolean",description:"Convert document metadata like Title, Author, Keywords to PDF metadata.",default:!0},ConvertSpeakerNotes:{enum:["Disabled","SeparatePage","PageComments"],type:"string",description:"Choose how speaker notes will be converted.\n * `Disabled` - Disabled\n * `SeparatePage` - Convert to Separate Page\n * `PageComments` - Convert to Page Comments",default:"Disabled"},EmbedFonts:{type:"boolean",description:"Embed fonts in PDF.",default:!0},CompressPDF:{type:"boolean",description:"It tries to produce smaller output files but requires Adobe Reader 6, released in 2003 or newer, to view created PDF files.",default:!1},Pdfa:{type:"boolean",description:"Create PDF/A-3b compliant document.",default:!1}}}},potxToPdfOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertHiddenSlides:booleanType(),ConvertMetadata:booleanType(),ConvertSpeakerNotes:enumType(["Disabled","SeparatePage","PageComments"]),EmbedFonts:booleanType(),CompressPDF:booleanType(),Pdfa:booleanType()}),potxToPngDefinition={id:"potx-to-png",endpoint:"/convert/potx/to/png",label:"POTX to PNG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},ConvertHiddenSlides:{type:"boolean",description:"Include hidden slides while converting.",default:!1},ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ImageAntialiasing:{maximum:8,minimum:0,type:"integer",description:"Control the use of text and graphics subsample antialiasing. The subsampling box size should be 8 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:8}}}},potxToPngOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertHiddenSlides:booleanType(),ImageResolution:numberType().int().gte(10).lte(800),ImageAntialiasing:numberType().int().gte(0).lte(8)}),potxToPptxDefinition={id:"potx-to-pptx",endpoint:"/convert/potx/to/pptx",label:"POTX to PPTX",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."}}}},potxToPptxOptionsSchema=objectType({Password:stringType().optional()}),potxToTiffDefinition={id:"potx-to-tiff",endpoint:"/convert/potx/to/tiff",label:"POTX to TIFF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},ConvertHiddenSlides:{type:"boolean",description:"Include hidden slides while converting.",default:!1},TiffType:{enum:["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"],type:"string",description:"Set TIFF type",default:"color24lzw","x-enum-labels":{color24nc:"24bits RGB, uncompressed",color32nc:"32bits CMYK, uncompressed",color24lzw:"24bits RGB, LZW-compatible compression",color32lzw:"32bits CMYK, LZW-compatible compression",color24zip:"24bits RGB, ZIP (Deflate) compression",color32zip:"32bits CMYK, ZIP (Deflate) compression",grayscale:"8bits Grayscale, uncompressed",grayscalelzw:"8bits Grayscale, LZW-compatible compression",grayscalezip:"8bits Grayscale, ZIP (Deflate) compression",monochromeg3:"Monochrome - G3 fax encoding with EOLs",monochromeg32d:"Monochrome - 2-D G3 fax encoding",monochromeg4:"Monochrome - G4 fax encoding",monochromelzw:"Monochrome - LZW-compatible compression",monochromepackbits:"Monochrome - PackBits compression"}},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},FillOrder:{enum:["0","1"],type:"string",description:"The logical order of bits within a byte.",default:"0","x-enum-labels":{0:"MSB-to-LSB",1:"LSB-to-MSB"}},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},potxToTiffOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertHiddenSlides:booleanType(),TiffType:enumType(["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"]),MultiPage:booleanType(),FillOrder:enumType(["0","1"]),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),potxToWebpDefinition={id:"potx-to-webp",endpoint:"/convert/potx/to/webp",label:"POTX to WEBP",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},ConvertHiddenSlides:{type:"boolean",description:"Include hidden slides while converting.",default:!1},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},potxToWebpOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertHiddenSlides:booleanType(),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),ppsxToJpgDefinition={id:"ppsx-to-jpg",endpoint:"/convert/ppsx/to/jpg",label:"PPSX to JPG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},ConvertHiddenSlides:{type:"boolean",description:"Include hidden slides while converting.",default:!1},ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},ppsxToJpgOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertHiddenSlides:booleanType(),ImageResolution:numberType().int().gte(10).lte(800),ImageQuality:numberType().int().gte(10).lte(100)}),ppsxToPdfDefinition={id:"ppsx-to-pdf",endpoint:"/convert/ppsx/to/pdf",label:"PPSX to PDF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},ConvertHiddenSlides:{type:"boolean",description:"Include hidden slides while converting.",default:!1},ConvertMetadata:{type:"boolean",description:"Convert document metadata like Title, Author, Keywords to PDF metadata.",default:!0},ConvertSpeakerNotes:{enum:["Disabled","SeparatePage","PageComments"],type:"string",description:"Choose how speaker notes will be converted.\n * `Disabled` - Disabled\n * `SeparatePage` - Convert to Separate Page\n * `PageComments` - Convert to Page Comments",default:"Disabled"},EmbedFonts:{type:"boolean",description:"Embed fonts in PDF.",default:!0},CompressPDF:{type:"boolean",description:"It tries to produce smaller output files but requires Adobe Reader 6, released in 2003 or newer, to view created PDF files.",default:!1},Pdfa:{type:"boolean",description:"Create PDF/A-3b compliant document.",default:!1}}}},ppsxToPdfOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertHiddenSlides:booleanType(),ConvertMetadata:booleanType(),ConvertSpeakerNotes:enumType(["Disabled","SeparatePage","PageComments"]),EmbedFonts:booleanType(),CompressPDF:booleanType(),Pdfa:booleanType()}),ppsxToPngDefinition={id:"ppsx-to-png",endpoint:"/convert/ppsx/to/png",label:"PPSX to PNG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},ConvertHiddenSlides:{type:"boolean",description:"Include hidden slides while converting.",default:!1},ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ImageAntialiasing:{maximum:8,minimum:0,type:"integer",description:"Control the use of text and graphics subsample antialiasing. The subsampling box size should be 8 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:8}}}},ppsxToPngOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertHiddenSlides:booleanType(),ImageResolution:numberType().int().gte(10).lte(800),ImageAntialiasing:numberType().int().gte(0).lte(8)}),ppsxToPptxDefinition={id:"ppsx-to-pptx",endpoint:"/convert/ppsx/to/pptx",label:"PPSX to PPTX",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."}}}},ppsxToPptxOptionsSchema=objectType({Password:stringType().optional()}),ppsxToTiffDefinition={id:"ppsx-to-tiff",endpoint:"/convert/ppsx/to/tiff",label:"PPSX to TIFF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},ConvertHiddenSlides:{type:"boolean",description:"Include hidden slides while converting.",default:!1},TiffType:{enum:["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"],type:"string",description:"Set TIFF type",default:"color24lzw","x-enum-labels":{color24nc:"24bits RGB, uncompressed",color32nc:"32bits CMYK, uncompressed",color24lzw:"24bits RGB, LZW-compatible compression",color32lzw:"32bits CMYK, LZW-compatible compression",color24zip:"24bits RGB, ZIP (Deflate) compression",color32zip:"32bits CMYK, ZIP (Deflate) compress
1ion",grayscale:"8bits Grayscale, uncompressed",grayscalelzw:"8bits Grayscale, LZW-compatible compression",grayscalezip:"8bits Grayscale, ZIP (Deflate) compression",monochromeg3:"Monochrome - G3 fax encoding with EOLs",monochromeg32d:"Monochrome - 2-D G3 fax encoding",monochromeg4:"Monochrome - G4 fax encoding",monochromelzw:"Monochrome - LZW-compatible compression",monochromepackbits:"Monochrome - PackBits compression"}},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},FillOrder:{enum:["0","1"],type:"string",description:"The logical order of bits within a byte.",default:"0","x-enum-labels":{0:"MSB-to-LSB",1:"LSB-to-MSB"}},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},ppsxToTiffOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertHiddenSlides:booleanType(),TiffType:enumType(["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"]),MultiPage:booleanType(),FillOrder:enumType(["0","1"]),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),ppsxToWebpDefinition={id:"ppsx-to-webp",endpoint:"/convert/ppsx/to/webp",label:"PPSX to WEBP",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},ConvertHiddenSlides:{type:"boolean",description:"Include hidden slides while converting.",default:!1},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},ppsxToWebpOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertHiddenSlides:booleanType(),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),pptToJpgDefinition={id:"ppt-to-jpg",endpoint:"/convert/ppt/to/jpg",label:"PPT to JPG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},ConvertHiddenSlides:{type:"boolean",description:"Include hidden slides while converting.",default:!1},ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},pptToJpgOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertHiddenSlides:booleanType(),ImageResolution:numberType().int().gte(10).lte(800),ImageQuality:numberType().int().gte(10).lte(100)}),pptToPdfDefinition={id:"ppt-to-pdf",endpoint:"/convert/ppt/to/pdf",label:"PPT to PDF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},ConvertHiddenSlides:{type:"boolean",description:"Include hidden slides while converting.",default:!1},ConvertMetadata:{type:"boolean",description:"Convert document metadata like Title, Author, Keywords to PDF metadata.",default:!0},ConvertSpeakerNotes:{enum:["Disabled","SeparatePage","PageComments"],type:"string",description:"Choose how speaker notes will be converted.\n * `Disabled` - Disabled\n * `SeparatePage` - Convert to Separate Page\n * `PageComments` - Convert to Page Comments",default:"Disabled"},EmbedFonts:{type:"boolean",description:"Embed fonts in PDF.",default:!0},CompressPDF:{type:"boolean",description:"It tries to produce smaller output files but requires Adobe Reader 6, released in 2003 or newer, to view created PDF files.",default:!1},Pdfa:{type:"boolean",description:"Create PDF/A-3b compliant document.",default:!1}}}},pptToPdfOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertHiddenSlides:booleanType(),ConvertMetadata:booleanType(),ConvertSpeakerNotes:enumType(["Disabled","SeparatePage","PageComments"]),EmbedFonts:booleanType(),CompressPDF:booleanType(),Pdfa:booleanType()}),pptToPngDefinition={id:"ppt-to-png",endpoint:"/convert/ppt/to/png",label:"PPT to PNG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},ConvertHiddenSlides:{type:"boolean",description:"Include hidden slides while converting.",default:!1},ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ImageAntialiasing:{maximum:8,minimum:0,type:"integer",description:"Control the use of text and graphics subsample antialiasing. The subsampling box size should be 8 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:8}}}},pptToPngOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertHiddenSlides:booleanType(),ImageResolution:numberType().int().gte(10).lte(800),ImageAntialiasing:numberType().int().gte(0).lte(8)}),pptToPptxDefinition={id:"ppt-to-pptx",endpoint:"/convert/ppt/to/pptx",label:"PPT to PPTX",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."}}}},pptToPptxOptionsSchema=objectType({Password:stringType().optional()}),pptToTiffDefinition={id:"ppt-to-tiff",endpoint:"/convert/ppt/to/tiff",label:"PPT to TIFF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},ConvertHiddenSlides:{type:"boolean",description:"Include hidden slides while converting.",default:!1},TiffType:{enum:["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"],type:"string",description:"Set TIFF type",default:"color24lzw","x-enum-labels":{color24nc:"24bits RGB, uncompressed",color32nc:"32bits CMYK, uncompressed",color24lzw:"24bits RGB, LZW-compatible compression",color32lzw:"32bits CMYK, LZW-compatible compression",color24zip:"24bits RGB, ZIP (Deflate) compression",color32zip:"32bits CMYK, ZIP (Deflate) compression",grayscale:"8bits Grayscale, uncompressed",grayscalelzw:"8bits Grayscale, LZW-compatible compression",grayscalezip:"8bits Grayscale, ZIP (Deflate) compression",monochromeg3:"Monochrome - G3 fax encoding with EOLs",monochromeg32d:"Monochrome - 2-D G3 fax encoding",monochromeg4:"Monochrome - G4 fax encoding",monochromelzw:"Monochrome - LZW-compatible compression",monochromepackbits:"Monochrome - PackBits compression"}},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},FillOrder:{enum:["0","1"],type:"string",description:"The logical order of bits within a byte.",default:"0","x-enum-labels":{0:"MSB-to-LSB",1:"LSB-to-MSB"}},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},pptToTiffOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertHiddenSlides:booleanType(),TiffType:enumType(["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"]),MultiPage:booleanType(),FillOrder:enumType(["0","1"]),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),pptToWebpDefinition={id:"ppt-to-webp",endpoint:"/convert/ppt/to/webp",label:"PPT to WEBP",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},ConvertHiddenSlides:{type:"boolean",description:"Include hidden slides while converting.",default:!1},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},pptToWebpOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertHiddenSlides:booleanType(),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),pptxToJpgDefinition={id:"pptx-to-jpg",endpoint:"/convert/pptx/to/jpg",label:"PPTX to JPG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},ConvertHiddenSlides:{type:"boolean",description:"Include hidden slides while converting.",default:!1},ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},pptxToJpgOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertHiddenSlides:booleanType(),ImageResolution:numberType().int().gte(10).lte(800),ImageQuality:numberType().int().gte(10).lte(100)}),pptxToKeyDefinition={id:"pptx-to-key",endpoint:"/convert/pptx/to/key",label:"PPTX to KEY",inputJsonSchema:{required:[],type:"object",properties:{}}},pptxToKeyOptionsSchema=objectType({}),pptxToPdfDefinition={id:"pptx-to-pdf",endpoint:"/convert/pptx/to/pdf",label:"PPTX to PDF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},ConvertHiddenSlides:{type:"boolean",description:"Include hidden slides while converting.",default:!1},ConvertMetadata:{type:"boolean",description:"Convert document metadata like Title, Author, Keywords to PDF metadata.",default:!0},ConvertSpeakerNotes:{enum:["Disabled","SeparatePage","PageComments"],type:"string",description:"Choose how speaker notes will be converted.\n * `Disabled` - Disabled\n * `SeparatePage` - Convert to Separate Page\n * `PageComments` - Convert to Page Comments",default:"Disabled"},EmbedFonts:{type:"boolean",description:"Embed fonts in PDF.",default:!0},CompressPDF:{type:"boolean",description:"It tries to produce smaller output files but requires Adobe Reader 6, released in 2003 or newer, to view created PDF files.",default:!1},Pdfa:{type:"boolean",description:"Create PDF/A-3b compliant document.",default:!1}}}},pptxToPdfOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertHiddenSlides:booleanType(),ConvertMetadata:booleanType(),ConvertSpeakerNotes:enumType(["Disabled","SeparatePage","PageComments"]),EmbedFonts:booleanType(),CompressPDF:booleanType(),Pdfa:booleanType()}),pptxToPngDefinition={id:"pptx-to-png",endpoint:"/convert/pptx/to/png",label:"PPTX to PNG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},ConvertHiddenSlides:{type:"boolean",description:"Include hidden slides while converting.",default:!1},ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ImageAntialiasing:{maximum:8,minimum:0,type:"integer",description:"Control the use of text and graphics subsample antialiasing. The subsampling box size should be 8 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:8}}}},pptxToPngOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertHiddenSlides:booleanType(),ImageResolution:numberType().int().gte(10).lte(800),ImageAntialiasing:numberType().int().gte(0).lte(8)}),pptxToPptxDefinition={id:"pptx-to-pptx",endpoint:"/convert/pptx/to/pptx",label:"PPTX to PPTX",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."}}}},pptxToPptxOptionsSchema=objectType({Password:stringType().optional()}),pptxToTiffDefinition={id:"pptx-to-tiff",endpoint:"/convert/pptx/to/tiff",label:"PPTX to TIFF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},ConvertHiddenSlides:{type:"boolean",description:"Include hidden slides while converting.",default:!1},TiffType:{enum:["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"],type:"string",description:"Set TIFF type",default:"color24lzw","x-enum-labels":{color24nc:"24bits RGB, uncompressed",color32nc:"32bits CMYK, uncompressed",color24lzw:"24bits RGB, LZW-compatible compression",color32lzw:"32bits CMYK, LZW-compatible compression",color24zip:"24bits RGB, ZIP (Deflate) compression",color32zip:"32bits CMYK, ZIP (Deflate) compression",grayscale:"8bits Grayscale, uncompressed",grayscalelzw:"8bits Grayscale, LZW-compatible compression",grayscalezip:"8bits Grayscale, ZIP (Deflate) compression",monochromeg3:"Monochrome - G3 fax encodin
1g with EOLs",monochromeg32d:"Monochrome - 2-D G3 fax encoding",monochromeg4:"Monochrome - G4 fax encoding",monochromelzw:"Monochrome - LZW-compatible compression",monochromepackbits:"Monochrome - PackBits compression"}},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},FillOrder:{enum:["0","1"],type:"string",description:"The logical order of bits within a byte.",default:"0","x-enum-labels":{0:"MSB-to-LSB",1:"LSB-to-MSB"}},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},pptxToTiffOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertHiddenSlides:booleanType(),TiffType:enumType(["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"]),MultiPage:booleanType(),FillOrder:enumType(["0","1"]),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),pptxToWebpDefinition={id:"pptx-to-webp",endpoint:"/convert/pptx/to/webp",label:"PPTX to WEBP",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10 or 1,2,5.",default:"1-2000"},ConvertHiddenSlides:{type:"boolean",description:"Include hidden slides while converting.",default:!1},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},pptxToWebpOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertHiddenSlides:booleanType(),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),psdToJpgDefinition={id:"psd-to-jpg",endpoint:"/convert/psd/to/jpg",label:"PSD to JPG",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},psdToJpgOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),psdToPngDefinition={id:"psd-to-png",endpoint:"/convert/psd/to/png",label:"PSD to PNG",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200}}}},psdToPngOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800)}),psdToPnmDefinition={id:"psd-to-pnm",endpoint:"/convert/psd/to/pnm",label:"PSD to PNM",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200}}}},psdToPnmOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800)}),psdToTiffDefinition={id:"psd-to-tiff",endpoint:"/convert/psd/to/tiff",label:"PSD to TIFF",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},psdToTiffOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),MultiPage:booleanType(),ImageQuality:numberType().int().gte(10).lte(100)}),psdToWebpDefinition={id:"psd-to-webp",endpoint:"/convert/psd/to/webp",label:"PSD to WEBP",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",
1srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},psdToWebpOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),pubToJpgDefinition={id:"pub-to-jpg",endpoint:"/convert/pub/to/jpg",label:"PUB to JPG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},pubToJpgOptionsSchema=objectType({Password:stringType().optional(),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),pubToPdfDefinition={id:"pub-to-pdf",endpoint:"/convert/pub/to/pdf",label:"PUB to PDF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},ConvertMetadata:{type:"boolean",description:"Convert document metadata like Title, Author, Keywords to PDF metadata.",default:!0},PdfVersion:{enum:["1.2","1.3","1.4","1.5","1.6","1.7","1.8","2.0"],type:"string",description:"Specify the target PDF Version",default:"1.5","x-enum-labels":{"1.2":"Acrobat 3 (PDF 1.2)","1.3":"Acrobat 4 (PDF 1.3)","1.4":"Acrobat 5 (PDF 1.4)","1.5":"Acrobat 6 (PDF 1.5)","1.6":"Acrobat 7 (PDF 1.6)","1.7":"Acrobat 8 (PDF 1.7)","1.8":"Acrobat 9 (PDF 1.7, e-level 3)","2.0":"Acrobat DC (PDF 2.0)"}},PdfResolution:{maximum:2400,minimum:10,type:"integer",description:"Set PDF resolution.",default:300},EmbedFonts:{type:"boolean",description:"Embed fonts in PDF.",default:!0},ColorSpace:{enum:["Default","RGB","CMYK","Gray"],type:"string",description:"Sets the color space of the output image.",default:"Default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}}}}},pubToPdfOptionsSchema=objectType({Password:stringType().optional(),ConvertMetadata:booleanType(),PdfVersion:enumType(["1.2","1.3","1.4","1.5","1.6","1.7","1.8","2.0"]),PdfResolution:numberType().int().gte(10).lte(2400),EmbedFonts:booleanType(),ColorSpace:enumType(["Default","RGB","CMYK","Gray"])}),pubToPngDefinition={id:"pub-to-png",endpoint:"/convert/pub/to/png",label:"PUB to PNG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},pubToPngOptionsSchema=objectType({Password:stringType().optional(),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),pubToTiffDefinition={id:"pub-to-tiff",endpoint:"/convert/pub/to/tiff",label:"PUB to TIFF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},TiffType:{enum:["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"],type:"string",description:"Set TIFF type",default:"color24lzw","x-enum-labels":{color24nc:"24bits RGB, uncompressed",color32nc:"32bits CMYK, uncompressed",color24lzw:"24bits RGB, LZW-compatible compression",color32lzw:"32bits CMYK, LZW-compatible compression",color24zip:"24bits RGB, ZIP (Deflate) compression",color32zip:"32bits CMYK, ZIP (Deflate) compression",grayscale:"8bits Grayscale, uncompressed",grayscalelzw:"8bits Grayscale, LZW-compatible compression",grayscalezip:"8bits Grayscale, ZIP (Deflate) compression",monochromeg3:"Monochrome - G3 fax encoding with EOLs",monochromeg32d:"Monochrome - 2-D G3 fax encoding",monochromeg4:"Monochrome - G4 fax encoding",monochromelzw:"Monochrome - LZW-compatible compression",monochromepackbits:"Monochrome - PackBits compression"}},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},FillOrder:{enum:["0","1"],type:"string",description:"The logical order of bits within a byte.",default:"0","x-enum-labels":{0:"MSB-to-LSB",1:"LSB-to-MSB"}},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},pubToTiffOptionsSchema=objectType({Password:stringType().optional(),TiffType:enumType(["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"]),MultiPage:booleanType(),FillOrder:enumType(["0","1"]),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),rtfToHtmlDefinition={id:"rtf-to-html",endpoint:"/convert/rtf/to/html",label:"RTF to HTML",inputJsonSchema:{required:[],type:"object",properties:{InlineImages:{type:"boolean",description:"Inline images to html.",default:!0}}}},rtfToHtmlOptionsSchema=objectType({InlineImages:booleanType()}),rtfToJpgDefinition={id:"rtf-to-jpg",endpoint:"/convert/rtf/to/jpg",label:"RTF to JPG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10.",default:"1-2000"},ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},rtfToJpgOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ImageResolution:numberType().int().gte(10).lte(800),ImageQuality:numberType().int().gte(10).lte(100)}),rtfToPdfDefinition={id:"rtf-to-pdf",endpoint:"/convert/rtf/to/pdf",label:"RTF to PDF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10.",default:"1-6000"},ConvertMarkups:{type:"boolean",description:"Convert document markups like revisions and comments.",default:!1},ConvertTags:{type:"boolean",description:"Convert document structure tags for accessibility.",default:!1},ConvertMetadata:{type:"boolean",description:"Convert document metadata like Title, Author, Keywords to PDF metadata.",default:!0},ConvertHeadings:{type:"boolean",description:"Convert Word headings to PDF bookmarks.",default:!0},ConvertBookmarks:{type:"boolean",description:"Convert Word bookmarks to PDF bookmarks.",default:!1},UpdateToc:{type:"boolean",description:"Update all tables of content in the document.",default:!1},CompressPDF:{type:"boolean",description:"It tries to produce smaller output files but requires Adobe Reader 6, released in 2003 or newer, to view created PDF files.",default:!1},Pdfa:{type:"boolean",description:"Create PDF/A-3b compliant document.",default:!1}}}},rtfToPdfOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ConvertMarkups:booleanType(),ConvertTags:booleanType(),ConvertMetadata:booleanType(),ConvertHeadings:booleanType(),ConvertBookmarks:booleanType(),UpdateToc:booleanType(),CompressPDF:booleanType(),Pdfa:booleanType()}),rtfToPngDefinition={id:"rtf-to-png",endpoint:"/convert/rtf/to/png",label:"RTF to PNG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageRange:{type:"string",description:"Set page range. Example 1-10.",default:"1-2000"},ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ImageAntialiasing:{maximum:8,minimum:0,type:"integer",description:"Control the use of text and graphics subsample antialiasing. The subsampling box size should be 8 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:8}}}},rtfToPngOptionsSchema=objectType({Password:stringType().optional(),PageRange:stringType(),ImageResolution:numberType().int().gte(10).lte(800),ImageAntialiasing:numberType().int().gte(0).lte(8)}),rtfToTxtDefinition={id:"rtf-to-txt",endpoint:"/convert/rtf/to/txt",label:"RTF to TXT",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},Substitutions:{type:"boolean",description:"Replace similar symbols with their counterparts in a text file, such as a copyright symbol with (c).",default:!1},LineBreaks:{type:"boolean",description:"Inserts line breaks at the end of each line of text.",default:!0},EndLineChar:{enum:["crlf","cr","lfcr","lf"],type:"string",description:"Set end of line character, which will be used to break lines.",default:"crlf","x-enum-labels":{crlf:"CR+LF (Windows)",cr:"CR (Windows)",lfcr:"LFCR (Mac OS)",lf:"LF (Mac OS)"}},SaveFormat:{enum:["wintext","wintextlb","dostext","dostextlb","unicodetext"],type:"string",description:"Specifies the format to use when saving a document.",default:"unicodetext","x-enum-labels":{wintext:"Windows Text",wintextlb:"Windows Text with line breaks preserved",dostext:"DOS text",dostextlb:"DOS text with line breaks preserved",unicodetext:"Unicode text format"}}}}},rtfToTxtOptionsSchema=objectType({Password:stringType().optional(),Substitutions:booleanType(),LineBreaks:booleanType(),EndLineChar:enumType(["crlf","cr","lfcr","lf"]),SaveFormat:enumType(["wintext","wintextlb","dostext","dostextlb","unicodetext"])}),svgToJpgDefinition={id:"svg-to-jpg",endpoint:"/convert/svg/to/jpg",label:"SVG to JPG",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",
1srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},svgToJpgOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),svgToPngDefinition={id:"svg-to-png",endpoint:"/convert/svg/to/png",label:"SVG to PNG",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200}}}},svgToPngOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800)}),svgToPnmDefinition={id:"svg-to-pnm",endpoint:"/convert/svg/to/pnm",label:"SVG to PNM",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200}}}},svgToPnmOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800)}),svgToTiffDefinition={id:"svg-to-tiff",endpoint:"/convert/svg/to/tiff",label:"SVG to TIFF",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},svgToTiffOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),MultiPage:booleanType(),ImageQuality:numberType().int().gte(10).lte(100)}),svgToWebpDefinition={id:"svg-to-webp",endpoint:"/convert/svg/to/webp",label:"SVG to WEBP",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},svgToWebpOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),tiffToJpgDefinition={id:"tiff-to-jpg",endpoint:"/convert/tiff/to/jpg",label:"TIFF to JPG",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},tiffToJpgOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),tiffToPdfDefinition={id:"tiff-to-pdf",endpoint:"/convert/tiff/to/pdf",label:"TIFF to PDF ",inputJsonSchema:{required:[],type:"object",properties:{PageSize:{enum:["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","letter","legal"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},Pdfa:{type:"boolean",description:"Create PDF/A-1b compliant document.",default:!1},AlphaChannel:{type:"boolean",description:"Enable or disable the alpha channel if available.",default:!1},ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",
1srgb:"sRGB",truecolors:"Truecolors"}}}}},tiffToPdfOptionsSchema=objectType({PageSize:enumType(["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","letter","legal"]),PageOrientation:enumType(["default","portrait","landscape"]),Pdfa:booleanType(),AlphaChannel:booleanType(),ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"])}),tiffToPngDefinition={id:"tiff-to-png",endpoint:"/convert/tiff/to/png",label:"TIFF to PNG",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200}}}},tiffToPngOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800)}),tiffToPnmDefinition={id:"tiff-to-pnm",endpoint:"/convert/tiff/to/pnm",label:"TIFF to PNM",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200}}}},tiffToPnmOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800)}),tiffToWebpDefinition={id:"tiff-to-webp",endpoint:"/convert/tiff/to/webp",label:"TIFF to WEBP",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},tiffToWebpOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),vsdToJpgDefinition={id:"vsd-to-jpg",endpoint:"/convert/vsd/to/jpg",label:"VSD to JPG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},IncludeBackground:{type:"boolean",description:"Include background pages.",default:!0},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},vsdToJpgOptionsSchema=objectType({Password:stringType().optional(),IncludeBackground:booleanType(),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),vsdToPdfDefinition={id:"vsd-to-pdf",endpoint:"/convert/vsd/to/pdf",label:"VSD to PDF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},IncludeBackground:{type:"boolean",description:"Include background pages.",default:!0},ConvertMetadata:{type:"boolean",description:"Convert document metadata like Title, Author, Keywords to PDF metadata.",default:!0},PdfVersion:{enum:["1.2","1.3","1.4","1.5","1.6","1.7","1.8","2.0"],type:"string",description:"Specify the target PDF Version",default:"1.5","x-enum-labels":{"1.2":"Acrobat 3 (PDF 1.2)","1.3":"Acrobat 4 (PDF 1.3)","1.4":"Acrobat 5 (PDF 1.4)","1.5":"Acrobat 6 (PDF 1.5)","1.6":"Acrobat 7 (PDF 1.6)","1.7":"Acrobat 8 (PDF 1.7)","1.8":"Acrobat 9 (PDF 1.7, e-level 3)","2.0":"Acrobat DC (PDF 2.0)"}},PdfResolution:{maximum:2400,minimum:10,type:"integer",description:"Set PDF resolution.",default:300},EmbedFonts:{type:"boolean",description:"Embed fonts in PDF.",default:!0},ColorSpace:{enum:["Default","RGB","CMYK","Gray"],type:"string",description:"Sets the color space of the output image.",default:"Default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",
1srgb:"sRGB",truecolors:"Truecolors"}}}}},vsdToPdfOptionsSchema=objectType({Password:stringType().optional(),IncludeBackground:booleanType(),ConvertMetadata:booleanType(),PdfVersion:enumType(["1.2","1.3","1.4","1.5","1.6","1.7","1.8","2.0"]),PdfResolution:numberType().int().gte(10).lte(2400),EmbedFonts:booleanType(),ColorSpace:enumType(["Default","RGB","CMYK","Gray"])}),vsdToPngDefinition={id:"vsd-to-png",endpoint:"/convert/vsd/to/png",label:"VSD to PNG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},IncludeBackground:{type:"boolean",description:"Include background pages.",default:!0},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},vsdToPngOptionsSchema=objectType({Password:stringType().optional(),IncludeBackground:booleanType(),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),vsdToTiffDefinition={id:"vsd-to-tiff",endpoint:"/convert/vsd/to/tiff",label:"VSD to TIFF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},IncludeBackground:{type:"boolean",description:"Include background pages.",default:!0},TiffType:{enum:["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"],type:"string",description:"Set TIFF type",default:"color24lzw","x-enum-labels":{color24nc:"24bits RGB, uncompressed",color32nc:"32bits CMYK, uncompressed",color24lzw:"24bits RGB, LZW-compatible compression",color32lzw:"32bits CMYK, LZW-compatible compression",color24zip:"24bits RGB, ZIP (Deflate) compression",color32zip:"32bits CMYK, ZIP (Deflate) compression",grayscale:"8bits Grayscale, uncompressed",grayscalelzw:"8bits Grayscale, LZW-compatible compression",grayscalezip:"8bits Grayscale, ZIP (Deflate) compression",monochromeg3:"Monochrome - G3 fax encoding with EOLs",monochromeg32d:"Monochrome - 2-D G3 fax encoding",monochromeg4:"Monochrome - G4 fax encoding",monochromelzw:"Monochrome - LZW-compatible compression",monochromepackbits:"Monochrome - PackBits compression"}},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},FillOrder:{enum:["0","1"],type:"string",description:"The logical order of bits within a byte.",default:"0","x-enum-labels":{0:"MSB-to-LSB",1:"LSB-to-MSB"}},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},vsdToTiffOptionsSchema=objectType({Password:stringType().optional(),IncludeBackground:booleanType(),TiffType:enumType(["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"]),MultiPage:booleanType(),FillOrder:enumType(["0","1"]),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),vsdxToJpgDefinition={id:"vsdx-to-jpg",endpoint:"/convert/vsdx/to/jpg",label:"VSDX to JPG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."}
1,IncludeBackground:{type:"boolean",description:"Include background pages.",default:!0},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},vsdxToJpgOptionsSchema=objectType({Password:stringType().optional(),IncludeBackground:booleanType(),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),vsdxToPdfDefinition={id:"vsdx-to-pdf",endpoint:"/convert/vsdx/to/pdf",label:"VSDX to PDF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},IncludeBackground:{type:"boolean",description:"Include background pages.",default:!0},ConvertMetadata:{type:"boolean",description:"Convert document metadata like Title, Author, Keywords to PDF metadata.",default:!0},PdfVersion:{enum:["1.2","1.3","1.4","1.5","1.6","1.7","1.8","2.0"],type:"string",description:"Specify the target PDF Version",default:"1.5","x-enum-labels":{"1.2":"Acrobat 3 (PDF 1.2)","1.3":"Acrobat 4 (PDF 1.3)","1.4":"Acrobat 5 (PDF 1.4)","1.5":"Acrobat 6 (PDF 1.5)","1.6":"Acrobat 7 (PDF 1.6)","1.7":"Acrobat 8 (PDF 1.7)","1.8":"Acrobat 9 (PDF 1.7, e-level 3)","2.0":"Acrobat DC (PDF 2.0)"}},PdfResolution:{maximum:2400,minimum:10,type:"integer",description:"Set PDF resolution.",default:300},EmbedFonts:{type:"boolean",description:"Embed fonts in PDF.",default:!0},ColorSpace:{enum:["Default","RGB","CMYK","Gray"],type:"string",description:"Sets the color space of the output image.",default:"Default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}}}}},vsdxToPdfOptionsSchema=objectType({Password:stringType().optional(),IncludeBackground:booleanType(),ConvertMetadata:booleanType(),PdfVersion:enumType(["1.2","1.3","1.4","1.5","1.6","1.7","1.8","2.0"]),PdfResolution:numberType().int().gte(10).lte(2400),EmbedFonts:booleanType(),ColorSpace:enumType(["Default","RGB","CMYK","Gray"])}),vsdxToPngDefinition={id:"vsdx-to-png",endpoint:"/convert/vsdx/to/png",label:"VSDX to PNG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},IncludeBackground:{type:"boolean",description:"Include background pages.",default:!0},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},vsdxToPngOptionsSchema=objectType({Password:stringType().optional(),IncludeBackground:booleanType(),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),vsdxToTiffDefinition={id:"vsdx-to-tiff",endpoint:"/convert/vsdx/to/tiff",label:"VSDX to TIFF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."}
1,IncludeBackground:{type:"boolean",description:"Include background pages.",default:!0},TiffType:{enum:["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"],type:"string",description:"Set TIFF type",default:"color24lzw","x-enum-labels":{color24nc:"24bits RGB, uncompressed",color32nc:"32bits CMYK, uncompressed",color24lzw:"24bits RGB, LZW-compatible compression",color32lzw:"32bits CMYK, LZW-compatible compression",color24zip:"24bits RGB, ZIP (Deflate) compression",color32zip:"32bits CMYK, ZIP (Deflate) compression",grayscale:"8bits Grayscale, uncompressed",grayscalelzw:"8bits Grayscale, LZW-compatible compression",grayscalezip:"8bits Grayscale, ZIP (Deflate) compression",monochromeg3:"Monochrome - G3 fax encoding with EOLs",monochromeg32d:"Monochrome - 2-D G3 fax encoding",monochromeg4:"Monochrome - G4 fax encoding",monochromelzw:"Monochrome - LZW-compatible compression",monochromepackbits:"Monochrome - PackBits compression"}},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},FillOrder:{enum:["0","1"],type:"string",description:"The logical order of bits within a byte.",default:"0","x-enum-labels":{0:"MSB-to-LSB",1:"LSB-to-MSB"}},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},vsdxToTiffOptionsSchema=objectType({Password:stringType().optional(),IncludeBackground:booleanType(),TiffType:enumType(["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"]),MultiPage:booleanType(),FillOrder:enumType(["0","1"]),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),webpToGifDefinition={id:"webp-to-gif",endpoint:"/convert/webp/to/gif",label:"WEBP to GIF",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},PersistAnimation:{type:"boolean",description:"Read animation values AnimationIterations and AnimationDelay from GIF file. Only works if GIF file is added to file list.",default:!0},AnimationDelay:{maximum:2e4,minimum:0,type:"integer",description:"Animation delay in milliseconds before playing the next image in an animated sequence.",default:100},AnimationIterations:{maximum:1e3,minimum:0,type:"integer",description:"Set the number of iterations to loop an animation. Zero is infinity.",default:0}}}},webpToGifOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),PersistAnimation:booleanType(),AnimationDelay:numberType().int().gte(0).lte(2e4),AnimationIterations:numberType().int().gte(0).lte(1e3)}),webpToJpgDefinition={id:"webp-to-jpg",endpoint:"/convert/webp/to/jpg",label:"WEBP to JPG",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",srgb:"sRGB",truecolors:"Truecolors"}},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},webpToJpgOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),ImageQuality:numberType().int().gte(10).lte(100)}),webpToPdfDefinition={id:"webp-to-pdf",endpoint:"/convert/webp/to/pdf",label:"WEBP to PDF",inputJsonSchema:{required:[],type:"object",properties:{ColorSpace:{enum:["default","rgb","srgb","cmyk","gray"],type:"string",description:"Sets the color space of the output image.",default:"default","x-enum-labels":{cmyk:"CMYK",CMYK:"CMYK",default:"Default",Default:"Default",gray:"Gray",Gray:"Gray",grayscale:"Grayscale",monochrome:"Monochrome",rgb:"RGB",RGB:"RGB",
1srgb:"sRGB",truecolors:"Truecolors"}},PageSize:{enum:["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","letter","legal"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},Pdfa:{type:"boolean",description:"Create PDF/A-1b compliant document.",default:!1}}}},webpToPdfOptionsSchema=objectType({ColorSpace:enumType(["default","rgb","srgb","cmyk","gray"]),PageSize:enumType(["default","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","letter","legal"]),PageOrientation:enumType(["default","portrait","landscape"]),Pdfa:booleanType()}),webpToPngDefinition={id:"webp-to-png",endpoint:"/convert/webp/to/png",label:"WEBP to PNG",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200}}}},webpToPngOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800)}),webpToPnmDefinition={id:"webp-to-pnm",endpoint:"/convert/webp/to/pnm",label:"WEBP to PNM",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200}}}},webpToPnmOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800)}),webpToTiffDefinition={id:"webp-to-tiff",endpoint:"/convert/webp/to/tiff",label:"WEBP to TIFF",inputJsonSchema:{required:[],type:"object",properties:{ImageResolution:{maximum:800,minimum:10,type:"integer",description:"Set output image resolution in dpi.",default:200},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75}}}},webpToTiffOptionsSchema=objectType({ImageResolution:numberType().int().gte(10).lte(800),MultiPage:booleanType(),ImageQuality:numberType().int().gte(10).lte(100)}),xlsToCsvDefinition={id:"xls-to-csv",endpoint:"/convert/xls/to/csv",label:"XLS to CSV",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."}}}},xlsToCsvOptionsSchema=objectType({Password:stringType().optional()}),xlsToJpgDefinition={id:"xls-to-jpg",endpoint:"/convert/xls/to/jpg",label:"XLS to JPG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},AutoFit:{type:"boolean",description:"Auto fit columns and rows.",default:!1},ClearPrintArea:{type:"boolean",description:"Clear the print area in the converting document.",default:!1},Scale:{maximum:300,minimum:10,type:"integer",description:"Set content scale value in percentage.",default:100},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},xlsToJpgOptionsSchema=objectType({Password:stringType().optional(),PageOrientation:enumType(["default","portrait","landscape"]),PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","ds
1heet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),AutoFit:booleanType(),ClearPrintArea:booleanType(),Scale:numberType().int().gte(10).lte(300),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),xlsToNumbersDefinition={id:"xls-to-numbers",endpoint:"/convert/xls/to/numbers",label:"XLS to NUMBERS",inputJsonSchema:{required:[],type:"object",properties:{}}},xlsToNumbersOptionsSchema=objectType({}),xlsToPdfDefinition={id:"xls-to-pdf",endpoint:"/convert/xls/to/pdf",label:"XLS to PDF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},ConvertMetadata:{type:"boolean",description:"Convert document metadata like Title, Author, Keywords to PDF metadata.",default:!0},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},AutoFit:{type:"boolean",description:"Auto fit columns and rows.",default:!1},ClearPrintArea:{type:"boolean",description:"Clear the print area in the converting document.",default:!1},Scale:{maximum:300,minimum:10,type:"integer",description:"Set content scale value in percentage."},HeaderOnEachPage:{type:"boolean",description:"Ensures the header row is repeated on all pages when the sheet's content spans multiple pages in the PDF output. If a table is detected in the sheet, its header row is used; otherwise, the first row with data is treated as the header.",default:!1},ThousandsSeparator:{type:"string",description:"Thousands separator.",default:","},DecimalSeparator:{type:"string",description:"Decimal separator.",default:"."},DateFormat:{enum:["us","iso","eu","german","japanese"],type:"string",description:"Sets the date format for output document, overriding the default US locale (M/d/yyyy) to ensure consistency regardless of regional Excel settings.\n * `us` - US (M/d/yyyy)\n * `iso` - ISO (yyyy-MM-dd)\n * `eu` - EU (dd/MM/yyyy)\n * `german` - German (dd.MM.yyyy)\n * `japanese` - Japanese (yyyy/MM/dd)",default:"us"},CompressPDF:{type:"boolean",description:"It tries to produce smaller output files but requires Adobe Reader 6, released in 2003 or newer, to view created PDF files.",default:!1},Pdfa:{type:"boolean",description:"Create PDF/A-1b compliant document.",default:!1}}}},xlsToPdfOptionsSchema=objectType({Password:stringType().optional(),ConvertMetadata:booleanType(),PageOrientation:enumType(["default","portrait","landscape"]),PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5"]),AutoFit:booleanType(),ClearPrintArea:booleanType(),Scale:numberType().int().gte(10).lte(300).optional(),HeaderOnEachPage:booleanType(),ThousandsSeparator:stringType(),DecimalSeparator:stringType(),DateFormat:enumType(["us","iso","eu","german","japanese"]),CompressPDF:booleanType(),Pdfa:booleanType()}),xlsToPngDefinition={id:"xls-to-png",endpoint:"/convert/xls/to/png",label:"XLS to PNG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","ds
1heet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},AutoFit:{type:"boolean",description:"Auto fit columns and rows.",default:!1},ClearPrintArea:{type:"boolean",description:"Clear the print area in the converting document.",default:!1},Scale:{maximum:300,minimum:10,type:"integer",description:"Set content scale value in percentage.",default:100},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},xlsToPngOptionsSchema=objectType({Password:stringType().optional(),PageOrientation:enumType(["default","portrait","landscape"]),PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),AutoFit:booleanType(),ClearPrintArea:booleanType(),Scale:numberType().int().gte(10).lte(300),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),xlsToTiffDefinition={id:"xls-to-tiff",endpoint:"/convert/xls/to/tiff",label:"XLS to TIFF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},AutoFit:{type:"boolean",description:"Auto fit columns and rows.",default:!1},ClearPrintArea:{type:"boolean",description:"Clear the print area in the converting document.",default:!1},Scale:{maximum:300,minimum:10,type:"integer",description:"Set content scale value in percentage.",default:100},TiffType:{enum:["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"],type:"string",description:"Set TIFF type",default:"color24lzw","x-enum-labels":{color24nc:"24bits RGB, uncompressed",color32nc:"32bits CMYK, uncompressed",color24lzw:"24bits RGB, LZW-compatible compression",color32lzw:"32bits CMYK, LZW-compatible compression",color24zip:"24bits RGB, ZIP (Deflate) compression",color32zip:"32bits CMYK, ZIP (Deflate) compression",grayscale:"8bits Grayscale, uncompressed",grayscalelzw:"8bits Grayscale, LZW-compatible compression",grayscalezip:"8bits Grayscale, ZIP (Deflate) compression",monochromeg3:"Monochrome - G3 fax encoding with EOLs",monochromeg32d:"Monochrome - 2-D G3 fax encoding",monochromeg4:"Monochrome - G4 fax encoding",monochromelzw:"Monochrome - LZW-compatible compression",monochromepackbits:"Monochrome - PackBits compression"}},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},FillOrder:{enum:["0","1"],type:"string",description:"The logical order of bits within a byte.",default:"0","x-enum-labels":{0:"MSB-to-LSB",1:"LSB-to-MSB"}},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},xlsToTiffOptionsSchema=objectType({Password:stringType().optional(),PageOrientation:enumType(["default","portrait","landscape"]),PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","ds
1heet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),AutoFit:booleanType(),ClearPrintArea:booleanType(),Scale:numberType().int().gte(10).lte(300),TiffType:enumType(["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"]),MultiPage:booleanType(),FillOrder:enumType(["0","1"]),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),xlsToWebpDefinition={id:"xls-to-webp",endpoint:"/convert/xls/to/webp",label:"XLS to WEBP",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},AutoFit:{type:"boolean",description:"Auto fit columns and rows.",default:!1},ClearPrintArea:{type:"boolean",description:"Clear the print area in the converting document.",default:!1},Scale:{maximum:300,minimum:10,type:"integer",description:"Set content scale value in percentage.",default:100},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},xlsToWebpOptionsSchema=objectType({Password:stringType().optional(),PageOrientation:enumType(["default","portrait","landscape"]),PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),AutoFit:booleanType(),ClearPrintArea:booleanType(),Scale:numberType().int().gte(10).lte(300),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),xlsToXlsDefinition={id:"xls-to-xls",endpoint:"/convert/xls/to/xls",label:"XLS to XLS",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."}}}},xlsToXlsOptionsSchema=objectType({Password:stringType().optional()}),xlsToXlsxDefinition={id:"xls-to-xlsx",endpoint:"/convert/xls/to/xlsx",label:"XLS to XLSX",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."}}}},xlsToXlsxOptionsSchema=objectType({Password:stringType().optional()}),xlsxToCsvDefinition={id:"xlsx-to-csv",endpoint:"/convert/xlsx/to/csv",label:"XLSX to CSV",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."}}}},xlsxToCsvOptionsSchema=objectType({Password:stringType().optional()}),xlsxToJpgDefinition={id:"xlsx-to-jpg",endpoint:"/convert/xlsx/to/jpg",label:"XLSX to JPG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","ds
1heet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},AutoFit:{type:"boolean",description:"Auto fit columns and rows.",default:!1},ClearPrintArea:{type:"boolean",description:"Clear the print area in the converting document.",default:!1},Scale:{maximum:300,minimum:10,type:"integer",description:"Set content scale value in percentage.",default:100},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},xlsxToJpgOptionsSchema=objectType({Password:stringType().optional(),PageOrientation:enumType(["default","portrait","landscape"]),PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),AutoFit:booleanType(),ClearPrintArea:booleanType(),Scale:numberType().int().gte(10).lte(300),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),xlsxToNumbersDefinition={id:"xlsx-to-numbers",endpoint:"/convert/xlsx/to/numbers",label:"XLSX to NUMBERS",inputJsonSchema:{required:[],type:"object",properties:{}}},xlsxToNumbersOptionsSchema=objectType({}),xlsxToPdfDefinition={id:"xlsx-to-pdf",endpoint:"/convert/xlsx/to/pdf",label:"XLSX to PDF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},ConvertMetadata:{type:"boolean",description:"Convert document metadata like Title, Author, Keywords to PDF metadata.",default:!0},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},AutoFit:{type:"boolean",description:"Auto fit columns and rows.",default:!1},ClearPrintArea:{type:"boolean",description:"Clear the print area in the converting document.",default:!1},Scale:{maximum:300,minimum:10,type:"integer",description:"Set content scale value in percentage."},HeaderOnEachPage:{type:"boolean",description:"Ensures the header row is repeated on all pages when the sheet's content spans multiple pages in the PDF output. If a table is detected in the sheet, its header row is used; otherwise, the first row with data is treated as the header.",default:!1},ThousandsSeparator:{type:"string",description:"Thousands separator.",default:","},DecimalSeparator:{type:"string",description:"Decimal separator.",default:"."},DateFormat:{enum:["us","iso","eu","german","japanese"],type:"string",description:"Sets the date format for output document, overriding the default US locale (M/d/yyyy) to ensure consistency regardless of regional Excel settings.\n * `us` - US (M/d/yyyy)\n * `iso` - ISO (yyyy-MM-dd)\n * `eu` - EU (dd/MM/yyyy)\n * `german` - German (dd.MM.yyyy)\n * `japanese` - Japanese (yyyy/MM/dd)",default:"us"},CompressPDF:{type:"boolean",description:"It tries to produce smaller output files but requires Adobe Reader 6, released in 2003 or newer, to view created PDF files.",default:!1},Pdfa:{type:"boolean",description:"Create PDF/A-1b compliant document.",default:!1}}}},xlsxToPdfOptionsSchema=objectType({Password:stringType().optional(),ConvertMetadata:booleanType(),PageOrientation:enumType(["default","portrait","landscape"]),PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5"]),AutoFit:booleanType(),ClearPrintArea:booleanType(),Scale:numberType().int().gte(10).lte(300).optional(),HeaderOnEachPage:booleanType(),ThousandsSeparator:stringType(),DecimalSeparator:stringType(),DateFormat:enumType(["us","iso","eu","german","japanese"]),CompressPDF:booleanType(),Pdfa:booleanType()}),xlsxToPngDefinition={id:"xlsx-to-png",endpoint:"/convert/xlsx/to/png",label:"XLSX to PNG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","ds
1heet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},AutoFit:{type:"boolean",description:"Auto fit columns and rows.",default:!1},ClearPrintArea:{type:"boolean",description:"Clear the print area in the converting document.",default:!1},Scale:{maximum:300,minimum:10,type:"integer",description:"Set content scale value in percentage.",default:100},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},xlsxToPngOptionsSchema=objectType({Password:stringType().optional(),PageOrientation:enumType(["default","portrait","landscape"]),PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),AutoFit:booleanType(),ClearPrintArea:booleanType(),Scale:numberType().int().gte(10).lte(300),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),xlsxToTiffDefinition={id:"xlsx-to-tiff",endpoint:"/convert/xlsx/to/tiff",label:"XLSX to TIFF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},AutoFit:{type:"boolean",description:"Auto fit columns and rows.",default:!1},ClearPrintArea:{type:"boolean",description:"Clear the print area in the converting document.",default:!1},Scale:{maximum:300,minimum:10,type:"integer",description:"Set content scale value in percentage.",default:100},TiffType:{enum:["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"],type:"string",description:"Set TIFF type",default:"color24lzw","x-enum-labels":{color24nc:"24bits RGB, uncompressed",color32nc:"32bits CMYK, uncompressed",color24lzw:"24bits RGB, LZW-compatible compression",color32lzw:"32bits CMYK, LZW-compatible compression",color24zip:"24bits RGB, ZIP (Deflate) compression",color32zip:"32bits CMYK, ZIP (Deflate) compression",grayscale:"8bits Grayscale, uncompressed",grayscalelzw:"8bits Grayscale, LZW-compatible compression",grayscalezip:"8bits Grayscale, ZIP (Deflate) compression",monochromeg3:"Monochrome - G3 fax encoding with EOLs",monochromeg32d:"Monochrome - 2-D G3 fax encoding",monochromeg4:"Monochrome - G4 fax encoding",monochromelzw:"Monochrome - LZW-compatible compression",monochromepackbits:"Monochrome - PackBits compression"}},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},FillOrder:{enum:["0","1"],type:"string",description:"The logical order of bits within a byte.",default:"0","x-enum-labels":{0:"MSB-to-LSB",1:"LSB-to-MSB"}},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},xlsxToTiffOptionsSchema=objectType({Password:stringType().optional(),PageOrientation:enumType(["default","portrait","landscape"]),PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","ds
1heet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),AutoFit:booleanType(),ClearPrintArea:booleanType(),Scale:numberType().int().gte(10).lte(300),TiffType:enumType(["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"]),MultiPage:booleanType(),FillOrder:enumType(["0","1"]),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),xlsxToWebpDefinition={id:"xlsx-to-webp",endpoint:"/convert/xlsx/to/webp",label:"XLSX to WEBP",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},AutoFit:{type:"boolean",description:"Auto fit columns and rows.",default:!1},ClearPrintArea:{type:"boolean",description:"Clear the print area in the converting document.",default:!1},Scale:{maximum:300,minimum:10,type:"integer",description:"Set content scale value in percentage.",default:100},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},xlsxToWebpOptionsSchema=objectType({Password:stringType().optional(),PageOrientation:enumType(["default","portrait","landscape"]),PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),AutoFit:booleanType(),ClearPrintArea:booleanType(),Scale:numberType().int().gte(10).lte(300),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),xlsxToXlsDefinition={id:"xlsx-to-xls",endpoint:"/convert/xlsx/to/xls",label:"XLSX to XLS",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."}}}},xlsxToXlsOptionsSchema=objectType({Password:stringType().optional()}),xlsxToXlsxDefinition={id:"xlsx-to-xlsx",endpoint:"/convert/xlsx/to/xlsx",label:"XLSX to XLSX",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."}}}},xlsxToXlsxOptionsSchema=objectType({Password:stringType().optional()}),xltxToCsvDefinition={id:"xltx-to-csv",endpoint:"/convert/xltx/to/csv",label:"XLTX to CSV",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."}}}},xltxToCsvOptionsSchema=objectType({Password:stringType().optional()}),xltxToJpgDefinition={id:"xltx-to-jpg",endpoint:"/convert/xltx/to/jpg",label:"XLTX to JPG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","ds
1heet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},AutoFit:{type:"boolean",description:"Auto fit columns and rows.",default:!1},ClearPrintArea:{type:"boolean",description:"Clear the print area in the converting document.",default:!1},Scale:{maximum:300,minimum:10,type:"integer",description:"Set content scale value in percentage.",default:100},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},xltxToJpgOptionsSchema=objectType({Password:stringType().optional(),PageOrientation:enumType(["default","portrait","landscape"]),PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),AutoFit:booleanType(),ClearPrintArea:booleanType(),Scale:numberType().int().gte(10).lte(300),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),xltxToPdfDefinition={id:"xltx-to-pdf",endpoint:"/convert/xltx/to/pdf",label:"XLTX to PDF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},ConvertMetadata:{type:"boolean",description:"Convert document metadata like Title, Author, Keywords to PDF metadata.",default:!0},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},AutoFit:{type:"boolean",description:"Auto fit columns and rows.",default:!1},ClearPrintArea:{type:"boolean",description:"Clear the print area in the converting document.",default:!1},Scale:{maximum:300,minimum:10,type:"integer",description:"Set content scale value in percentage."},HeaderOnEachPage:{type:"boolean",description:"Ensures the header row is repeated on all pages when the sheet's content spans multiple pages in the PDF output. If a table is detected in the sheet, its header row is used; otherwise, the first row with data is treated as the header.",default:!1},ThousandsSeparator:{type:"string",description:"Thousands separator.",default:","},DecimalSeparator:{type:"string",description:"Decimal separator.",default:"."},DateFormat:{enum:["us","iso","eu","german","japanese"],type:"string",description:"Sets the date format for output document, overriding the default US locale (M/d/yyyy) to ensure consistency regardless of regional Excel settings.\n * `us` - US (M/d/yyyy)\n * `iso` - ISO (yyyy-MM-dd)\n * `eu` - EU (dd/MM/yyyy)\n * `german` - German (dd.MM.yyyy)\n * `japanese` - Japanese (yyyy/MM/dd)",default:"us"},CompressPDF:{type:"boolean",description:"It tries to produce smaller output files but requires Adobe Reader 6, released in 2003 or newer, to view created PDF files.",default:!1},Pdfa:{type:"boolean",description:"Create PDF/A-1b compliant document.",default:!1}}}},xltxToPdfOptionsSchema=objectType({Password:stringType().optional(),ConvertMetadata:booleanType(),PageOrientation:enumType(["default","portrait","landscape"]),PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5"]),AutoFit:booleanType(),ClearPrintArea:booleanType(),Scale:numberType().int().gte(10).lte(300).optional(),HeaderOnEachPage:booleanType(),ThousandsSeparator:stringType(),DecimalSeparator:stringType(),DateFormat:enumType(["us","iso","eu","german","japanese"]),CompressPDF:booleanType(),Pdfa:booleanType()}),xltxToPngDefinition={id:"xltx-to-png",endpoint:"/convert/xltx/to/png",label:"XLTX to PNG",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","ds
1heet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},AutoFit:{type:"boolean",description:"Auto fit columns and rows.",default:!1},ClearPrintArea:{type:"boolean",description:"Clear the print area in the converting document.",default:!1},Scale:{maximum:300,minimum:10,type:"integer",description:"Set content scale value in percentage.",default:100},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},xltxToPngOptionsSchema=objectType({Password:stringType().optional(),PageOrientation:enumType(["default","portrait","landscape"]),PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),AutoFit:booleanType(),ClearPrintArea:booleanType(),Scale:numberType().int().gte(10).lte(300),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),xltxToTiffDefinition={id:"xltx-to-tiff",endpoint:"/convert/xltx/to/tiff",label:"XLTX to TIFF",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},AutoFit:{type:"boolean",description:"Auto fit columns and rows.",default:!1},ClearPrintArea:{type:"boolean",description:"Clear the print area in the converting document.",default:!1},Scale:{maximum:300,minimum:10,type:"integer",description:"Set content scale value in percentage.",default:100},TiffType:{enum:["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"],type:"string",description:"Set TIFF type",default:"color24lzw","x-enum-labels":{color24nc:"24bits RGB, uncompressed",color32nc:"32bits CMYK, uncompressed",color24lzw:"24bits RGB, LZW-compatible compression",color32lzw:"32bits CMYK, LZW-compatible compression",color24zip:"24bits RGB, ZIP (Deflate) compression",color32zip:"32bits CMYK, ZIP (Deflate) compression",grayscale:"8bits Grayscale, uncompressed",grayscalelzw:"8bits Grayscale, LZW-compatible compression",grayscalezip:"8bits Grayscale, ZIP (Deflate) compression",monochromeg3:"Monochrome - G3 fax encoding with EOLs",monochromeg32d:"Monochrome - 2-D G3 fax encoding",monochromeg4:"Monochrome - G4 fax encoding",monochromelzw:"Monochrome - LZW-compatible compression",monochromepackbits:"Monochrome - PackBits compression"}},MultiPage:{type:"boolean",description:"Create multi-page TIFF file.",default:!0},FillOrder:{enum:["0","1"],type:"string",description:"The logical order of bits within a byte.",default:"0","x-enum-labels":{0:"MSB-to-LSB",1:"LSB-to-MSB"}},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},xltxToTiffOptionsSchema=objectType({Password:stringType().optional(),PageOrientation:enumType(["default","portrait","landscape"]),PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","ds
1heet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),AutoFit:booleanType(),ClearPrintArea:booleanType(),Scale:numberType().int().gte(10).lte(300),TiffType:enumType(["color24nc","color32nc","color24lzw","color32lzw","color24zip","color32zip","grayscale","grayscalelzw","grayscalezip","monochromeg3","monochromeg32d","monochromeg4","monochromelzw","monochromepackbits"]),MultiPage:booleanType(),FillOrder:enumType(["0","1"]),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),xltxToWebpDefinition={id:"xltx-to-webp",endpoint:"/convert/xltx/to/webp",label:"XLTX to WEBP",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."},PageOrientation:{enum:["default","portrait","landscape"],type:"string",description:"Specifies the Page Orientation.",default:"default","x-enum-labels":{default:"Default",portrait:"Portrait",landscape:"Landscape"}},PageSize:{enum:["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"],type:"string",description:"The property scales each image to fit a given page size",default:"default","x-enum-labels":{default:"Default",a0:"A0",a1:"A1",a2:"A2",a3:"A3",a4:"A4",a5:"A5",a6:"A6",a7:"A7",a8:"A8",a9:"A9",a10:"A10",letter:"Letter",legal:"Legal"}},AutoFit:{type:"boolean",description:"Auto fit columns and rows.",default:!1},ClearPrintArea:{type:"boolean",description:"Clear the print area in the converting document.",default:!1},Scale:{maximum:300,minimum:10,type:"integer",description:"Set content scale value in percentage.",default:100},ImageQuality:{maximum:100,minimum:10,type:"integer",description:"Set output image quality.",default:75},TextAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of text subsample antialiasing. The subsampling box size should be 4 bits for optimum text antialiasing, but smaller values can be used for faster rendering.",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}},GraphicsAntialiasing:{enum:["0","1","2","4"],type:"string",description:"Control the use of graphics content subsample antialiasing. The subsampling box size should be 4 bits for optimum graphics content antialiasing, but smaller values can be used for faster rendering",default:"1","x-enum-labels":{0:"None",1:"1 bit",2:"2 bits",4:"4 bits"}}}}},xltxToWebpOptionsSchema=objectType({Password:stringType().optional(),PageOrientation:enumType(["default","portrait","landscape"]),PageSize:enumType(["default","letter","lettersmall","tabloid","ledger","legal","statement","executive","a3","a4","a4small","a5","b4","b5","folio","quarto","10x14","11x17","note","envelope9","envelope10","envelope11","envelope12","envelope14","csheet","dsheet","esheet","envelopedl","envelopec3","envelopec4","envelopec5","envelopec6","envelopec65","envelopecb4","envelopeb5","envelopeb6","envelopeeurope","envelopem","envelopeusa","fanfoldusa","fanfoldgerman","lfanfoldgerman"]),AutoFit:booleanType(),ClearPrintArea:booleanType(),Scale:numberType().int().gte(10).lte(300),ImageQuality:numberType().int().gte(10).lte(100),TextAntialiasing:enumType(["0","1","2","4"]),GraphicsAntialiasing:enumType(["0","1","2","4"])}),xltxToXlsDefinition={id:"xltx-to-xls",endpoint:"/convert/xltx/to/xls",label:"XLTX to XLS",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."}}}},xltxToXlsOptionsSchema=objectType({Password:stringType().optional()}),xltxToXlsxDefinition={id:"xltx-to-xlsx",endpoint:"/convert/xltx/to/xlsx",label:"XLTX to XLSX",inputJsonSchema:{required:[],type:"object",properties:{Password:{type:"string",description:"Sets the password to open protected documents."}}}},xltxToXlsxOptionsSchema=objectType({Password:stringType().optional()}),conversionDefinitionMap={"ai-to-jpg":aiToJpgDefinition,"ai-to-png":aiToPngDefinition,"ai-to-pnm":aiToPnmDefinition,"ai-to-tiff":aiToTiffDefinition,"ai-to-webp":aiToWebpDefinition,"bmp-to-jpg":bmpToJpgDefinition,"bmp-to-pdf":bmpToPdfDefinition,"bmp-to-png":bmpToPngDefinition,"bmp-to-pnm":bmpToPnmDefinition,"bmp-to-tiff":bmpToTiffDefinition,"bmp-to-webp":bmpToWebpDefinition,"csv-to-numbers":csvToNumbersDefinition,"csv-to-pdf":csvToPdfDefinition,"csv-to-xls":csvToXlsDefinition,"csv-to-xlsx":csvToXlsxDefinition,"djvu-to-jpg":djvuToJpgDefinition,"djvu-to-pdf":djvuToPdfDefinition,"djvu-to-png":djvuToPngDefinition,"djvu-to-tiff":djvuToTiffDefinition,"djvu-to-webp":djvuToWebpDefinition,"doc-to-docx":docToDocxDefinition,"doc-to-html":docToHtmlDefinition,"doc-to-jpg":docToJpgDefinition,"doc-to-odt":docToOdtDefinition,"doc-to-pdf":docToPdfDefinition,"doc-to-png":docToPngDefinition,"doc-to-rtf":docToRtfDefinition,"doc-to-txt":docToTxtDefinition,"doc-to-xml":docToXmlDefinition,"doc-to-xps":docToXpsDefinition,"docx-to-doc":docxToDocDefinition,"docx-to-html":docxToHtmlDefinition,"docx-to-jpg":docxToJpgDefinition,"docx-to-odt":docxToOdtDefinition,"docx-to-pages":docxToPagesDefinition,"docx-to-pdf":docxToPdfDefinition,"docx-to-png":docxToPngDefinition,"docx-to-rtf":docxToRtfDefinition,"docx-to-tiff":docxToTiffDefinition,"docx-to-txt":docxToTxtDefinition,"docx-to-webp":docxToWebpDefinition,"docx-to-xml":docxToXmlDefinition,"docx-to-xps":docxToXpsDefinition,"dotx-to-doc":dotxToDocDefinition,"dotx-to-docx":dotxToDocxDefinition,"dotx-to-jpg":dotxToJpgDefinition,"dotx-to-odt":dotxToOdtDefinition,"dotx-to-pdf":dotxToPdfDefinition,"dotx-to-rtf":dotxToRtfDefinition,"dotx-to-xml":dotxToXmlDefinition,"dotx-to-xps":dotxToXpsDefinition,"dwf-to-jpg":dwfToJpgDefinition,"dwf-to-pdf":dwfToPdfDefinition,"dwf-to-png":dwfToPngDefinition,"dwf-to-tiff":dwfToTiffDefinition,"dwf-to-webp":dwfToWebpDefinition,"dwfx-to-jpg":dwfxToJpgDefinition,"dwfx-to-pdf":dwfxToPdfDefinition,"dwfx-to-png":dwfxToPngDefinition,"dwfx-to-tiff":dwfxToTiffDefinition,"dwfx-to-webp":dwfxToWebpDefinition,"dwg-to-jpg":dwgToJpgDefinition,"dwg-to-pdf":dwgToPdfDefinition,"dwg-to-png":dwgToPngDefinition,"dwg-to-tiff":dwgToTiffDefinition,"dwg-to-webp":dwgToWebpDefinition,"dxf-to-jpg":dxfToJpgDefinition,"dxf-to-pdf":dxfToPdfDefinition,"dxf-to-png":dxfToPngDefinition,"dxf-to-tiff":dxfToTiffDefinition,"dxf-to-webp":dxfToWebpDefinition,"eps-to-jpg":epsToJpgDefinition,"eps-to-pdf":epsToPdfDefinition,"eps-to-png":epsToPngDefinition,"eps-to-tiff":epsToTiffDefinition,"eps-to-webp":epsToWebpDefinition,"epub-to-jpg":epubToJpgDefinition,"epub-to-pdf":epubToPdfDefinition,"epub-to-png":epubToPngDefinition,"epub-to-tiff":epubToTiffDefinition,"epub-to-webp":epubToWebpDefinition,"gif-to-jpg":gifToJpgDefinition,"gif-to-pdf":gifToPdfDefinition,"gif-to-png":gifToPngDefinition,"gif-to-pnm"
1:gifToPnmDefinition,"gif-to-tiff":gifToTiffDefinition,"gif-to-webp":gifToWebpDefinition,"heic-to-jpg":heicToJpgDefinition,"heic-to-jxl":heicToJxlDefinition,"heic-to-pdf":heicToPdfDefinition,"heic-to-png":heicToPngDefinition,"heic-to-pnm":heicToPnmDefinition,"heic-to-tiff":heicToTiffDefinition,"heic-to-webp":heicToWebpDefinition,"ico-to-jpg":icoToJpgDefinition,"ico-to-pdf":icoToPdfDefinition,"ico-to-png":icoToPngDefinition,"ico-to-pnm":icoToPnmDefinition,"ico-to-tiff":icoToTiffDefinition,"ico-to-webp":icoToWebpDefinition,"jpg-to-gif":jpgToGifDefinition,"jpg-to-jxl":jpgToJxlDefinition,"jpg-to-pdf":jpgToPdfDefinition,"jpg-to-png":jpgToPngDefinition,"jpg-to-pnm":jpgToPnmDefinition,"jpg-to-tiff":jpgToTiffDefinition,"jpg-to-webp":jpgToWebpDefinition,"key-to-jpg":keyToJpgDefinition,"key-to-pdf":keyToPdfDefinition,"key-to-png":keyToPngDefinition,"key-to-pptx":keyToPptxDefinition,"key-to-tiff":keyToTiffDefinition,"md-to-html":mdToHtmlDefinition,"md-to-pdf":mdToPdfDefinition,"mobi-to-jpg":mobiToJpgDefinition,"mobi-to-pdf":mobiToPdfDefinition,"mobi-to-png":mobiToPngDefinition,"mobi-to-tiff":mobiToTiffDefinition,"mobi-to-webp":mobiToWebpDefinition,"numbers-to-csv":numbersToCsvDefinition,"numbers-to-jpg":numbersToJpgDefinition,"numbers-to-pdf":numbersToPdfDefinition,"numbers-to-png":numbersToPngDefinition,"numbers-to-xlsx":numbersToXlsxDefinition,"odc-to-jpg":odcToJpgDefinition,"odc-to-pdf":odcToPdfDefinition,"odc-to-png":odcToPngDefinition,"odc-to-tiff":odcToTiffDefinition,"odc-to-webp":odcToWebpDefinition,"odg-to-pdf":odgToPdfDefinition,"odp-to-pdf":odpToPdfDefinition,"ods-to-pdf":odsToPdfDefinition,"odt-to-doc":odtToDocDefinition,"odt-to-docx":odtToDocxDefinition,"odt-to-pdf":odtToPdfDefinition,"odt-to-rtf":odtToRtfDefinition,"odt-to-txt":odtToTxtDefinition,"odt-to-xml":odtToXmlDefinition,"odt-to-xps":odtToXpsDefinition,"pages-to-docx":pagesToDocxDefinition,"pages-to-epub":pagesToEpubDefinition,"pages-to-jpg":pagesToJpgDefinition,"pages-to-pdf":pagesToPdfDefinition,"pages-to-png":pagesToPngDefinition,"pages-to-txt":pagesToTxtDefinition,"pdf-to-csv":pdfToCsvDefinition,"pdf-to-docx":pdfToDocxDefinition,"pdf-to-html":pdfToHtmlDefinition,"pdf-to-jpg":pdfToJpgDefinition,"pdf-to-pdf":pdfToPdfDefinition,"pdf-to-pdfa":pdfToPdfaDefinition,"pdf-to-png":pdfToPngDefinition,"pdf-to-pptx":pdfToPptxDefinition,"pdf-to-tiff":pdfToTiffDefinition,"pdf-to-tiff-fax":pdfToTiffFaxDefinition,"pdf-to-txt":pdfToTxtDefinition,"pdf-to-webp":pdfToWebpDefinition,"pdf-to-xlsx":pdfToXlsxDefinition,"png-to-gif":pngToGifDefinition,"png-to-jpg":pngToJpgDefinition,"png-to-pdf":pngToPdfDefinition,"png-to-pnm":pngToPnmDefinition,"png-to-tiff":pngToTiffDefinition,"png-to-webp":pngToWebpDefinition,"potx-to-jpg":potxToJpgDefinition,"potx-to-pdf":potxToPdfDefinition,"potx-to-png":potxToPngDefinition,"potx-to-pptx":potxToPptxDefinition,"potx-to-tiff":potxToTiffDefinition,"potx-to-webp":potxToWebpDefinition,"ppsx-to-jpg":ppsxToJpgDefinition,"ppsx-to-pdf":ppsxToPdfDefinition,"ppsx-to-png":ppsxToPngDefinition,"ppsx-to-pptx":ppsxToPptxDefinition,"ppsx-to-tiff":ppsxToTiffDefinition,"ppsx-to-webp":ppsxToWebpDefinition,"ppt-to-jpg":pptToJpgDefinition,"ppt-to-pdf":pptToPdfDefinition,"ppt-to-png":pptToPngDefinition,"ppt-to-pptx":pptToPptxDefinition,"ppt-to-tiff":pptToTiffDefinition,"ppt-to-webp":pptToWebpDefinition,"pptx-to-jpg":pptxToJpgDefinition,"pptx-to-key":pptxToKeyDefinition,"pptx-to-pdf":pptxToPdfDefinition,"pptx-to-png":pptxToPngDefinition,"pptx-to-pptx":pptxToPptxDefinition,"pptx-to-tiff":pptxToTiffDefinition,"pptx-to-webp":pptxToWebpDefinition,"psd-to-jpg":psdToJpgDefinition,"psd-to-png":psdToPngDefinition,"psd-to-pnm":psdToPnmDefinition,"psd-to-tiff":psdToTiffDefinition,"psd-to-webp":psdToWebpDefinition,"pub-to-jpg":pubToJpgDefinition,"pub-to-pdf":pubToPdfDefinition,"pub-to-png":pubToPngDefinition,"pub-to-tiff":pubToTiffDefinition,"rtf-to-html":rtfToHtmlDefinition,"rtf-to-jpg":rtfToJpgDefinition,"rtf-to-pdf":rtfToPdfDefinition,"rtf-to-png":rtfToPngDefinition,"rtf-to-txt":rtfToTxtDefinition,"svg-to-jpg":svgToJpgDefinition,"svg-to-png":svgToPngDefinition,"svg-to-pnm":svgToPnmDefinition,"svg-to-tiff":svgToTiffDefinition,"svg-to-webp":svgToWebpDefinition,"tiff-to-jpg":tiffToJpgDefinition,"tiff-to-pdf":tiffToPdfDefinition,"tiff-to-png":tiffToPngDefinition,"tiff-to-pnm"
1:tiffToPnmDefinition,"tiff-to-webp":tiffToWebpDefinition,"vsd-to-jpg":vsdToJpgDefinition,"vsd-to-pdf":vsdToPdfDefinition,"vsd-to-png":vsdToPngDefinition,"vsd-to-tiff":vsdToTiffDefinition,"vsdx-to-jpg":vsdxToJpgDefinition,"vsdx-to-pdf":vsdxToPdfDefinition,"vsdx-to-png":vsdxToPngDefinition,"vsdx-to-tiff":vsdxToTiffDefinition,"webp-to-gif":webpToGifDefinition,"webp-to-jpg":webpToJpgDefinition,"webp-to-pdf":webpToPdfDefinition,"webp-to-png":webpToPngDefinition,"webp-to-pnm":webpToPnmDefinition,"webp-to-tiff":webpToTiffDefinition,"xls-to-csv":xlsToCsvDefinition,"xls-to-jpg":xlsToJpgDefinition,"xls-to-numbers":xlsToNumbersDefinition,"xls-to-pdf":xlsToPdfDefinition,"xls-to-png":xlsToPngDefinition,"xls-to-tiff":xlsToTiffDefinition,"xls-to-webp":xlsToWebpDefinition,"xls-to-xls":xlsToXlsDefinition,"xls-to-xlsx":xlsToXlsxDefinition,"xlsx-to-csv":xlsxToCsvDefinition,"xlsx-to-jpg":xlsxToJpgDefinition,"xlsx-to-numbers":xlsxToNumbersDefinition,"xlsx-to-pdf":xlsxToPdfDefinition,"xlsx-to-png":xlsxToPngDefinition,"xlsx-to-tiff":xlsxToTiffDefinition,"xlsx-to-webp":xlsxToWebpDefinition,"xlsx-to-xls":xlsxToXlsDefinition,"xlsx-to-xlsx":xlsxToXlsxDefinition,"xltx-to-csv":xltxToCsvDefinition,"xltx-to-jpg":xltxToJpgDefinition,"xltx-to-pdf":xltxToPdfDefinition,"xltx-to-png":xltxToPngDefinition,"xltx-to-tiff":xltxToTiffDefinition,"xltx-to-webp":xltxToWebpDefinition,"xltx-to-xls":xltxToXlsDefinition,"xltx-to-xlsx":xltxToXlsxDefinition},aiConversions=[aiToJpgDefinition,aiToPngDefinition,aiToPnmDefinition,aiToTiffDefinition,aiToWebpDefinition],bmpConversions=[bmpToJpgDefinition,bmpToPdfDefinition,bmpToPngDefinition,bmpToPnmDefinition,bmpToTiffDefinition,bmpToWebpDefinition],csvConversions=[csvToNumbersDefinition,csvToPdfDefinition,csvToXlsDefinition,csvToXlsxDefinition],djvuConversions=[djvuToJpgDefinition,djvuToPdfDefinition,djvuToPngDefinition,djvuToTiffDefinition,djvuToWebpDefinition],docConversions=[docToDocxDefinition,docToHtmlDefinition,docToJpgDefinition,docToOdtDefinition,docToPdfDefinition,docToPngDefinition,docToRtfDefinition,docToTxtDefinition,docToXmlDefinition,docToXpsDefinition],docxConversions=[docxToDocDefinition,docxToHtmlDefinition,docxToJpgDefinition,docxToOdtDefinition,docxToPagesDefinition,docxToPdfDefinition,docxToPngDefinition,docxToRtfDefinition,docxToTiffDefinition,docxToTxtDefinition,docxToWebpDefinition,docxToXmlDefinition,docxToXpsDefinition],dotxConversions=[dotxToDocDefinition,dotxToDocxDefinition,dotxToJpgDefinition,dotxToOdtDefinition,dotxToPdfDefinition,dotxToRtfDefinition,dotxToXmlDefinition,dotxToXpsDefinition],dwfConversions=[dwfToJpgDefinition,dwfToPdfDefinition,dwfToPngDefinition,dwfToTiffDefinition,dwfToWebpDefinition],dwfxConversions=[dwfxToJpgDefinition,dwfxToPdfDefinition,dwfxToPngDefinition,dwfxToTiffDefinition,dwfxToWebpDefinition],dwgConversions=[dwgToJpgDefinition,dwgToPdfDefinition,dwgToPngDefinition,dwgToTiffDefinition,dwgToWebpDefinition],dxfConversions=[dxfToJpgDefinition,dxfToPdfDefinition,dxfToPngDefinition,dxfToTiffDefinition,dxfToWebpDefinition],epsConversions=[epsToJpgDefinition,epsToPdfDefinition,epsToPngDefinition,epsToTiffDefinition,epsToWebpDefinition],epubConversions=[epubToJpgDefinition,epubToPdfDefinition,epubToPngDefinition,epubToTiffDefinition,epubToWebpDefinition],gifConversions=[gifToJpgDefinition,gifToPdfDefinition,gifToPngDefinition,gifToPnmDefinition,gifToTiffDefinition,gifToWebpDefinition],heicConversions=[heicToJpgDefinition,heicToJxlDefinition,heicToPdfDefinition,heicToPngDefinition,heicToPnmDefinition,heicToTiffDefinition,heicToWebpDefinition],icoConversions=[icoToJpgDefinition,icoToPdfDefinition,icoToPngDefinition,icoToPnmDefinition,icoToTiffDefinition,icoToWebpDefinition],jpgConversions=[jpgToGifDefinition,jpgToJxlDefinition,jpgToPdfDefinition,jpgToPngDefinition,jpgToPnmDefinition,jpgToTiffDefinition,jpgToWebpDefinition],keyConversions=[keyToJpgDefinition,keyToPdfDefinition,keyToPngDefinition,keyToPptxDefinition,keyToTiffDefinition],mdConversions=[mdToHtmlDefinition,mdToPdfDefinition],mobiConversions=[mobiToJpgDefinition,mobiToPdfDefinition,mobiToPngDefinition,mobiToTiffDefinition,mobiToWebpDefinition],numbersConversions=[numbersToCsvDefinition,numbersToJpgDefinition,numbersToPdfDefinition,numbersToPngDefinition,numbersToXlsxDefinition],odcConversions=[odcToJpgDefinition,odcToPdfDefinition,odcToPngDefinition,odcToTiffDefinition,odcToWebpDefinition],odgConversions=[odgToPdfDefinition],odpConversions=[odpToPdfDefinition],odsConversions=[odsToPdfDefinition],odtC
1onversions=[odtToDocDefinition,odtToDocxDefinition,odtToPdfDefinition,odtToRtfDefinition,odtToTxtDefinition,odtToXmlDefinition,odtToXpsDefinition],pagesConversions=[pagesToDocxDefinition,pagesToEpubDefinition,pagesToJpgDefinition,pagesToPdfDefinition,pagesToPngDefinition,pagesToTxtDefinition],pdfConversions=[pdfToCsvDefinition,pdfToDocxDefinition,pdfToHtmlDefinition,pdfToJpgDefinition,pdfToPdfDefinition,pdfToPdfaDefinition,pdfToPngDefinition,pdfToPptxDefinition,pdfToTiffDefinition,pdfToTiffFaxDefinition,pdfToTxtDefinition,pdfToWebpDefinition,pdfToXlsxDefinition],pngConversions=[pngToGifDefinition,pngToJpgDefinition,pngToPdfDefinition,pngToPnmDefinition,pngToTiffDefinition,pngToWebpDefinition],potxConversions=[potxToJpgDefinition,potxToPdfDefinition,potxToPngDefinition,potxToPptxDefinition,potxToTiffDefinition,potxToWebpDefinition],ppsxConversions=[ppsxToJpgDefinition,ppsxToPdfDefinition,ppsxToPngDefinition,ppsxToPptxDefinition,ppsxToTiffDefinition,ppsxToWebpDefinition],pptConversions=[pptToJpgDefinition,pptToPdfDefinition,pptToPngDefinition,pptToPptxDefinition,pptToTiffDefinition,pptToWebpDefinition],pptxConversions=[pptxToJpgDefinition,pptxToKeyDefinition,pptxToPdfDefinition,pptxToPngDefinition,pptxToPptxDefinition,pptxToTiffDefinition,pptxToWebpDefinition],psdConversions=[psdToJpgDefinition,psdToPngDefinition,psdToPnmDefinition,psdToTiffDefinition,psdToWebpDefinition],pubConversions=[pubToJpgDefinition,pubToPdfDefinition,pubToPngDefinition,pubToTiffDefinition],rtfConversions=[rtfToHtmlDefinition,rtfToJpgDefinition,rtfToPdfDefinition,rtfToPngDefinition,rtfToTxtDefinition],svgConversions=[svgToJpgDefinition,svgToPngDefinition,svgToPnmDefinition,svgToTiffDefinition,svgToWebpDefinition],tiffConversions=[tiffToJpgDefinition,tiffToPdfDefinition,tiffToPngDefinition,tiffToPnmDefinition,tiffToWebpDefinition],vsdConversions=[vsdToJpgDefinition,vsdToPdfDefinition,vsdToPngDefinition,vsdToTiffDefinition],vsdxConversions=[vsdxToJpgDefinition,vsdxToPdfDefinition,vsdxToPngDefinition,vsdxToTiffDefinition],webpConversions=[webpToGifDefinition,webpToJpgDefinition,webpToPdfDefinition,webpToPngDefinition,webpToPnmDefinition,webpToTiffDefinition],xlsConversions=[xlsToCsvDefinition,xlsToJpgDefinition,xlsToNumbersDefinition,xlsToPdfDefinition,xlsToPngDefinition,xlsToTiffDefinition,xlsToWebpDefinition,xlsToXlsDefinition,xlsToXlsxDefinition],xlsxConversions=[xlsxToCsvDefinition,xlsxToJpgDefinition,xlsxToNumbersDefinition,xlsxToPdfDefinition,xlsxToPngDefinition,xlsxToTiffDefinition,xlsxToWebpDefinition,xlsxToXlsDefinition,xlsxToXlsxDefinition],xltxConversions=[xltxToCsvDefinition,xltxToJpgDefinition,xltxToPdfDefinition,xltxToPngDefinition,xltxToTiffDefinition,xltxToWebpDefinition,xltxToXlsDefinition,xltxToXlsxDefinition],conversionByMediaTypeMap={"application/postscript":aiConversions,"image/bmp":bmpConversions,"image/x-bmp":bmpConversions,"image/x-ms-bmp":bmpConversions,"text/csv":csvConversions,"image/vnd.djvu":djvuConversions,"image/x-djvu":djvuConversions,"application/msword":docConversions,"application/vnd.openxmlformats-officedocument.wordprocessingml.document":docxConversions,"application/vnd.openxmlformats-officedocument.wordprocessingml.template":dotxConversions,"model/vnd-dwf":dwfConversions,"model/vnd.dwfx+xps":dwfxConversions,"image/vnd.dwg":dwgConversions,"application/acad":dwgConversions,"image/vnd.dxf":dxfConversions,"application/eps":epsConversions,"application/x-eps":epsConversions,"image/eps":epsConversions,"image/x-eps":epsConversions,"application/epub+zip":epubConversions,"image/gif":gifConversions,"image/heif":heicConversions,"image/heif-sequence":heicConversions,"image/heic":heicConversions,"image/heic-sequence":heicConversions,"image/avif":heicConversions,"image/x-icon":icoConversions,"image/jpeg":jpgConversions,"application/vnd.apple.keynote":keyConversions,"application/x-iwork-keynote-sffkey":keyConversions,"text/markdown":mdConversions,"application/x-mobi8-ebook":mobiConversions,"application/x-mobipocket-ebook":mobiConversions,"application/vnd.amazon.mobi8-ebook":mobiConversions,"application/vnd.apple.numbers":numbersConversions,"application/x-iwork-numbers-sffnumbers":numbersConversions,"application/vnd.oasis.opendocument.chart":odcConversions,"application/vnd.oasis.opendocument.graphics":odgConversions,"application/vnd.oasis.opendocument.presentation":odpConversions,"application/vnd.oasis.opendocument.spreadsheet":odsConversions,"application/vnd.oasis.opendocument.text":odtConversions,"application/vnd.apple.pages":pagesConversions,"application/x-iwork-pages-sffpages":pagesConversions,"application/pdf":pdfConversions,"image/png":pngConversions,"application/vnd.openxmlformats-officedocument.presentationml.template":potxConversions,"application/vnd.openxmlformats-officedocument.presentationml.slideshow":ppsxConversions,"application/vnd.ms-powerpoint":pptConversions,"application/vnd.openxmlformats-officedocument.presentationml.presentation":pptxConversions,"image/vnd.adobe.photoshop":psdConversions,"application/x-photoshop":psdConversions,"application/x-mspublisher":pubConversions,"text/rtf":rtfConversions,"text/richtext":rtfConversions,"application/rtf":rtfConversions,"image/svg+xml":svgConversions,"image/tiff":tiffConversions,"application/vnd.visio":vsdConversions,"application/vnd.ms-visio.drawing":vsdxConversions,"image/webp":webpConversions,"application/vnd.ms-excel":xlsConversions,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":xlsxConversions,"application/vnd.openxmlformats-officedocument.spreadsheetml.template":xltxConversions},PlatformActionOptionsFormFieldWithSchema=reactExports.memo(function({field:e,componentType:o,description:n,emptyValueLabel:a,enumMap:i,jsonSchema:s,jsonSchemaDefaultValue:l,label:r,required:u,type:d,contentItems:c,fieldSchema:p,defaultValues:m}){const b=reactExports.useMemo(()=>
1{if(!m)return null;const f=p.optional().safeParse(m[e]);return f.success?f.data:null},[m,e,p]),g=o;return jsxRuntimeExports.jsx(g,{jsonSchema:s,jsonSchemaDefaultValue:l,label:r,description:n,field:e,defaultValue:b,required:u,emptyValueLabel:a,enumMap:i,type:d,contentItems:c})}),CardStatusStatusEnum={Created:"CREATED"};function ChainInfoFromJSON(t){return ChainInfoFromJSONTyped(t)}function ChainInfoFromJSONTyped(t,e){return t==null?t:{chainId:t.chainId,lmwrContractAddress:t.lmwrContractAddress,buyCreditsContractAddress:t.buyCreditsContractAddress}}function ContractInfoResponseFromJSON(t){return ContractInfoResponseFromJSONTyped(t)}function ContractInfoResponseFromJSONTyped(t,e){return t==null?t:{chains:t.chains.map(ChainInfoFromJSON)}}const PaymentIntentStatusEnum={Confirmation:"requires_confirmation",Action:"requires_action",PaymentMethod:"requires_payment_method"};function LmwrInfoResponseFromJSON(t){return LmwrInfoResponseFromJSONTyped(t)}function LmwrInfoResponseFromJSONTyped(t,e){return t==null?t:{exchangeRateToUsdc:t.exchangeRateToUsdc,exchangeRateFromUsdc:t.exchangeRateFromUsdc,percentageChange24h:t.percentageChange24h,volume24h:t.volume24h,marketCap:t.marketCap}}function PriceChangeLineFromJSON(t){return PriceChangeLineFromJSONTyped(t)}function PriceChangeLineFromJSONTyped(t,e){return t==null?t:{currency:CryptoCurrencyFromJSON(t.currency),percentageChange24h:t.percentageChange24h==null?void 0:t.percentageChange24h}}function PriceChangeResponseFromJSON(t){return PriceChangeResponseFromJSONTyped(t)}function PriceChangeResponseFromJSONTyped(t,e){return t==null?t:{priceChanges:t.priceChanges==null?void 0:t.priceChanges.map(PriceChangeLineFromJSON)}}class ContractsApi extends BaseAPI$1{async getContractInfoRaw(e){const o={},n={};if(this.configuration&&this.configuration.accessToken){const i=this.configuration.accessToken,s=await i("jwt",[]);s&&(n.Authorization=`Bearer ${s}`)}const a=await this.request({path:"/contracts/info",method:"GET",headers:n,query:o},e);return new JSONApiResponse$1(a,i=>ContractInfoResponseFromJSON(i))}async getContractInfo(e){return await(await this.getContractInfoRaw(e)).value()}}class PaymentsApi extends BaseAPI$1{async getExchangeRatesRaw(e){const o={},n={};if(this.configuration&&this.configuration.accessToken){const i=this.configuration.accessToken,s=await i("jwt",[]);s&&(n.Authorization=`Bearer ${s}`)}const a=await this.request({path:"/payments/exchangerates",method:"GET",headers:n,query:o},e);return new JSONApiResponse$1(a)}async getExchangeRates(e){return await(await this.getExchangeRatesRaw(e)).value()}async getLmwrInfoRaw(e){const o={},n={};if(this.configuration&&this.configuration.accessToken){const i=this.configuration.accessToken,s=await i("jwt",[]);s&&(n.Authorization=`Bearer ${s}`)}const a=await this.request({path:"/payments/lmwr-info",method:"GET",headers:n,query:o},e);return new JSONApiResponse$1(a,i=>LmwrInfoResponseFromJSON(i))}async getLmwrInfo(e){return await(await this.getLmwrInfoRaw(e)).value()}async getPriceChangesRaw(e){const o={},n={};if(this.configuration&&this.configuration.accessToken){const i=this.configuration.accessToken,s=await i("jwt",[]);s&&(n.Authorization=`Bearer ${s}`)}const a=await this.request({path:"/payments/price-changes",method:"GET",headers:n,query:o},e);return new JSONApiResponse$1(a,i=>PriceChangeResponseFromJSON(i))}async getPriceChanges(e){return await(await this.getPriceChangesRaw(e)).value()}}const errorMap={disabled:new ApiResponseError("This action is temporarily disabled. Please try again later.","Action temporarily disabled"),forbidden:new ApiResponseError("You are not allowed to perform this action.","Action access denied"),invalid_action_params:new ApiResponseError("The options for this action are invalid.","Invalid action options"),parse_error:new ApiResponseError("The options for this action are invalid.","Action options can't be parsed"),credit_exceeded:new ApiResponseError("You don't have enough Credits to perform this action.","Not enough Credits")},impliesUpgradeErrors=["forbidden","credit_exceeded"],platformActionSubmissionTierError=new ApiResponseError("","forbidden"),platformActionSubmissionPaymentErrorMap={CREDITS:new ApiResponseError("","credit_exceeded")},translatePlatformActionSubmissionError=t=>{const{code:e}=t;return{original:t,translated:errorMap[e]||t,impliesUpgrade:impliesUpgradeErrors.includes(e)}},resolveProperties=(t,e)=>{var a,i;if(t.id!=="generic-convert-v1")return(a=t.inputJsonSchema)==null?void 0:a.properties;const{targetType:o}=e;return{...conversionDefinitionMap[o].inputJsonSchema.properties,...(i=t.inputJsonSchema)==null?void 0:i.properties}},serializePlatformActionOptions=async(t,e)=>{const o=getPlatformActionDefinition(t),n={},a=Object.entries(e),i=resolveProperties(o,e);if(!i)return n;for(let s=0;s<a.length;s++){const[l,r]=a[s],u=i[l];if(!u)continue;const{type:d,format:c}=u;let p=r;switch(d){case"string":{(c==="date"||c==="date-time")&&r instanceof Date?p=r.toISOString():(c==="byte"||c==="binary")&&r instanceof Blob?p=base64Encode(await r.arrayBuffer()):typeof r=="string"&&(p=r||null);break}}n[l]=p}return n},submitPlatformAction=async(t,e,o,n,a)=>{const i=getApi(ActionApi,a);return await wrapApiResponse(i.executeAction({actionId:t,executeActionRequest:{actionParams:await serializePlatformActionOptions(t,e),filesharingInfo:o,paymentType:n}}))},getPlatformActionCreditsPrice=async(id,pricingParams)=>{const{contentItems,options}=pricingParams,{pricingJsFunction}=getPlatformActionDefinition(id);try{const{totalPrice,individualPricing}=eval(`(() => { 2 const actionParams = ${JSON.stringify(await serializePlatformActionOptions(id,options))}; 3 const contentItems = ${JSON.stringify(contentItems)}; 4 5 return ${pricingJsFunction} 6 })()`);return{totalPrice:typeof totalPrice=="number"&&totalPrice||0,individualPricing:individualPricing&&typeof individualPricing=="object"?individualPricing:{}}}catch(t){return console.error(`PricingJsFunction error for id "${id}":`,t),{totalPrice:0,individualPricing:{}}}},createUsdcToLmwrExchangeRatesFetcher=(t=3e4)=>{let e=0;const{getOrCreate:o,invalidate:n,getResolvedValue:a}=createInvalidatablePromise();return{getUsdcToLmwrExchangeRate:i=>{const s=Date.now(),l=a();return(typeof l=="number"&&isNaN(l)||s-e>t)&&n(),o(async()=>{const r=getApi(PaymentsApi,{...i,async init(d,c){return{...c,credentials:"omit"}}});
6return e=s,await r.getExchangeRates().then(d=>d.LMWRUSDC||NaN).catch(()=>NaN)})}}},usdcToLmwrExchangeRateFetcher=createUsdcToLmwrExchangeRatesFetcher(),creditsToLmwr=(t,e)=>t*config.creditsToUsdcFactor*e,getPlatformActionLmwrPrice=async(t,e)=>{const{totalPrice:o,individualPricing:n}=t,a=await usdcToLmwrExchangeRateFetcher.getUsdcToLmwrExchangeRate(e);return{totalPrice:creditsToLmwr(o,a),individualPricing:Object.entries(n).reduce((i,[s,l])=>(i[s]=creditsToLmwr(l,a),i),{})}};var RELEASE_TRAIN="acacia",runtimeVersionToUrlVersion=function t(e){return e===3?"v3":e},ORIGIN="https://js.stripe.com",STRIPE_JS_URL="".concat(ORIGIN,"/").concat(RELEASE_TRAIN,"/stripe.js"),V3_URL_REGEX=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,STRIPE_JS_URL_REGEX=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,EXISTING_SCRIPT_MESSAGE="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",isStripeJSURL=function t(e){return V3_URL_REGEX.test(e)||STRIPE_JS_URL_REGEX.test(e)},findScript=function t(){for(var e=document.querySelectorAll('script[src^="'.concat(ORIGIN,'"]')),o=0;o<e.length;o++){var n=e[o];if(isStripeJSURL(n.src))return n}return null},injectScript=function t(e){var o="",n=document.createElement("script");n.src="".concat(STRIPE_JS_URL).concat(o);var a=document.head||document.body;if(!a)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return a.appendChild(n),n},registerWrapper=function t(e,o){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"6.1.0",startTime:o})},stripePromise$1=null,onErrorListener=null,onLoadListener=null,onError=function t(e){return function(o){e(new Error("Failed to load Stripe.js",{cause:o}))}},onLoad=function t(e,o){return function(){window.Stripe?e(window.Stripe):o(new Error("Stripe.js not available"))}},loadScript=function t(e){return stripePromise$1!==null?stripePromise$1:(stripePromise$1=new Promise(function(o,n){if(typeof window>"u"||typeof document>"u"){o(null);return}if(window.Stripe){o(window.Stripe);return}try{var a=findScript();if(!(a&&e)){if(!a)a=injectScript(e);else if(a&&onLoadListener!==null&&onErrorListener!==null){var i;a.removeEventListener("load",onLoadListener),a.removeEventListener("error",onErrorListener),(i=a.parentNode)===null||i===void 0||i.removeChild(a),a=injectScript(e)}}onLoadListener=onLoad(o,n),onErrorListener=onError(n),a.addEventListener("load",onLoadListener),a.addEventListener("error",onErrorListener)}catch(s){n(s);return}}),stripePromise$1.catch(function(o){return stripePromise$1=null,Promise.reject(o)}))},initStripe=function t(e,o,n){if(e===null)return null;var a=o[0],i=a.match(/^pk_test/),s=runtimeVersionToUrlVersion(e.version),l=RELEASE_TRAIN;i&&s!==l&&console.warn("Stripe.js@".concat(s," was loaded on the page, but @stripe/stripe-js@").concat("6.1.0"," expected Stripe.js@").concat(l,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var r=e.apply(void 0,o);return registerWrapper(r,n),r},stripePromise,loadCalled=!1,getStripePromise=function t(){return stripePromise||(stripePromise=loadScript(null).catch(function(e){return stripePromise=null,Promise.reject(e)}),stripePromise)};Promise.resolve().then(function(){return getStripePromise()}).catch(function(t){loadCalled||console.warn(t)});var loadStripe=function t(){for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];loadCalled=!0;var a=Date.now();return getStripePromise().then(function(i){return initStripe(i,o,a)})};const aiIcon="/build/assets/ai-gGZwlYRj.svg",downloadCloudIcon="/build/assets/download-cloud-DjIx5f_j.svg",lockIcon="/build/assets/lock-C0SfJO7X.svg",paymentCreditsIcon="/build/assets/payment-credits-icon-DUHVQd0Q.svg",pinIcon="/build/assets/pin-AEbEpwC3.svg",storageIcon="/build/assets/storage-2CG76Pti.svg",timerShieldIcon="/build/assets/timer-shield-BqqeQxSG.svg",uploadCloudIcon="/build/assets/upload-cloud-C-t_JfyR.svg",discontinuedTiers=[AccountSubscriptionTier.Advanced,AccountSubscriptionTier.LegacyPro,AccountSubscriptionTier.LegacyProPlus,AccountSubscriptionTier.BlueWillowSupporter,AccountSubscriptionTier.BlueWillowWillower,AccountSubscriptionTier.BlueWillowBlueAngel,AccountSubscriptionTier.BlueWillowSapphire,AccountSubscriptionTier.ApiBasic,AccountSubscriptionTier.ApiPro,AccountSubscriptionTier.ApiProPlus],getBucketSizeLimit=t=>getFileSize(config.accountSubscription[t].sharingBucketSizeLimitBytes,{minimumSignificantDigits:1,maximumSignificantDigits:1}),getAccountSizeLimit=t=>getFileSize(config.accountSubscription[t].accountSizeLimitBytes,{minimumSignificantDigits:1,maximumSignificantDigits:1}),getBucketExpiration=t=>
6config.accountSubscription[t].maxSharingBucketExpirationDays===-1?"never expire":`expire after ${getSharingBucketExpirationLabel(new Date(Date.now()+config.accountSubscription[t].maxSharingBucketExpirationDays*24*60*60*1e3),new Date,!0)}`,tiers={[AccountSubscriptionTier.Free]:{name:"Free Plan",description:"Share files once in a while",credits:0,features:[{icon:uploadCloudIcon,text:`Upload up to ${getBucketSizeLimit(AccountSubscriptionTier.Free)}`},{icon:storageIcon,text:`${getAccountSizeLimit(AccountSubscriptionTier.Free)} Storage`},{icon:timerShieldIcon,text:`Files ${getBucketExpiration(AccountSubscriptionTier.Free)}`},{icon:downloadCloudIcon,text:"Limited Downloads",tooltip:"There may be a limit on the number of times your files can be downloaded per day."},{icon:lockIcon,text:"Full Encryption"}]},[AccountSubscriptionTier.ProLight]:{name:"Pro Light",description:"Share files once in a while",credits:0,features:[{icon:uploadCloudIcon,text:`Upload up to ${getBucketSizeLimit(AccountSubscriptionTier.Pro)}`},{icon:storageIcon,text:`${getAccountSizeLimit(AccountSubscriptionTier.Pro)} Storage`},{icon:timerShieldIcon,text:`Files ${getBucketExpiration(AccountSubscriptionTier.Pro)}`},{icon:downloadCloudIcon,text:"No Download Limit",tooltip:"There is no limit for daily file downloads."},{icon:lockIcon,text:"Full Encryption"},{icon:pinIcon,text:`${config.accountSubscription[AccountSubscriptionTier.Pro].sharingBucketPinnedLimit} Pinned Uploads`,tooltip:"Pinned uploads always stay on top of your feed and never expire."}]},[AccountSubscriptionTier.Pro]:{name:"LimeWire Pro",credits:1e3,description:"Share & edit big files regularly",features:[{icon:uploadCloudIcon,text:`Upload up to ${getBucketSizeLimit(AccountSubscriptionTier.Pro)}`},{icon:storageIcon,text:`${getAccountSizeLimit(AccountSubscriptionTier.Pro)} Storage`},{icon:timerShieldIcon,text:`Files ${getBucketExpiration(AccountSubscriptionTier.Pro)}`},{icon:downloadCloudIcon,text:"No Download Limit",tooltip:"There is no limit for daily file downloads."},{icon:lockIcon,text:"Full Encryption"},{icon:pinIcon,text:`${config.accountSubscription[AccountSubscriptionTier.Pro].sharingBucketPinnedLimit} Pinned Uploads`,tooltip:"Pinned uploads always stay on top of your feed and never expire."},{icon:aiIcon,text:"File Editing Tools"},{icon:paymentCreditsIcon,text:`${new Intl.NumberFormat("en-US").format(1e3)} monthly credits`,tooltip:"Your credit balance renews every month and can be used for creating content with AI, editing and manipulating your files with AI, and other file manipulation tools on LimeWire."}]},[AccountSubscriptionTier.ProPlus]:{name:"LimeWire Pro+",credits:2500,description:"Share & store files without limits",features:[{icon:uploadCloudIcon,text:"No Upload Limit"},{icon:storageIcon,text:"Unlimited Storage"},{icon:timerShieldIcon,text:`Files ${getBucketExpiration(AccountSubscriptionTier.ProPlus)}`},{icon:downloadCloudIcon,text:"No Download Limit",tooltip:"There is no limit for daily file downloads."},{icon:lockIcon,text:"Full Encryption"},{icon:pinIcon,text:"Unlimited Pinned Uploads",tooltip:"Pinned uploads always stay on top of your feed and never expire."},{icon:aiIcon,text:"File Editing Tools"},{icon:paymentCreditsIcon,text:`${new Intl.NumberFormat("en-US").format(2500)} monthly credits`,tooltip:"Your credit balance renews every month and can be used for creating content with AI, editing and manipulating your files with AI, and other file manipulation tools on LimeWire."}]},[AccountSubscriptionTier.BlueWillowSupporter]:{name:"Blue Willow Supporter",description:"",credits:0,features:[]},[AccountSubscriptionTier.BlueWillowWillower]:{name:"Blue Willow Willower",description:"",credits:0,features:[]},[AccountSubscriptionTier.BlueWillowBlueAngel]:{name:"Blue Willow Blue Angel",description:"",credits:0,features:[]},[AccountSubscriptionTier.BlueWillowSapphire]:{name:"Blue Willow Sapphire",description:"",credits:0,features:[]},[AccountSubscriptionTier.Advanced]:{name:"Advanced Plan [Legacy]",description:"",credits:3750,features:[]},[AccountSubscriptionTier.LegacyPro]:{name:"Pro Plan [Legacy]",description:"",credits:5e3,features:[]},[AccountSubscriptionTier.LegacyProPlus]:{name:"Pro Plus Plan [Legacy]",description:"",credits:11250,features:[]},[AccountSubscriptionTier.ApiBasic]:{name:"API Basic Plan [Legacy]",description:"",credits:3750,features:[]},[AccountSubscriptionTier.ApiPro]:{name:"API Pro Plan [Legacy]",description:"",credits:7500,features:[]},[AccountSubscriptionTier.ApiProPlus]:{name:"API Pro Plus Plan [Legacy]",description:"",credits:37500,features:[]}},formatUsdc=(t=0,e={})=>formatCryptoCurrency(CryptoCurrency.Usdc,t/100,{includeName:!1,...e}),midnightUTC=new Date;midnightUTC.setUTCHours(24,0,0,0);const usePlan=()=>{var b;const{self:t}=useUser(),{accountSubscription:e}=t??{},o=(e==null?void 0:e.subscription.period)??PlatformSubscriptionPeriod.Month,n=(e==null?void 0:e.tier)??AccountSubscriptionTier.Free,a=!t||(e==null?void 0:e.subscription.purchasePriceUsdcCent)===0,i=[AccountSubscriptionTier.ProPlus,AccountSubscriptionTier.LegacyProPlus].includes(n),s=i&&o===PlatformSubscriptionPeriod.Year,l=(e==null?void 0:e.subscription.status)===PlatformSubscriptionStatusEnum.Trialing,{currentTermEnd:r=new Date}=(e==null?void 0:e.subscription)??{},u=(e==null?void 0:e.tierAfterCurrentTerm)??n,d=((b=e==null?void 0:e.subscription)==null?void 0:b.periodAfterCurrentTerm)??o,c=n!==u||o!==d||l,p=(e==null?void 0:e.nextCreditsForTrialingSubscription)??(e==null?void 0:e.nextCreditsForBasicLmwoSubscription)??(e==null?void 0:e.nextCreditsForYearlySubscription)??(e==null?void 0:e.subscription.currentTermEnd)??midnightUTC;return{comparePlan:reactExports.useCallback((g,f)=>{const y=g===n,x=g===u,C=tiers[g].credits>tiers[n].credits,T=!C&&!y,D=y&&f===o,v=x&&f===d,A=y&&o===PlatformSubscriptionPeriod.Month&&f===PlatformSubscriptionPeriod.Year,w=C||A;return{isCurrentPlan:D,isScheduledPlan:v,isPlanDowngrade:!w&&!D,isPlanUpgrade:w,isCurrentTier:y,isTierDowngrade:T,isTierUpgrade:C,isPeriodUpgrade:A}},[o,n,d,u]),creditsResetDate:p,currentPeriod:o,currentTermEnd:r,currentTier:n,formatUsdc,isChangeScheduled:c,isCurrentPlanFree:a,isCurrentPlanHighest:s,isCurrentTierHighest:i,isTrial:l,bucketSizeLimit:getFileSize(config.accountSubscription[n].sharingBucketSizeLimitBytes,{minimumSignificantDigits:1,maximumSignificantDigits:1,trailingZeroDisplay:"str
6ipIfInteger"})}},americanExpressIcon="/build/assets/amex-DktLVhp3.svg",dinersClubIcon="/build/assets/diners-DmcFxOaO.svg",discoverIcon="/build/assets/discover--4yrQIML.svg",mastercardIcon="/build/assets/mastercard-BJUujvTP.svg",visaIcon="/build/assets/visa-JIO9m6va.svg",addCreditCardIcon="/build/assets/add-credit-card-icon-zNEG_3vu.svg",removeCreditCardIcon="/build/assets/remove-credit-card-icon-QeSoCcDD.svg",creditCardIcon="/build/assets/credit-card-icon-C2sdfclO.svg";var propTypes={exports:{}},ReactPropTypesSecret_1,hasRequiredReactPropTypesSecret;function requireReactPropTypesSecret(){if(hasRequiredReactPropTypesSecret)return ReactPropTypesSecret_1;hasRequiredReactPropTypesSecret=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ReactPropTypesSecret_1=t,ReactPropTypesSecret_1}var factoryWithThrowingShims,hasRequiredFactoryWithThrowingShims;function requireFactoryWithThrowingShims(){if(hasRequiredFactoryWithThrowingShims)return factoryWithThrowingShims;hasRequiredFactoryWithThrowingShims=1;var t=requireReactPropTypesSecret();function e(){}function o(){}return o.resetWarningCache=e,factoryWithThrowingShims=function(){function n(s,l,r,u,d,c){if(c!==t){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}n.isRequired=n;function a(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:o,resetWarningCache:e};return i.PropTypes=i,i},factoryWithThrowingShims}var hasRequiredPropTypes;function requirePropTypes(){return hasRequiredPropTypes||(hasRequiredPropTypes=1,propTypes.exports=requireFactoryWithThrowingShims()()),propTypes.exports}var propTypesExports=requirePropTypes();const PropTypes=getDefaultExportFromCjs(propTypesExports);function ownKeys(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function _objectSpread2(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?ownKeys(Object(o),!0).forEach(function(n){_defineProperty(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function _typeof(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(e){return typeof e}:_typeof=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(t)}function _defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function _objectWithoutPropertiesLoose(t,e){if(t==null)return{};var o={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(o[a]=t[a]);return o}function _objectWithoutProperties(t,e){if(t==null)return{};var o=_objectWithoutPropertiesLoose(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _iterableToArrayLimit(t,e){var o=t&&(typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"]);if(o!=null){var n=[],a=!0,i=!1,s,l;try{for(o=o.call(t);!(a=(s=o.next()).done)&&(n.push(s.value),!(e&&n.length===e));a=!0);}catch(r){i=!0,l=r}finally{try{!a&&o.return!=null&&o.return()}finally{if(i)throw l}}return n}}function _unsupportedIterableToArray(t,e){if(t){if(typeof t=="string")return _arrayLikeToArray(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,e)}}function _arrayLikeToArray(t,e){(e==null||e>t.length)&&(e=t.length);for(var o=0,n=new Array(e);o<e;
6o++)n[o]=t[o];return n}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 7In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var useAttachEvent=function t(e,o,n){var a=!!n,i=React.useRef(n);React.useEffect(function(){i.current=n},[n]),React.useEffect(function(){if(!a||!e)return function(){};var s=function(){i.current&&i.current.apply(i,arguments)};return e.on(o,s),function(){e.off(o,s)}},[a,o,e,i])},usePrevious=function t(e){var o=React.useRef(e);return React.useEffect(function(){o.current=e},[e]),o.current},isUnknownObject=function t(e){return e!==null&&_typeof(e)==="object"},isPromise=function t(e){return isUnknownObject(e)&&typeof e.then=="function"},isStripe=function t(e){return isUnknownObject(e)&&typeof e.elements=="function"&&typeof e.createToken=="function"&&typeof e.createPaymentMethod=="function"&&typeof e.confirmCardPayment=="function"},PLAIN_OBJECT_STR="[object Object]",isEqual=function t(e,o){if(!isUnknownObject(e)||!isUnknownObject(o))return e===o;var n=Array.isArray(e),a=Array.isArray(o);if(n!==a)return!1;var i=Object.prototype.toString.call(e)===PLAIN_OBJECT_STR,s=Object.prototype.toString.call(o)===PLAIN_OBJECT_STR;if(i!==s)return!1;if(!i&&!n)return e===o;var l=Object.keys(e),r=Object.keys(o);if(l.length!==r.length)return!1;for(var u={},d=0;d<l.length;d+=1)u[l[d]]=!0;for(var c=0;c<r.length;c+=1)u[r[c]]=!0;var p=Object.keys(u);if(p.length!==l.length)return!1;var m=e,b=o,g=function(y){return t(m[y],b[y])};return p.every(g)},extractAllowedOptionsUpdates=function t(e,o,n){return isUnknownObject(e)?Object.keys(e).reduce(function(a,i){var s=!isUnknownObject(o)||!isEqual(e[i],o[i]);return n.includes(i)?(s&&console.warn("Unsupported prop change: options.".concat(i," is not a mutable property.")),a):s?_objectSpread2(_objectSpread2({},a||{}),{},_defineProperty({},i,e[i])):a},null):null},INVALID_STRIPE_ERROR$2="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",validateStripe=function t(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:INVALID_STRIPE_ERROR$2;if(e===null||isStripe(e))return e;throw new Error(o)},parseStripeProp=function t(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:INVALID_STRIPE_ERROR$2;if(isPromise(e))return{tag:"async",stripePromise:Promise.resolve(e).then(function(a){return validateStripe(a,o)})};var n=validateStripe(e,o);return n===null?{tag:"empty"}:{tag:"sync",stripe:n}},registerWithStripeJs=function t(e){!e||!e._registerWrapper||!e.registerAppInfo||(e._registerWrapper({name:"react-stripe-js",version:"3.10.0"}),e.registerAppInfo({name:"react-stripe-js",version:"3.10.0",url:"https://stripe.com/docs/stripe-js/react"}))},ElementsContext=React.createContext(null);ElementsContext.displayName="ElementsContext";var parseElementsContext=function t(e,o){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(o," in an <Elements> provider."));return e},Elements=function t(e){var o=e.stripe,n=e.options,a=e.children,i=React.useMemo(function(){return parseStripeProp(o)},[o]),s=React.useState(function(){return{stripe:i.tag==="sync"?i.stripe:null,elements:i.tag==="sync"?i.stripe.elements(n):null}}),l=_slicedToArray(s,2),r=l[0],u=l[1];React.useEffect(function(){var p=!0,m=function(g){u(function(f){return f.stripe?f:{stripe:g,elements:g.elements(n)}})};return i.tag==="async"&&!r.stripe?i.stripePromise.then(function(b){b&&p&&m(b)}):i.tag==="sync"&&!r.stripe&&m(i.stripe),function(){p=!1}},[i,r,n]);var d=usePrevious(o);React.useEffect(function(){d!==null&&d!==o&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[d,o]);var c=usePrevious(n);return React.useEffect(function(){if(r.elements){var p=extractAllowedOptionsUpdates(n,c,["clientSecret","fonts"]);p&&r.elements.update(p)}},[n,c,r.elements]),React.useEffect(function(){registerWithStripeJs(r.stripe)},[r.stripe]),React.createElement(ElementsContext.Provider,{value:r},a)};Elements.propTypes={stripe:PropTypes.any,options:PropTypes.object};var useElementsContextWithUseCase=function t(e){var o=React.useContext(ElementsContext);return parseElementsContext(o,e)},useElements=function t(){var e=useElementsContextWithUseCase("calls useElements()"),o=e.elements;return o};PropTypes.func.isRequired;var CheckoutSdkContext=React.createContext(null);CheckoutSdkContext.displayName="CheckoutSdkContext";var parseCheckoutSdkContext=function t(e,o){if(!e)throw new Error("Could not find CheckoutProvider context; You need to wrap the part of your app that ".concat(o," in an <CheckoutProvider> provider."));return e},CheckoutContext=React.createContext(null);CheckoutContext.displayName="CheckoutContext";PropTypes.any,PropTypes.shape({fetchClientSecret:PropTypes.func.isRequired,elementsOptions:PropTypes.object}).isRequired;var useElementsOrCheckoutSdkContextWithUseCase=function t(e){var o=React.useContext(CheckoutSdkContext),n=React.useContext(ElementsContext);if(o&&n)throw new Error("You cannot wrap the part of your app that ".concat(e," in both <CheckoutProvider> and <Elements> providers."));return o?parseCheckoutSdkContext(o,e):parseElementsContext(n,e)},_excluded=["mode"],capitalized=function t(e){return e.charAt(0).toUpperCase()+e.slice(1)},createElementComponent=function t(e,o){var n="".concat(capitalized(e),"Element"),a=function(r){var u=r.id,d=r.className,c=r.options,p=c===void 0?{}:c,m=r.onBlur,b=r.onFocus,g=r.onReady,f=r.onChange,y=r.onEscape,x=r.onClick,C=r.onLoadError,T=r.onLoaderStart,D=r.onNetworksChange,v=r.onConfirm,A=r.onCancel,w=r.onShippingAddressChange,j=r.onShippingRateChange,O=r.onSavedPaymentMethodRemove,z=r.onSavedPaymentMethodUpdate,E=useElementsOrCheckoutSdkContextWithUseCase("mounts <".concat(n,">")),R="elements"in E?E.elements:null,I="checkoutSdk"in E?E.checkoutSdk:null,B=React.useState(null),M=_slicedToArray(B,2),S=M[0],q=M[1],F=React.useRef(null),k=React.useRef(null);
7useAttachEvent(S,"blur",m),useAttachEvent(S,"focus",b),useAttachEvent(S,"escape",y),useAttachEvent(S,"click",x),useAttachEvent(S,"loaderror",C),useAttachEvent(S,"loaderstart",T),useAttachEvent(S,"networkschange",D),useAttachEvent(S,"confirm",v),useAttachEvent(S,"cancel",A),useAttachEvent(S,"shippingaddresschange",w),useAttachEvent(S,"shippingratechange",j),useAttachEvent(S,"savedpaymentmethodremove",O),useAttachEvent(S,"savedpaymentmethodupdate",z),useAttachEvent(S,"change",f);var P;g&&(e==="expressCheckout"?P=g:P=function(){g(S)}),useAttachEvent(S,"ready",P),React.useLayoutEffect(function(){if(F.current===null&&k.current!==null&&(R||I)){var h=null;if(I)switch(e){case"payment":h=I.createPaymentElement(p);break;case"address":if("mode"in p){var J=p.mode,L=_objectWithoutProperties(p,_excluded);if(J==="shipping")h=I.createShippingAddressElement(L);else if(J==="billing")h=I.createBillingAddressElement(L);else throw new Error("Invalid options.mode. mode must be 'billing' or 'shipping'.")}else throw new Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");break;case"expressCheckout":h=I.createExpressCheckoutElement(p);break;case"currencySelector":h=I.createCurrencySelectorElement();break;case"taxId":h=I.createTaxIdElement(p);break;default:throw new Error("Invalid Element type ".concat(n,". You must use either the <PaymentElement />, <AddressElement options={{mode: 'shipping'}} />, <AddressElement options={{mode: 'billing'}} />, or <ExpressCheckoutElement />."))}else R&&(h=R.create(e,p));F.current=h,q(h),h&&h.mount(k.current)}},[R,I,p]);var G=usePrevious(p);return React.useEffect(function(){if(F.current){var h=extractAllowedOptionsUpdates(p,G,["paymentRequest"]);h&&"update"in F.current&&F.current.update(h)}},[p,G]),React.useLayoutEffect(function(){return function(){if(F.current&&typeof F.current.destroy=="function")try{F.current.destroy(),F.current=null}catch{}}},[]),React.createElement("div",{id:u,className:d,ref:k})},i=function(r){useElementsOrCheckoutSdkContextWithUseCase("mounts <".concat(n,">"));var u=r.id,d=r.className;return React.createElement("div",{id:u,className:d})},s=o?i:a;return s.propTypes={id:PropTypes.string,className:PropTypes.string,onChange:PropTypes.func,onBlur:PropTypes.func,onFocus:PropTypes.func,onReady:PropTypes.func,onEscape:PropTypes.func,onClick:PropTypes.func,onLoadError:PropTypes.func,onLoaderStart:PropTypes.func,onNetworksChange:PropTypes.func,onConfirm:PropTypes.func,onCancel:PropTypes.func,onShippingAddressChange:PropTypes.func,onShippingRateChange:PropTypes.func,onSavedPaymentMethodRemove:PropTypes.func,onSavedPaymentMethodUpdate:PropTypes.func,options:PropTypes.object},s.displayName=n,s.__elementType=e,s},isServer=typeof window>"u",EmbeddedCheckoutContext=React.createContext(null);EmbeddedCheckoutContext.displayName="EmbeddedCheckoutProviderContext";var useStripe=function t(){var e=useElementsOrCheckoutSdkContextWithUseCase("calls useStripe()"),o=e.stripe;return o};createElementComponent("auBankAccount",isServer);createElementComponent("card",isServer);createElementComponent("cardNumber",isServer);createElementComponent("cardExpiry",isServer);createElementComponent("cardCvc",isServer);createElementComponent("fpxBank",isServer);createElementComponent("iban",isServer);createElementComponent("idealBank",isServer);createElementComponent("p24Bank",isServer);createElementComponent("epsBank",isServer);var PaymentElement=createElementComponent("payment",isServer);createElementComponent("expressCheckout",isServer);createElementComponent("currencySelector",isServer);createElementComponent("paymentRequestButton",isServer);createElementComponent("linkAuthentication",isServer);createElementComponent("address",isServer);createElementComponent("shippingAddress",isServer);createElementComponent("paymentMethodMessaging",isServer);createElementComponent("affirmMessage",isServer);createElementComponent("afterpayClearpayMessage",isServer);createElementComponent("taxId",isServer);const defaultMaxDuration=3e4,defaultPollDelay=2e3,defaultRetryDelay=2e3,usePollFetcher=({onPoll:t,pollUrl:e,delay:o,stopRetrying:n=()=>!1,retries:a,maxDuration:i,onResult:s,onAbort:l})=>{const{load:r,state:u,data:d}=useFetcher(),[c,p]=reactExports.useState(!1),[m,b]=reactExports.useState(void 0),[g,f]=useStateRef(),[y,x]=useStateRef(),[C,T]=useStateRef(0),[D,v]=useStateRef(0),[A,w]=useStateRef(null),j=useCallbackRef(t),O=useCallbackRef(n),z=useCallbackRef(s),E=useCallbackRef(l),R=useCallbackRef(()=>a||[]),I=useCallbackRef(()=>(typeof o=="function"?o(C()):o)||defaultPollDelay),B=useCallbackRef(()=>R()[D()]||defaultRetryDelay),M=useCallbackRef(()=>{clearTimeout(g()),clearTimeout(y()),f(void 0),x(void 0),w(null),T(0),v(0),p(!1),b(void 0)}),S=useCallbackRef(k=>{M(),k&&k()}),q=useCallbackRef(()=>{M(),p(!0),w(e),x(setTimeout(()=>{S(()=>{E(),b(null)})},i||defaultMaxDuration)),r(e)}),F=useCallbackRef(()=>{S()});return reactExports.useEffect(()=>{const k=A();if(u==="idle"&&d&&k){const P=j(d),G=D(),h=J=>{clearTimeout(g()),J?(v(L=>L+1),f(setTimeout(()=>{r(k)},B()))):(T(L=>L+1),f(setTimeout(()=>{r(k)},I())))};if(!P){h();return}if(!P.success&&!O(P,G)&&G<R().length){h(!0);return}S(()=>{z(P),b(P)})}},[I,g,A,R,D,B,r,j,S,z,d,T,f,v,u,O]),reactExports.useEffect(()=>()=>M(),[M]),{startPolling:q,stopPolling:F,polling:c,result:m}},paymentPollFetcherOptions={maxDuration:6e4,retries:[5e3],delay:t=>t>4?1500:4500},usePollCardCreated=t=>{const[e,o]=reactExports.useState(""),{startPolling:n,polling:a,result:i}=usePollFetcher({...t,...paymentPollFetcherOptions,pollUrl:`/services/stripe/getCardStatus/${e}`,onPoll(s){const[l,r,u]=s;return l?r.status!==CardStatusStatusEnum.Created?null:{success:l,data:!0}
7:{success:l,error:u}}});return reactExports.useEffect(()=>{e&&n()},[n,e]),{startPolling:o,polling:a,result:i}},CardForm$1=({buttonLabel:t,buttons:e,onSuccess:o,onError:n})=>{const{setModalUndismissibleWhileLoading:a}=useModalContext(),i=useStripe(),s=useElements(),[l,r]=reactExports.useState(!1),u=reactExports.useCallback(()=>{n==null||n(createBackendError("Couldn't retrieve credit card status","500"))},[n]),d=reactExports.useCallback(b=>{b.success&&b.data&&(o==null||o()),b.success||n==null||n(b.error)},[o,n]),{startPolling:c,polling:p}=usePollCardCreated({onAbort:u,onResult:d}),m=async b=>{var y;if(b.preventDefault(),!i||!s)return;r(!0);const g=await i.confirmSetup({confirmParams:{return_url:"https://www.limewire.com"},elements:s,redirect:"if_required"});if(r(!1),g.error){n==null||n(g.error);return}if(!((y=g.setupIntent)!=null&&y.payment_method)){n==null||n(createBackendError("Stripe didn't return setupIntent payment_method ID","500"));return}const f=typeof g.setupIntent.payment_method=="string"?g.setupIntent.payment_method:g.setupIntent.payment_method.id;c(f)};return reactExports.useEffect(()=>(a(l||p),()=>a(!1)),[l,p,a]),jsxRuntimeExports.jsxs("form",{onSubmit:m,children:[jsxRuntimeExports.jsx(PaymentElement,{}),jsxRuntimeExports.jsxs(ModalNavigationButtons,{className:"mt-4",children:[jsxRuntimeExports.jsx(ButtonForwardedRef,{disabled:!i||!s,loading:l||p,type:"submit",children:t??"Add Card"}),!l&&!p&&e]})]})},AddCard=({buttonLabel:t,buttons:e,stripePromise:o,onError:n,onSuccess:a})=>{const i=useCallbackRef(n),s=useCallbackRef(a),{data:l,load:r,state:u}=useFetcher(),[,d,c]=l??[],{setupIntent:p}=d??{},{clientSecret:m}=p??{};return reactExports.useEffect(()=>{r("/services/stripe/addCard")},[r]),reactExports.useEffect(()=>{i==null||i(c||null)},[c,i]),u!=="idle"||!m?jsxRuntimeExports.jsx(LoadingArc,{className:"mx-auto my-24"}):jsxRuntimeExports.jsx(Elements,{options:{clientSecret:m},stripe:o,children:jsxRuntimeExports.jsx(CardForm$1,{buttonLabel:t,buttons:e,onError:i,onSuccess:s})})},AddCardModalContent=({stripePromise:t,onSuccess:e})=>{const[o,n]=reactExports.useState(null),[a,i]=reactExports.useState(!1);return jsxRuntimeExports.jsxs(ModalContentWindow,{header:jsxRuntimeExports.jsx(ModalContentWindowTitleHeader,{icon:addCreditCardIcon,children:"Add a new credit card"}),children:[a&&jsxRuntimeExports.jsx(Alert,{description:"Your new credit card has successfully been added to your account. This card will now be the primary credit card used for your subscription payments on LimeWire.",type:"success",children:"Successfully added"}),!a&&o&&jsxRuntimeExports.jsx(Alert,{className:"mb-6",description:o.message,type:"error",children:o.code}),!a&&jsxRuntimeExports.jsx(AddCard,{stripePromise:t,onError:n,onSuccess:()=>{i(!0),e==null||e()}})]})},useChangePricePreview=(t,e)=>{const{data:o,load:n,state:a}=useFetcher(),[,i,s]=o??[],{amountDueForChangeUsdCent:l,eligibleForLimeWireOriginalDiscount:r}=i??{},u=Number.isFinite(l)?formatUsdc(l):void 0;return reactExports.useEffect(()=>{n(`/services/account-subscription/getChangePreview/${t}/${e}`)},[n,e,t]),{amountDueForChangeUsdCent:l,amountDueForChangeFormatted:u,eligibleForLimeWireOriginalDiscount:r,errorChangePreview:s,loadingChangepreview:a!=="idle"}},usePlanPrice=t=>{const{eligibleForLimeWireOriginalDiscount:e}=useChangePricePreview(AccountSubscriptionTier.Pro,PlatformSubscriptionPeriod.Month),{data:o,load:n,state:a}=useFetcher(),i=t??o;reactExports.useEffect(()=>{t||n("/services/account-subscription/getPrices")},[n,t]);const s=reactExports.useCallback((l,r)=>{var m;const u=e&&l===AccountSubscriptionTier.Free,d=l===AccountSubscriptionTier.Pro&&r===PlatformSubscriptionPeriod.Month&&!!e,c=u?void 0:d?0:(m=i==null?void 0:i[l])==null?void 0:m[r],p=Number.isFinite(c)?formatUsdc(c):void 0;return{isDiscountedByLWO:d,priceFormatted:p,priceUsdCent:c}},[e,i]);return{formatUsdc,getPrice:s,loading:a!=="idle",planPrices:i}},usePollSubscriptionChanged=(t,e,o)=>{const{startPolling:n,polling:a,result:i}=usePollFetcher({...o,...paymentPollFetcherOptions,pollUrl:`/services/account-subscription/getTierPeriodStatus/${t}/${e}`,onPoll(s){const[l,r,u]=s;return l?r.inTierAndPeriodOrScheduled?{success:l,data:!0}
7:null:{success:l,error:u}}});return{startPollingChanged:n,pollingChanged:a,result:i}};function useConfirmPayment({onError:t,onSuccess:e,stripePromise:o}){const n=useCallbackRef(t),a=useCallbackRef(e),[i,s]=reactExports.useState(!1),l=reactExports.useCallback(async({clientSecret:r,status:u})=>{const d=await o;if(!d||!r)return;s(!0);const c=u===PaymentIntentStatusEnum.Action?await d.handleNextAction({clientSecret:r}):await d.confirmPayment({clientSecret:r,confirmParams:{return_url:"https://www.limewire.com"},redirect:"if_required"});s(!1),c.error?(console.error("Stripe confirmPayment/handleNextAction",c.error),n(createBackendError(c.error.message??c.error.type,c.error.code??c.error.decline_code??"500"))):a()},[n,a,o]);return{confirmLoading:i,confirmPayment:l}}const getCreditCardDigits=t=>`**** **** **** ${t}`,getCreditCardExpiryDate=(t,e)=>`${String(t).padStart(2,"0")}/${String(e).slice(-2).padStart(2,"0")}`,creditCardMapping$1={AMEX:americanExpressIcon,DINERS:dinersClubIcon,DISCOVER:discoverIcon,MASTERCARD:mastercardIcon,VISA:visaIcon,UNKNOWN:null}
7,getCreditCardIcon=t=>creditCardMapping$1[t]||null,creditCardMapping={AMEX:"American Express",DINERS:"Diners Club",DISCOVER:"Discover",MASTERCARD:"Mastercard",VISA:"Visa",UNKNOWN:null},getCreditCardName=t=>creditCardMapping[t]||null,SelectCreditCardRadioGroup=({paymentInstruments:t,primaryInstrumentId:e,onInstrumentChange:o})=>{const n=t.find(({id:s})=>s===e),a=t.filter(s=>s!==n),i=[n,...a];return jsxRuntimeExports.jsx(finalFormValidation.RadioGroup,{name:"creditCardId",defaultValue:e,onValueChange:s=>{s&&o&&o(s)},children:jsxRuntimeExports.jsx("ul",{className:"flex flex-col gap-y-3",tabIndex:-1,children:i.map(s=>{if(!s)return null;const{scheme:l,last4:r,expiryMonth:u,expiryYear:d,id:c}=s,p=getCreditCardIcon(l),m=getCreditCardName(l);return jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsx(ToggleButtonForwardedRef,{value:c,className:"text-left",children:jsxRuntimeExports.jsxs("div",{className:"flex gap-x-3 items-center",children:[p&&jsxRuntimeExports.jsx(Icon,{url:p,className:"w-8 h-6 xs:w-10 xs:h-7",monochrome:!1}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("p",{className:"type-d-75-medium text-slate-700",children:[jsxRuntimeExports.jsx("span",{className:"whitespace-nowrap",children:getCreditCardDigits(r)}),m&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[":",jsxRuntimeExports.jsx("wbr",{})," ",jsxRuntimeExports.jsx("span",{children:m})]})]}),jsxRuntimeExports.jsxs("p",{className:"type-d-50 text-slate-500",children:["Expiry ",getCreditCardExpiryDate(u,d)]})]})]})})},c)})})})},selectCardSchema=objectType({creditCardId:stringType({required_error:"Please select one of the listed Credit Cards."})}),SelectCard=({buttons:t,onEmpty:e,onError:o,onSelect:n})=>{const a=useCallbackRef(e),i=useCallbackRef(o),{data:s,load:l,state:r}=useFetcher(),[u,d,c]=s??[],{cards:p,defaultCardId:m}=d||{},[b,g]=reactExports.useState();//! not set with `defaultCardId` 8return reactExports.useEffect(()=>{l("/services/stripe/getCards")},[l]),reactExports.useEffect(()=>{u&&!(p!=null&&p.length)&&(a==null||a())},[p,a,u]),reactExports.useEffect(()=>{c&&(i==null||i(c))},[c,i]),r!=="idle"||!p?jsxRuntimeExports.jsx(LoadingArc,{className:"mx-auto my-24"}):u&&!p.length?jsxRuntimeExports.jsx("h5",{className:"text-center",children:"No saved cards."}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(finalFormValidation,{schema:selectCardSchema,children:jsxRuntimeExports.jsx(SelectCreditCardRadioGroup,{paymentInstruments:p,primaryInstrumentId:m,onInstrumentChange:g})}),jsxRuntimeExports.jsxs(ModalNavigationButtons,{className:"mt-4",children:[jsxRuntimeExports.jsx(ButtonForwardedRef,{disabled:!b&&!m,onClick:()=>n(b||m),children:"Pay using the selected card"}),t]})]})},CardForm=({buttonLabel:t,buttons:e,onSuccess:o,onError:n})=>{const{setModalUndismissibleWhileLoading:a}=useModalContext(),i=useStripe(),s=useElements(),[l,r]=reactExports.useState(!1),u=async d=>{if(d.preventDefault(),!i||!s)return;r(!0);const c=await i.confirmPayment({confirmParams:{return_url:"https://www.limewire.com"},elements:s,redirect:"if_required"});r(!1),c.error?(console.error("Stripe confirmPayment/handleNextAction",c.error),n==null||n(createBackendError(c.error.message??c.error.type,c.error.code??c.error.decline_code??"500"))):o==null||o()};return reactExports.useEffect(()=>(a(l),()=>a(!1)),[l,a]),jsxRuntimeExports.jsxs("form",{onSubmit:u,children:[jsxRuntimeExports.jsx(PaymentElement,{}),jsxRuntimeExports.jsxs(ModalNavigationButtons,{className:"mt-4 overflow-hidden",children:[jsxRuntimeExports.jsx(ButtonForwardedRef,{disabled:!i||!s,loading:l,type:"submit",children:t??"Add Card and Pay"}),!l&&e]})]})},AddCardAndPay=({buttonLabel:t,buttons:e,clientSecret:o,stripePromise:n,onError:a,onSuccess:i})=>{const s=useCallbackRef(a),l=useCallbackRef(i);return jsxRuntimeExports.jsx(Elements,{options:{clientSecret:o},stripe:n,children:jsxRuntimeExports.jsx(CardForm,{buttonLabel:t,buttons:e,onError:s,onSuccess:l})})},ChangeSubscriptionModalContent=({period:t,planPricesPrefetched:e,stripePromise:o,tier:n,onSuccess:a})=>{const i=useCallbackRef(a),{setModalUndismissibleWhileLoading:s}=useModalContext(),l=useAuthenticityToken(),{comparePlan:r,currentTermEnd:u,isCurrentPlanFree:d}
8=usePlan(),{getPrice:c}=usePlanPrice(e),{isPlanDowngrade:p}=r(n,t),{isDiscountedByLWO:m,priceFormatted:b,priceUsdCent:g}=c(n,t),{amountDueForChangeUsdCent:f,amountDueForChangeFormatted:y,errorChangePreview:x,loadingChangepreview:C}=useChangePricePreview(n,t),[T,D]=reactExports.useState(!1),[v,A]=reactExports.useState(!1),[w,j]=reactExports.useState(null),[O,z]=reactExports.useState(!1),E=reactExports.useCallback(N=>{N.success&&N.data&&(z(!0),i()),!N.success&&N.error&&(console.error("PollSubscriptionChanged result",N.error),j(N.error))},[i]),R=reactExports.useCallback(()=>{j(createBackendError("Couldn't retrieve subscription change status","500"))},[]),{startPollingChanged:I,pollingChanged:B}=usePollSubscriptionChanged(n,t,{onAbort:R,onResult:E}),{confirmLoading:M,confirmPayment:S}=useConfirmPayment({onError:j,onSuccess:I,stripePromise:o}),{data:q,submit:F,state:k}=useFetcher(),[,P,G]=q??[],{paymentIntent:h,updateAccountSubscriptionAction:J}=P||{},L=reactExports.useCallback(N=>{const U=new FormData;N&&U.set("cardId",N),U.set("csrf",l),U.set("period",t),U.set("tier",n),F(U,{action:"/services/account-subscription/change",method:"POST"})},[l,t,n,F]);reactExports.useEffect(()=>{f===0&&L()},[f,L]),reactExports.useEffect(()=>{!(h!=null&&h.clientSecret)&&J&&J!==ChangeAccountSubscriptionResponseUpdateAccountSubscriptionActionEnum.UpgradingUserActionRequired&&I(),((h==null?void 0:h.status)===PaymentIntentStatusEnum$1.Action||(h==null?void 0:h.status)===PaymentIntentStatusEnum$1.Confirmation)&&S(h)},[S,h,I,J]);const K=x||G||w,W=C||k!=="idle"||M||B,Y=O?"Subscription changed":f===g?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Pay ",b||jsxRuntimeExports.jsx(LoadingArc,{className:"inline-block w-4 h-4"}),"/",t.toLowerCase(),m&&" (discounted by LimeWire Original)"]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Pay ",y||jsxRuntimeExports.jsx(LoadingArc,{className:"inline-block w-4 h-4"})," now, and starting ",jsxRuntimeExports.jsx(ClientOnly,{children:()=>format(u,"dd MMM yyyy")})," ",b||jsxRuntimeExports.jsx(LoadingArc,{className:"inline-block w-4 h-4"}),"/",t.toLowerCase(),m&&" (discounted by LimeWire Original)"]}),V=p?"Your account downgrade was successful. Your can still make use of your previous subscription until your next billing date.":"Your account upgrade was successful. You can now use your new subscription on LimeWire.",X=!v&&jsxRuntimeExports.jsx(ButtonForwardedRef,{disabled:W,theme:"white",onClick:()=>{d&&!T&&L(),j(null),D(N=>!N)},children:T?"Select Saved Card":"Add New Card"});return reactExports.useEffect(()=>(s(W),()=>s(!1)),[W,s]),jsxRuntimeExports.jsxs(ModalContentWindow,{header:jsxRuntimeExports.jsx(ModalContentWindowTitleHeader,{icon:creditCardIcon,children:Y}),children:[O&&jsxRuntimeExports.jsxs(Alert,{description:V,type:"success",children:["Successfully subscribed to ",tiers[n].name]}),!O&&W&&jsxRuntimeExports.jsx(LoadingArc,{className:"mx-auto my-24"}),!O&&!W&&K&&jsxRuntimeExports.jsx(Alert,{className:"mb-6",description:K.message,type:"error",children:K.code}),!O&&!W&&T&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(h==null?void 0:h.status)===PaymentIntentStatusEnum$1.PaymentMethod?jsxRuntimeExports.jsx(AddCardAndPay,{buttons:X,clientSecret:(h==null?void 0:h.clientSecret)??"",stripePromise:o,onError:j,onSuccess:I}):jsxRuntimeExports.jsx(AddCard,{buttonLabel:"Add Card and Pay",buttons:X,stripePromise:o,onError:j,onSuccess:L})}),!O&&!W&&!T&&jsxRuntimeExports.jsx(SelectCard,{buttons:X,onEmpty:()=>{D(!0),A(!0),d&&L()},onError:j,onSelect:L})]})},DeleteCardModalContent=({card:t,onError:e,onSuccess:o})=>{const n=useAuthenticityToken(),{setModalUndismissibleWhileLoading:a}=useModalContext(),i=useCallbackRef(e),s=useCallbackRef(o),{last4:l}=t,{data:r,state:u,submit:d}=useFetcher(),[c,,p]=r||[],m=u!=="idle",b=c&&!m&&jsxRuntimeExports.jsx(Alert,{description:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["The Credit Card with the number ",jsxRuntimeExports.jsxs("b",{children:['"',getCreditCardDigits(l),'"']})," was deleted."]}),type:"success",children:"Credit Card deleted successfully."});return reactExports.useEffect(()=>(a(m),()=>a(!1)),[m,a]),reactExports.useEffect(()=>{c&&s(),p&&i()},[c,s,p,i]),jsxRuntimeExports.jsx(ModalContentWindow,{header:jsxRuntimeExports.jsx(ModalContentWindowTitleHeader,{danger:!0,icon:removeCreditCardIcon,children:"Delete credit card"}),children:({closeModal:g})=>b||jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-y-4",children:[p&&jsxRuntimeExports.jsx(Alert,{description:p.message,type:"error",children:p.code}),jsxRuntimeExports.jsxs("p",{className:"type-d-75 text-slate-500",children:["Please confirm that you want to remove your Credit Card with the number"," ",jsxRuntimeExports.jsxs("b",{className:"text-slate-900",children:['"',getCredit
8CardDigits(l),'"']}),"."]}),jsxRuntimeExports.jsxs(ModalNavigationButtons,{className:"mt-4",children:[jsxRuntimeExports.jsx(ButtonForwardedRef,{loading:m,theme:"danger",onClick:()=>{const f=new FormData;f.set("cardId",t.id),f.set("csrf",n),d(f,{action:"/services/stripe/deleteCard",method:"post"})},children:"Confirm"}),jsxRuntimeExports.jsx(ButtonForwardedRef,{disabled:m,theme:"white",onClick:g,children:"Cancel"})]})]})})},DowngradeModalContent=({onConfirm:t})=>{const{currentTermEnd:e,isTrial:o}=usePlan();return jsxRuntimeExports.jsx(ModalContentWindow,{header:jsxRuntimeExports.jsx(ModalContentWindowTitleHeader,{danger:!0,icon:arrowDownIcon,children:"Downgrade subscription"}),children:({closeModal:n})=>jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-y-4",children:[jsxRuntimeExports.jsxs("p",{className:"type-d-75 text-slate-500",children:["Are you certain that you want to downgrade from your subscription? You'll lose access to all benefits of your current plan.",jsxRuntimeExports.jsx("br",{}),"The change will take place"," ",o?"immediately":jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["on ",jsxRuntimeExports.jsx(ClientOnly,{children:()=>format(e,"dd MMM yyyy, HH:mm")})]})]}),jsxRuntimeExports.jsxs(ModalNavigationButtons,{className:"mt-4",children:[jsxRuntimeExports.jsx(ButtonForwardedRef,{theme:"danger",onClick:t,children:"Confirm"}),jsxRuntimeExports.jsx(ButtonForwardedRef,{theme:"white",onClick:n,children:"Cancel"})]})]})})},payDueInvoicesIcon="/build/assets/pay-due-invoices-icon-QpPZQneI.svg",PayInvoiceModalContent=({invoice:t,stripePromise:e,onSuccess:o})=>{const n=useAuthenticityToken(),{setModalUndismissibleWhileLoading:a}=useModalContext(),i=useCallbackRef(o),[s,l]=reactExports.useState(!1),[r,u]=reactExports.useState(!1),[d,c]=reactExports.useState(null),[p,m]=reactExports.useState(!1),{data:b,submit:g,state:f}=useFetcher(),[y,x,C]=b??[],{paymentIntent:T}=x||{},{confirmLoading:D,confirmPayment:v}=useConfirmPayment({onError:c,onSuccess:()=>m(!0),stripePromise:e}),A=d||C,w=f!=="idle"||D,j=reactExports.useCallback(E=>{const R=new FormData;E&&R.set("cardId",E),R.set("csrf",n),R.set("invoiceId",t.id),g(R,{action:"/services/stripe/payInvoice",method:"POST"})},[n,t.id,g]);reactExports.useEffect(()=>{y&&!(T!=null&&T.clientSecret)?m(!0):((T==null?void 0:T.status)===PaymentIntentStatusEnum.Action||(T==null?void 0:T.status)===PaymentIntentStatusEnum.Confirmation)&&v(T)},[v,T,y]),reactExports.useEffect(()=>(a(w),()=>a(!1)),[w,a]),reactExports.useEffect(()=>{p&&(i==null||i())},[i,p]);const O=p?"Successfully paid":jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Pay ",formatUsdc(t.amountDue)]}),z=!r&&jsxRuntimeExports.jsx(ButtonForwardedRef,{disabled:w,theme:"white",onClick:()=>l(E=>!E),children:s?"Select Saved Card":"Add New Card"});return jsxRuntimeExports.jsxs(ModalContentWindow,{header:jsxRuntimeExports.jsx(ModalContentWindowTitleHeader,{icon:payDueInvoicesIcon,children:O}),children:[p&&jsxRuntimeExports.jsx(Alert,{description:"The invoice payment was successful. Your monthly credits will be reset.",type:"success",children:"Invoice paid"}),!p&&w&&jsxRuntimeExports.jsx(LoadingArc,{className:"mx-auto my-24"}),!p&&!w&&A&&jsxRuntimeExports.jsx(Alert,{className:"mb-6",description:A.message,type:"error",children:A.code}),!p&&!w&&s&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(T==null?void 0:T.status)===PaymentIntentStatusEnum.PaymentMethod?jsxRuntimeExports.jsx(AddCardAndPay,{buttons:z,clientSecret:(T==null?void 0:T.clientSecret)??"",stripePromise:e,onError:c,onSuccess:j}):jsxRuntimeExports.jsx(AddCard,{buttonLabel:"Add Card and Pay",buttons:z,stripePromise:e,onError:c,onSuccess:j})}),!p&&!w&&!s&&jsxRuntimeExports.jsx(SelectCard,{buttons:z,onEmpty:()=>{l(!0),u(!0)},onError:c,onSelect:j})]})},walletIcon="/build/assets/icon-wallet-DHSk9-Zg.svg",WalletActionInfoTable=({className:t,children:e})=>jsxRuntimeExports.jsx("ul",{className:cn("flex flex-col default:gap-y-1 default:py-2 default:px-3 bg-slate-100 rounded-md type-d-75 text-slate-600",t),children:e}),WalletActionInfoTableItem=({className:t,label:e,value:o})=>jsxRuntimeExports.jsxs("li",{className:cn("default:flex default:justify-between default:w-full default:flex-wrap items-start flex-col xs:flex-row",t),children:[e&&jsxRuntimeExports.jsx("span",{className:"flex-none xs:pr-1",children:e}),e&&o&&jsxRuntimeExports.jsx("span",{className:"flex-1 h-[1em] border-b-2 border-dotted border-slate-300 hidden xs:block"}),o&&jsxRuntimeExports.jsx("span",{className:"flex-none font-bold xs:pl-1",children:o})]}
8),TransactionDetails=({isNotEnoughBalance:t,networkName:e,walletAddress:o,balance:n,allowance:a})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(WalletActionInfoTable,{className:"w-full",children:[jsxRuntimeExports.jsx(WalletActionInfoTableItem,{label:"Wallet",value:o}),jsxRuntimeExports.jsx(WalletActionInfoTableItem,{label:"Network",value:e}),jsxRuntimeExports.jsx(WalletActionInfoTableItem,{label:"LMWR Balance",value:formatUnits(n,18)}),jsxRuntimeExports.jsx(WalletActionInfoTableItem,{label:"Allowance",value:formatUnits(a,18)})]}),t&&jsxRuntimeExports.jsx(Alert,{className:"mt-4",type:"warning",description:"Your wallet does not have enough LMWR. Please deposit some to your wallet or change the network",children:"Not enough LMWR"})]}),mapping={ACTION_REJECTED:{header:"Approval rejected",description:"You rejected the action within your wallet. If this was an accident try again."}},translateDescription=({code:t,shortMessage:e})=>{var o;return((o=mapping[t])==null?void 0:o.description)||e},translateHeader=({code:t})=>{var e;return((e=mapping[t])==null?void 0:e.header)||t},EthersAlert=({error:t})=>jsxRuntimeExports.jsx(Alert,{className:"w-full mt-4",type:"error",description:translateDescription(t),children:translateHeader(t)}),lmwrAbi=[{name:"balanceOf",type:"function",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{name:"allowance",type:"function",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{name:"approve",type:"function",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}],buyCreditsAbi=[{name:"buyLimeWireCredits",type:"function",stateMutability:"nonpayable",inputs:[{name:"amount",type:"uint256"},{name:"userId",type:"string"}],outputs:[]}],toWalletError=t=>t instanceof UserRejectedRequestError?{code:"ACTION_REJECTED",shortMessage:t.shortMessage}:t instanceof BaseError?{code:"UNKNOWN_ERROR",shortMessage:t.shortMessage}:{code:"UNKNOWN_ERROR",shortMessage:String(t)},stepDescription={"review-allowance":{header:"Approval required",description:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"To complete your purchase, you'll need to approve two steps in your wallet."}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("span",{children:"First, authorize a spending limit for the token â this lets our smart contract handle the payment. After that confirm the actual token transfer to buy your credits."})]})},"review-transfer":{header:"Approval required",description:"To complete your purchase, you'll need to approve the transfer of your funds using your wallet."},"allowance-approve":{header:"Check your wallet",description:"Go to your wallet and approve the spending limit for our smart contract."},"transfer-approve":{header:"Check your wallet",description:"Go to your wallet and approve the transfer of your tokens."},"waiting-for-blockchain":{header:"Waiting for blockchain",description:"We are waiting for your transaction to be confirmed by the blockchain. This can take a few moments."}},BuyCreditsProgress=({mapping:t,amountLmwr:e,credits:o,disabled:n,allowanceInitiallyRequired:a,walletAddress:i,onSuccess:s,setAllowance:l})=>{const[r,u]=reactExports.useState(a),{self:d}=useUser(),[c,p]=reactExports.useState(r?"review-allowance":"review-transfer"),[m,b]=reactExports.useState(null),g=reactExports.useCallback(async y=>{try{return await y()}catch(x){console.log("an error happened",x),b(toWalletError(x));return}},[]),f=reactExports.useCallback(async()=>{if(!d)return;const y=lazyWalletSingleton.value();if(!y)return;const x=await y.getWalletClient(),C=y.getPublicClient();if(!x||!C)return;if(b(null),r){p("allowance-approve");const D=await g(()=>x.writeContract({address:t.lmwrContractAddress,abi:lmwrAbi,functionName:"approve",args:[t.buyCreditsContractAddress,e]}));if(!D){p("review-allowance");return}p("waiting-for-blockchain"),await C.waitForTransactionReceipt({hash:D}),u(!1);const v=await C.readContract({address:t.lmwrContractAddress,abi:lmwrAbi,functionName:"allowance",args:[i,t.buyCreditsContractAddress]});l(v)}p("transfer-approve");const T=await g(()=>x.writeContract({address:t.buyCreditsContractAddress,abi:buyCreditsAbi,functionName:"buyLimeWireCredits",args:[e,d.userId]}));if(!T){p("review-transfer");return}p("waiting-for-blockchain"),await C.waitForTransactionReceipt({hash:T}),s()},[r,e,t,g,s,d,l,i]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[m&&jsxRuntimeExports.jsx(EthersAlert,{error:m}),!n&&jsxRuntimeExports.jsx(Alert,{className:"mt-4 w-full",description:stepDescription[c].description,children:stepDescription[c].header}),jsxRuntimeExports.jsx(ModalNavigationButtons,{className:"mt-4",children:jsxRuntimeExports.jsx(ButtonForwardedRef,{onClick:f,loading:!(c==="review-allowance"||c==="review-transfer"),disabled:n,children:`Buy ${o} Credits`})})]})},SuccessView=({credits:t})=>jsxRuntimeExports.jsx(Alert,{type:"success",description:`You successfully bought ${t} Credits, it might take a few minutes until the credits are transferred to your account.`,children:"Transaction successful"}),BuyCreditsLmwrModalContent=({amountLmwr:t,credits:e,context:o,allowance:n,setAllowance:a})=>{const i=o!==null&&o.lmwrBalance<parseUnits(t.toString(),18),s=n!==null&&n<parseUnits(t.toString(),18),[l,r]=reactExports.useState(!1);if(!(!o||n===null))return jsxRuntimeExports.jsxs(ModalContentWindow,{header:jsxRuntimeExports.jsxs(ModalContentWindowTitleHeader,{icon:walletIcon,children:["Buy ",e," Credits with"," ",formatCryptoCurrency("LMWR",t,{includeName:!1,maximumFractionDigits:2})," ","LMWR"]}),children:[l&&jsxRuntimeExports.jsx(SuccessView,{credits:e}),!l&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(TransactionDetail
8s,{isNotEnoughBalance:i,networkName:o.networkName,allowance:n,balance:o.lmwrBalance,walletAddress:o.walletAddress}),jsxRuntimeExports.jsx(BuyCreditsProgress,{allowanceInitiallyRequired:s,disabled:i,amountLmwr:parseUnits(t.toString(),18),credits:e,mapping:o.mapping,onSuccess:()=>r(!0),setAllowance:a,allowance:n,walletAddress:o.walletAddress})]})]})},getChainInfo=(t,e)=>e.chains.find(o=>o.chainId===t.toString(10)),BuyCreditsWithLmwrButton=({credits:t,exchangeRates:e})=>{const[o,n]=reactExports.useState(!1),[a,i]=reactExports.useState(null),[s,l]=reactExports.useState(null),[r,u]=reactExports.useState(null),[d,c]=reactExports.useState({isConnected:!1}),p=useApiContext(),m=useConst(getApi(ContractsApi,p.apiOptions)),{connect:b}=useExternalWallet(),g=reactExports.useMemo(()=>creditsToLmwr(t,1/e.exchangeRate),[t,e.exchangeRate]);return reactExports.useEffect(()=>{let f;return lazyWalletSingleton.getOrCreate().then(y=>{const x=y.getAccount();c({isConnected:x.isConnected,address:x.address,chain:x.chain}),f=y.watchAccount(C=>{c({isConnected:C.isConnected,address:C.address,chain:C.chain})})}),()=>{f==null||f()}},[]),reactExports.useEffect(()=>{const{isConnected:f,address:y,chain:x}=d;if(!f||!y||!x||!m)return;let C=!1;return u(null),(async()=>{const D=lazyWalletSingleton.value().getPublicClient(),v=await m.getContractInfo();if(C)return;const A=getChainInfo(x.id,v);if(!A){u(createBackendError(`Network with id ${x.id} is not supported. Please choose a different one.`,"Unsupported Blockchain"));return}const w={lmwrContractAddress:A.lmwrContractAddress,buyCreditsContractAddress:A.buyCreditsContractAddress},[j,O]=await Promise.all([D.readContract({address:w.lmwrContractAddress,abi:lmwrAbi,functionName:"allowance",args:[y,w.buyCreditsContractAddress]}),D.readContract({address:w.lmwrContractAddress,abi:lmwrAbi,functionName:"balanceOf",args:[y]})]);C||(i({walletAddress:y,lmwrBalance:O,mapping:w,networkName:x.name}),l(j))})().catch(T=>{C||u(isBackendError(T)?T:createBackendError(String(T),"Error"))}),()=>{C=!0}},[d,m]),jsxRuntimeExports.jsx(Modal,{content:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[r&&jsxRuntimeExports.jsx(ModalContentWindow,{header:jsxRuntimeExports.jsx(ModalContentWindowTitleHeader,{children:"Buy Credits with LMWR"}),children:jsxRuntimeExports.jsx(Alert,{type:"error",className:"w-full",description:r.message,children:r.code})}),!r&&jsxRuntimeExports.jsx(BuyCreditsLmwrModalContent,{amountLmwr:g,credits:t,context:a,allowance:s,setAllowance:l})]}),children:({openModal:f,open:y,closeModal:x})=>jsxRuntimeExports.jsxs(ButtonForwardedRef,{loading:o||!!y,size:"sm",className:"xs:min-w-48",onClick:async()=>{n(!0),await b()?f():x(),n(!1)},children:["BUY FOR"," ",formatCryptoCurrency("LMWR",g,{maximumFractionDigits:2})]})})},useCreditPrice=t=>{const{data:e,load:o,state:n}=useFetcher(),[,a,i]=e??[],l=(t??a??[]).sort((r,u)=>r.credits-u.credits);return reactExports.useEffect(()=>{t||o("/services/account-subscription/getCreditPrices")},[o,t]),{creditPrices:l,error:i,loading:n!=="idle"}},minCreditsPerImage=.5,minCreditsPerAudio=2.5,CreditSelect=({className:t,creditPrices:e,onSelectUsd:o})=>{const{creditPrices:n,error:a,loading:i}=useCreditPrice(e),{exchangeRates:s}=useLMWRContext(),{self:l}=useUser();if(l)return a?jsxRuntimeExports.jsx(Alert,{description:a.message,type:"error",children:a.code}):i?jsxRuntimeExports.jsx(LoadingArc,{className:"mx-auto my-72 sm:my-56"}):jsxRuntimeExports.jsx("ul",{className:t,children:n.map(({credits:r,priceUsdcCent:u})=>jsxRuntimeExports.jsxs("li",{className:"mb-3 last:mb-0 border border-slate-300 rounded-xl bg-white px-4 py-4 flex flex-col xs:flex-row xs:justify-between xs:items-center sm:py-3 gap-3",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-row items-center",children:[jsxRuntimeExports.jsx(Icon,{url:paymentCreditsIcon,className:"w-4 h-4"}),jsxRuntimeExports.jsxs("span",{className:"type-d-100-semibold mr-1",children:["Â ",r,"Â Credits"]}),jsxRuntimeExports.jsxs("span",{className:"type-d-100",children:["(",formatUsdc(u/r,{minimumFractionDigits:3,maximumFractionDigits:3}),"/Credit)"]})]}),jsxRuntimeExports.jsxs("div",{className:"mt-2 type-d-75 text-slate-600",children:["up to ð¼ ",Math.floor(r/minCreditsPerImage),"Â Images â§ ð"," ",Math.floor(r/minCreditsPerAudio),"Â Audios"]})]}),jsxRuntimeExports.jsxs("div",{className:"flex gap-1 justify-center flex-col sm:flex-row",children:[jsxRuntimeExports.jsxs(ButtonForwardedRef,{className:"xs:min-w-48 w-full",onClick:()=>o(u,r),size:"sm",theme:"white",children:["BUY FOR ",formatUsdc(u)]}),s&&jsxRuntimeExports.jsx(BuyCreditsWithLmwrButton,{credits:r,exchangeRates:s})]})]},r))})},PlanSelect=({newUser:t,period:e,planPrices:o,upgradesOnly:n,onSelect:a})=>{const{IntersectionElement:i,setElement:s,textOverflow:l}=useTextOverflow(),{IntersectionElement:r,setElement:u,textOverflow:d}=useTextOverflow(),{comparePlan:c,isChangeScheduled:p}
8=usePlan(),{getPrice:m,loading:b}=usePlanPrice(o),g=reactExports.useRef(null);return jsxRuntimeExports.jsxs("div",{className:"relative w-full",children:[jsxRuntimeExports.jsxs("ul",{className:"flex flex-row overflow-x-auto snap-x snap-mandatory pb-3 before:content-empty before:mr-auto after:content-empty after:ml-auto",ref:f=>{g.current=f,s(f),u(f)},children:[jsxRuntimeExports.jsx(i,{}),b?jsxRuntimeExports.jsx(LoadingArc,{className:"my-48 sm:my-56"}):Object.entries(tiers).filter(([f])=>!discontinuedTiers.includes(f)).map(([f,{name:y,description:x,features:C}])=>{const{isCurrentPlan:T,isScheduledPlan:D,isPlanDowngrade:v,isPlanUpgrade:A,isTierUpgrade:w,isPeriodUpgrade:j}=c(f,e),{isDiscountedByLWO:O,priceFormatted:z,priceUsdCent:E}=m(f,e);if(E===void 0||n&&!w&&!T&&!j)return null;const R=A?"primary":T?"tertiary":"danger",I=A?"UPGRADE NOW":v?"DOWNGRADE":p?"REACTIVATE NOW":t?"STAY ON FREE PLAN":"CURRENT PLAN";return jsxRuntimeExports.jsxs("li",{className:"grow shrink-0 basis-72 max-w-72 snap-center md:snap-start mr-4 last-of-type:mr-0 border border-slate-300 rounded-xl bg-white px-4 py-5 flex flex-col md:mr-6 md:px-5 md:py-6",children:[jsxRuntimeExports.jsxs("h1",{className:"text-slate-900 type-d-300-semibold md:type-d-400-semibold",children:[z,"/",e.toLowerCase()]}),O&&jsxRuntimeExports.jsx("h6",{className:"type-d-25 md:type-d-50",children:"(discounted by LimeWire Original)"}),jsxRuntimeExports.jsx("h2",{className:"mt-1 text-slate-900 type-d-200-semibold md:mt-2 md:type-d-300-semibold",children:y}),jsxRuntimeExports.jsx("div",{className:"mt-0.5 text-slate-600 type-d-50 md:type-d-75",children:x}),jsxRuntimeExports.jsx("ul",{className:"mt-3 mb-auto text-slate-600 type-d-75 flex flex-col md:mt-4 md:type-d-100",children:C.map(({icon:B,text:M,tooltip:S})=>jsxRuntimeExports.jsxs("li",{className:"flex items-center mb-2 last:mb-0 md:mb-3",children:[jsxRuntimeExports.jsx(Icon,{className:"w-5 h-5 mr-2 text-primary-900 md:w-6 md:h-6 md:mr-3",url:B}),jsxRuntimeExports.jsx(Tooltip,{content:S,children:({triggerProps:q})=>jsxRuntimeExports.jsx("span",{...q,children:M})})]},M))}),jsxRuntimeExports.jsx(ButtonForwardedRef,{className:"mt-3.5 md:mt-5",disabled:T&&(!p||n)&&!t||D&&p,theme:R,onClick:()=>a(f,e),children:I})]},f+e)}),jsxRuntimeExports.jsx(r,{})]}),l&&jsxRuntimeExports.jsx(IconButtonForwardedRef,{circular:!0,className:"absolute top-1/2 -translate-y-1/2 left-0",icon:chevronLeftIcon,label:"scroll left",theme:"white",onClick:()=>{var f;return(f=g.current)==null?void 0:f.scrollBy({left:-280,behavior:"smooth"})}}),d&&jsxRuntimeExports.jsx(IconButtonForwardedRef,{circular:!0,className:"absolute top-1/2 -translate-y-1/2 right-0",icon:chevronRightIcon,label:"scroll right",theme:"white",onClick:()=>{var f;return(f=g.current)==null?void 0:f.scrollBy({left:280,behavior:"smooth"})}})]})},billingPeriodLabels={[PlatformSubscriptionPeriod.Month]:"Monthly",[PlatformSubscriptionPeriod.Year]:"Annual (save 20%)",credits:"Buy Credits"},UpgradeSubscriptionModalContent=({alertContent:t,initialTab:e,newUser:o,onSelectCredits:n,onSelectTier:a})=>{const{creditPrices:i}=useCreditPrice(),{currentPeriod:s,isCurrentPlanHighest:l,isCurrentTierHighest:r}=usePlan(),{planPrices:u}=usePlanPrice(),{closeModal:d}=useModalContext(),[c,p]=reactExports.useState(e??(l?"credits":r?PlatformSubscriptionPeriod.Year:s??PlatformSubscriptionPeriod.Month)),m={...billingPeriodLabels};return s===PlatformSubscriptionPeriod.Year&&delete m[PlatformSubscriptionPeriod.Month],o&&delete m.credits,jsxRuntimeExports.jsx(ModalContentWindow,{header:jsxRuntimeExports.jsx(ModalContentWindowTitleHeader,{icon:arrowUpIcon,children:c==="credits"?"One-Time Credit Top-up":o?"Choose your Subscription":"Upgrade your Subscription"}),className:"sm:max-w-[59.5rem]",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col overflow-hidden h-full",children:[t&&jsxRuntimeExports.jsx(Alert,{className:"mb-6",children:t}),l?jsxRuntimeExports.jsx("p",{className:"mx-auto mb-4 2xl:mb-6 flex-none",children:"You already are subscribed to the highest available plan. You can top-up your credits, however."}):jsxRuntimeExports.jsx(SwitchSelect,{className:"mx-auto mb-4 2xl:mb-6 flex-none",options:m,value:c,onChange:p}),c==="credits"?jsxRuntimeExports.jsx(CreditSelect,{className:"overflow-y-auto -mr-3 pr-3",creditPrices:i,onSelectUsd:n,onBuyCreditsWithLmwrOpen:d}):jsxRuntimeExports.jsx(PlanSelect,{newUser:o,period:c,planPrices:u,upgradesOnly:!0,onSelect:a})]})})},usePollCreditsAdded=({onError:t,onSuccess:e})=>{const[o,n]=reactExports.useState(""),a=reactExports.useCallback(()=>{t==null||t(createBackendError("Couldn't retrieve credit card status","500"))},[t]),i=reactExports.useCallback(u=>{u.success&&u.data&&(e==null||e()),u.success||t==null||t(u.error)},[e,t]),{startPolling:s,polling:l,result:r}=usePollFetcher({onAbort:a,onResult:i,...paymentPollFetcherOptions,pollUrl:`/services/stripe/getCreditsStatus/${o}`,onPoll(u){const[d,c,p]=u;return d?c.created?{success:d,data:!0}:null:{success:d,error:p}}});return reactExports.useEffect(()=>{o&&s()},[s,o]),{startPolling:n,polling:l,result:r}},BuyCreditsModalContent=({amountUsdcCent:t,credits:e,stripePromise:o,onSuccess:n})=>{const a=useAuthenticityToken(),{setModalUndismissibleWhileLoading:i}=useModalContext(),s=useCallbackRef(n),[l,r]=reactExports.useState(!1),[u,d]=reactExports.useState(!1),[c,p]=reactExports.useState(null),[m,b]=reactExports.useState(!1),{data:g,submit:f,state:y}=useFetcher(),[x,C,T]=g??[],{creditId:D="",paymentIntent:v}=C||{},{startPolling:A,polling:w}=usePollCreditsAdded({onError:p,onSuccess:()=>{s==null||s(),b(!0)}}),{confirmLoading:j,confirmPayment:O}=useConfirmPayment({onError:p,onSuccess:()=>A(D),stripePromise:o}),z=reactExports.useCallback(M=>{const S=new FormData;S.set("amountUsdcCent",t.toString()),M&&S.set("cardId",M),S.set("csrf",a),f(S,{action:"/services/stripe/buyCredits",method:"POST"})},[t,a,f]);reactExports.useEffect(()=>{x&&!(v!=null&&v.clientSecret)?A(D):((v==null?void 0:v.status)===PaymentIntentStatusEnum.Action||(v==null?void 0:v.status)===PaymentIntentStatusEnum.Confirmation)&&O(v)},[O,D,v,A,x]);const E=c||T,R=y!=="idle"||j||w;reactExports.useEffect(()=>(i(R),()=>i(!1)),[R,i]);const I=m?"Successfully paid":jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Pay ",formatUsdc(t)," for ",e," credits"]}),B=!u&&jsxRuntimeExports.jsx(ButtonForwardedRef,{disabled:R,theme:"white",onClick:()=>{l||z(),r(M=>!M)},children:l?"Select Saved Card":"Add New Card"});return jsxRuntimeExports.jsxs(ModalContentWindow,{header:jsxRuntimeExports.jsx(ModalContentWindowTitleHeader,{icon:creditCardIcon,children:I}),children:[m&&jsxRuntimeExports.jsxs(Alert,{description:"The payment for credits was successful. You should see your balance updated shortly.",type:"success",children:[e," credits purchased
8successfully"]}),!m&&R&&jsxRuntimeExports.jsx(LoadingArc,{className:"mx-auto my-24"}),!m&&!R&&E&&jsxRuntimeExports.jsx(Alert,{className:"mb-6",description:E.message,type:"error",children:E.code}),!m&&!R&&l&&(v==null?void 0:v.clientSecret)&&jsxRuntimeExports.jsx(AddCardAndPay,{buttons:B,clientSecret:v.clientSecret,stripePromise:o,onError:p,onSuccess:()=>A(D)}),!m&&!R&&!l&&jsxRuntimeExports.jsx(SelectCard,{buttons:B,onEmpty:()=>{d(!0),r(!0),z()},onError:p,onSelect:z})]})},StripeModal=reactExports.forwardRef(function t({children:e,defaultAction:o,defaultAlertContent:n,planPricesPrefetched:a,onClosed:i},s){const{revalidate:l}=useRevalidator(),{comparePlan:r}=usePlan(),{data:u,load:d}=useFetcher(),c=reactExports.useMemo(()=>u?loadStripe(u):new Promise(()=>null),[u]),[p,m]=reactExports.useState(o??""),[b,g]=reactExports.useState(n),[f,y]=reactExports.useState(0),[x,C]=reactExports.useState(),[T,D]=reactExports.useState(0),[v,A]=reactExports.useState(),[w,j]=reactExports.useState(!1),[O,z]=reactExports.useState(),[E,R]=reactExports.useState(!1),[I,B]=reactExports.useState(PlatformSubscriptionPeriod.Month),[M,S]=reactExports.useState(AccountSubscriptionTier.Free),q=reactExports.useMemo(()=>{switch(p){case"addCard":return jsxRuntimeExports.jsx(AddCardModalContent,{stripePromise:c,onSuccess:l});case"buyCredits":return jsxRuntimeExports.jsx(BuyCreditsModalContent,{amountUsdcCent:f,credits:T,stripePromise:c,onSuccess:l});case"changeSubscription":{const{isPlanDowngrade:P}=r(M,I);return P&&!w?jsxRuntimeExports.jsx(DowngradeModalContent,{onConfirm:()=>j(!0)}):jsxRuntimeExports.jsx(ChangeSubscriptionModalContent,{period:I,planPricesPrefetched:a,stripePromise:c,tier:M,onSuccess:l})}case"deleteCard":return x&&jsxRuntimeExports.jsx(DeleteCardModalContent,{card:x});case"payInvoice":return v&&jsxRuntimeExports.jsx(PayInvoiceModalContent,{invoice:v,stripePromise:c,onSuccess:l});case"upgradeSubscription":return jsxRuntimeExports.jsx(UpgradeSubscriptionModalContent,{alertContent:b,initialTab:O,newUser:E,onSelectCredits:(P,G)=>{m("buyCredits"),y(P),D(G)},onSelectTier:(P,G)=>{var h;E&&P===AccountSubscriptionTier.Free?(h=F.current)==null||h.closeModal():(m("changeSubscription"),B(G),S(P))}});case"":return null;default:return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"Unknown action requested"})}},[p,b,f,x,r,T,O,v,w,E,I,a,l,c,M]),F=reactExports.useRef(null),k=reactExports.useMemo(()=>({addCard:()=>{var P;m("addCard"),(P=F.current)==null||P.openModal()},buyCredits:(P,G)=>{var h;m("buyCredits"),y(P),D(G),(h=F.current)==null||h.openModal()},changeAccountSubscription:(P,G)=>{var h;j(!1),m("changeSubscription"),B(G),S(P),(h=F.current)==null||h.openModal()},deleteCard:P=>{var G;m("deleteCard"),C(P),(G=F.current)==null||G.openModal()},payInvoice:P=>{var G;m("payInvoice"),A(P),(G=F.current)==null||G.openModal()},upgradeSubscription:({alertContent:P,initialTab:G,newUser:h=!1}={})=>{var J;m("upgradeSubscription"),g(P),z(G),R(h),(J=F.current)==null||J.openModal()}}),[]);return reactExports.useEffect(()=>{["addCard","buyCredits","changeSubscription","payInvoice"].includes(p)&&!u&&d("/services/stripe/getPublishableKey")},[p,d,u]),jsxRuntimeExports.jsx(AuthModal,{authViewContent:b&&jsxRuntimeExports.jsxs(Alert,{children:[b," Sign up for a LimeWire account or log in if you already have one."]}),content:q,ref:P=>{assignRef(F,P),P&&assignRef(s,{...P,...k})},onClosed:i,children:P=>resolveToNode(e,{...P,...k})})});export{docxToWebpOptionsSchema as $,djvuToPngOptionsSchema as A,djvuToTiffOptionsSchema as B,CreditSelect as C,djvuToWebpOptionsSchema as D,docToDocxOptionsSchema as E,docToHtmlOptionsSchema as F,docToJpgOptionsSchema as G,docToOdtOptionsSchema as H,docToPdfOptionsSchema as I,docToPngOptionsSchema as J,docToRtfOptionsSchema as K,docToTxtOptionsSchema as L,docToXmlOptionsSchema as M,docToXpsOptionsSchema as N,docxToDocOptionsSchema as O,PaymentTypeEnum as P,docxToHtmlOptionsSchema as Q,docxToJpgOptionsSchema as R,StripeModal as S,ToggleButtonForwardedRef as T,docxToOdtOptionsSchema as U,docxToPagesOptionsSchema as V,docxToPdfOptionsSchema as W,docxToPngOptionsSchema as X,docxToRtfOptionsSchema as Y,docxToTiffOptionsSchema as Z,docxToTxtOptionsSchema as _,PlanSelect as a,heicToWebpOptionsSchema as a$,docxToXmlOptionsSchema as a0,docxToXpsOptionsSchema as a1,dotxToDocOptionsSchema as a2,dotxToDocxOptionsSchema as a3,dotxToJpgOptionsSchema as a4,dotxToOdtOptionsSchema as a5,dotxToPdfOptionsSchema as a6,dotxToRtfOptionsSchema as a7,dotxToXmlOptionsSchema as a8,dotxToXpsOptionsSchema as a9,epubToPdfOptionsSchema as aA,epubToPngOptionsSchema as aB,epubToTiffOptionsSchema as aC,epubToWebpOptionsSchema as aD,formatUsdc as aE,getAllPlatformActionIds as aF,getCredit
8CardDigits as aG,getCreditCardIcon as aH,getPlatformActionCreditsPrice as aI,getPlatformActionDefinition as aJ,getPlatformActionIcon as aK,getPlatformActionLmwrPrice as aL,getPlatformActionOptionsDefaults as aM,getPlatformActionOptionsRequiredFields as aN,getPlatformActionOptionsSchema as aO,gifToJpgOptionsSchema as aP,gifToPdfOptionsSchema as aQ,gifToPngOptionsSchema as aR,gifToPnmOptionsSchema as aS,gifToTiffOptionsSchema as aT,gifToWebpOptionsSchema as aU,heicToJpgOptionsSchema as aV,heicToJxlOptionsSchema as aW,heicToPdfOptionsSchema as aX,heicToPngOptionsSchema as aY,heicToPnmOptionsSchema as aZ,heicToTiffOptionsSchema as a_,dwfToJpgOptionsSchema as aa,dwfToPdfOptionsSchema as ab,dwfToPngOptionsSchema as ac,dwfToTiffOptionsSchema as ad,dwfToWebpOptionsSchema as ae,dwfxToJpgOptionsSchema as af,dwfxToPdfOptionsSchema as ag,dwfxToPngOptionsSchema as ah,dwfxToTiffOptionsSchema as ai,dwfxToWebpOptionsSchema as aj,dwgToJpgOptionsSchema as ak,dwgToPdfOptionsSchema as al,dwgToPngOptionsSchema as am,dwgToTiffOptionsSchema as an,dwgToWebpOptionsSchema as ao,dxfToJpgOptionsSchema as ap,dxfToPdfOptionsSchema as aq,dxfToPngOptionsSchema as ar,dxfToTiffOptionsSchema as as,dxfToWebpOptionsSchema as at,epsToJpgOptionsSchema as au,epsToPdfOptionsSchema as av,epsToPngOptionsSchema as aw,epsToTiffOptionsSchema as ax,epsToWebpOptionsSchema as ay,epubToJpgOptionsSchema as az,PlatformActionOptionsFormContext as b,pdfToWebpOptionsSchema as b$,icoToJpgOptionsSchema as b0,icoToPdfOptionsSchema as b1,icoToPngOptionsSchema as b2,icoToPnmOptionsSchema as b3,icoToTiffOptionsSchema as b4,icoToWebpOptionsSchema as b5,jpgToGifOptionsSchema as b6,jpgToJxlOptionsSchema as b7,jpgToPdfOptionsSchema as b8,jpgToPngOptionsSchema as b9,odpToPdfOptionsSchema as bA,odsToPdfOptionsSchema as bB,odtToDocOptionsSchema as bC,odtToDocxOptionsSchema as bD,odtToPdfOptionsSchema as bE,odtToRtfOptionsSchema as bF,odtToTxtOptionsSchema as bG,odtToXmlOptionsSchema as bH,odtToXpsOptionsSchema as bI,pagesToDocxOptionsSchema as bJ,pagesToEpubOptionsSchema as bK,pagesToJpgOptionsSchema as bL,pagesToPdfOptionsSchema as bM,pagesToPngOptionsSchema as bN,pagesToTxtOptionsSchema as bO,paymentCreditsIcon as bP,pdfToCsvOptionsSchema as bQ,pdfToDocxOptionsSchema as bR,pdfToHtmlOptionsSchema as bS,pdfToJpgOptionsSchema as bT,pdfToPdfOptionsSchema as bU,pdfToPdfaOptionsSchema as bV,pdfToPngOptionsSchema as bW,pdfToPptxOptionsSchema as bX,pdfToTiffFaxOptionsSchema as bY,pdfToTiffOptionsSchema as bZ,pdfToTxtOptionsSchema as b_,jpgToPnmOptionsSchema as ba,jpgToTiffOptionsSchema as bb,jpgToWebpOptionsSchema as bc,keyToJpgOptionsSchema as bd,keyToPdfOptionsSchema as be,keyToPngOptionsSchema as bf,keyToPptxOptionsSchema as bg,keyToTiffOptionsSchema as bh,mdToHtmlOptionsSchema as bi,mdToPdfOptionsSchema as bj,mobiToJpgOptionsSchema as bk,mobiToPdfOptionsSchema as bl,mobiToPngOptionsSchema as bm,mobiToTiffOptionsSchema as bn,mobiToWebpOptionsSchema as bo,numbersToCsvOptionsSchema as bp,numbersToJpgOptionsSchema as bq,numbersToPdfOptionsSchema as br,numbersToPngOptionsSchema as bs,numbersToXlsxOptionsSchema as bt,odcToJpgOptionsSchema as bu,odcToPdfOptionsSchema as bv,odcToPngOptionsSchema as bw,odcToTiffOptionsSchema as bx,odcToWebpOptionsSchema as by,odgToPdfOptionsSchema as bz,PlatformActionOptionsFormField as c,usePlatformActionOptionsFormContext as c$,pdfToXlsxOptionsSchema as c0,platformActionSubmissionPaymentErrorMap as c1,platformActionSubmissionTierError as c2,pngToGifOptionsSchema as c3,pngToJpgOptionsSchema as c4,pngToPdfOptionsSchema as c5,pngToPnmOptionsSchema as c6,pngToTiffOptionsSchema as c7,pngToWebpOptionsSchema as c8,potxToJpgOptionsSchema as c9,psdToPnmOptionsSchema as cA,psdToTiffOptionsSchema as cB,psdToWebpOptionsSchema as cC,pubToJpgOptionsSchema as cD,pubToPdfOptionsSchema as cE,pubToPngOptionsSchema as cF,pubToTiffOptionsSchema as cG,removeCreditCardIcon as cH,rtfToHtmlOptionsSchema as cI,rtfToJpgOptionsSchema as cJ,rtfToPdfOptionsSchema as cK,rtfToPngOptionsSchema as cL,rtfToTxtOptionsSchema as cM,submitPlatformAction as cN,svgToJpgOptionsSchema as cO,svgToPngOptionsSchema as cP,svgToPnmOptionsSchema as cQ,svgToTiffOptionsSchema as cR,svgToWebpOptionsSchema as cS,tiers as cT,tiffToJpgOptionsSchema as cU,tiffToPdfOptionsSchema as cV,tiffToPngOptionsSchema as cW,tiffToPnmOptionsSchema as cX,tiffToWebpOptionsSchema as cY,translatePlatformActionSubmissionError as cZ,usePlan as c_,potxToPdfOptionsSchema as ca,potxToPngOptionsSchema as cb,potxToPptxOptionsSchema as cc,potxToTiffOptionsSchema as cd,potxToWebpOptionsSchema as ce,ppsxToJpgOptionsSchema as cf,ppsxToPdfOptionsSchema as cg,ppsxToPngOptionsSchema as ch,ppsxToPptxOptionsSchema as ci,ppsxToTiffOptionsSchema as cj,ppsxToWebpOptionsSchema as ck,pptToJpgOptionsSchema as cl,pptToPdfOptionsSchema as cm,pptToPngOptionsSchema as cn,pptToPptxOptionsSchema as co,pptToTiffOptionsSchema as cp,pptToWebpOptionsSchema as cq,pptxToJpgOptionsSchema as cr,pptxToKeyOptionsSchema as cs,pptxToPdfOptionsSchema as ct,pptxToPngOptionsSchema as cu,pptxToPptxOptionsSchema as cv,pptxToTiffOptionsSchema as cw,pptxToWebpOptionsSchema as cx,psdToJpgOptionsSchema as cy,psdToPngOptionsSchema as cz,PlatformActionOptionsFormFieldWithSchema as d,useTextOverflow as d0,vsdToJpgOptionsSchema as d1,vsdToPdfOptionsSchema as d2,vsdToPngOptionsSchema as d3,vsdToT
8iffOptionsSchema as d4,vsdxToJpgOptionsSchema as d5,vsdxToPdfOptionsSchema as d6,vsdxToPngOptionsSchema as d7,vsdxToTiffOptionsSchema as d8,webpToGifOptionsSchema as d9,xltxToPdfOptionsSchema as dA,xltxToPngOptionsSchema as dB,xltxToTiffOptionsSchema as dC,xltxToWebpOptionsSchema as dD,xltxToXlsOptionsSchema as dE,xltxToXlsxOptionsSchema as dF,webpToJpgOptionsSchema as da,webpToPdfOptionsSchema as db,webpToPngOptionsSchema as dc,webpToPnmOptionsSchema as dd,webpToTiffOptionsSchema as de,xlsToCsvOptionsSchema as df,xlsToJpgOptionsSchema as dg,xlsToNumbersOptionsSchema as dh,xlsToPdfOptionsSchema as di,xlsToPngOptionsSchema as dj,xlsToTiffOptionsSchema as dk,xlsToWebpOptionsSchema as dl,xlsToXlsOptionsSchema as dm,xlsToXlsxOptionsSchema as dn,xlsxToCsvOptionsSchema as dp,xlsxToJpgOptionsSchema as dq,xlsxToNumbersOptionsSchema as dr,xlsxToPdfOptionsSchema as ds,xlsxToPngOptionsSchema as dt,xlsxToTiffOptionsSchema as du,xlsxToWebpOptionsSchema as dv,xlsxToXlsOptionsSchema as dw,xlsxToXlsxOptionsSchema as dx,xltxToCsvOptionsSchema as dy,xltxToJpgOptionsSchema as dz,SwitchSelect as e,addCreditCardIcon as f,aiToJpgOptionsSchema as g,aiToPngOptionsSchema as h,aiToPnmOptionsSchema as i,aiToTiffOptionsSchema as j,aiToWebpOptionsSchema as k,bmpToJpgOptionsSchema as l,bmpToPdfOptionsSchema as m,bmpToPngOptionsSchema as n,bmpToPnmOptionsSchema as o,bmpToTiffOptionsSchema as p,bmpToWebpOptionsSchema as q,chevronLeftIcon as r,conversionByMediaTypeMap as s,conversionDefinitionMap as t,csvToNumbersOptionsSchema as u,csvToPdfOptionsSchema as v,csvToXlsOptionsSchema as w,csvToXlsxOptionsSchema as x,djvuToJpgOptionsSchema as y,djvuToPdfOptionsSchema as z}; 9!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e345af0c-1a29-5812-92b0-b7763dcaa065")}catch(e){}}() 10//# debugId=e345af0c-1a29-5812-92b0-b7763dcaa065 11//# sourceMappingURL=StripeModal-D2AU5nKM.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.