Changeset 3292597
- Timestamp:
- 05/13/2025 01:36:12 PM (9 months ago)
- Location:
- resize-control
- Files:
-
- 52 added
- 4 edited
-
tags/1.0.91 (added)
-
tags/1.0.91/Helpers.php (added)
-
tags/1.0.91/README.txt (added)
-
tags/1.0.91/admin (added)
-
tags/1.0.91/admin/assets (added)
-
tags/1.0.91/admin/assets/check.svg (added)
-
tags/1.0.91/admin/assets/chevron.svg (added)
-
tags/1.0.91/admin/assets/greencheck.svg (added)
-
tags/1.0.91/admin/assets/grid.svg (added)
-
tags/1.0.91/admin/assets/gridactive.svg (added)
-
tags/1.0.91/admin/assets/leftright.svg (added)
-
tags/1.0.91/admin/assets/lock.svg (added)
-
tags/1.0.91/admin/assets/logo.svg (added)
-
tags/1.0.91/admin/assets/settings.svg (added)
-
tags/1.0.91/admin/assets/settingsactive.svg (added)
-
tags/1.0.91/admin/assets/topbottom.svg (added)
-
tags/1.0.91/admin/assets/wizard.svg (added)
-
tags/1.0.91/admin/css (added)
-
tags/1.0.91/admin/css/reco-style.css (added)
-
tags/1.0.91/admin/css/reco-style.min.css (added)
-
tags/1.0.91/admin/functions (added)
-
tags/1.0.91/admin/functions/AdminPage.php (added)
-
tags/1.0.91/admin/functions/EnqueueAdmin.php (added)
-
tags/1.0.91/admin/index.php (added)
-
tags/1.0.91/admin/js (added)
-
tags/1.0.91/admin/js/browser-image-compression.js (added)
-
tags/1.0.91/admin/js/reco-script.js (added)
-
tags/1.0.91/admin/js/vendor (added)
-
tags/1.0.91/admin/js/vendor/plupload.min.js (added)
-
tags/1.0.91/admin/views (added)
-
tags/1.0.91/admin/views/MainTemplate.php (added)
-
tags/1.0.91/admin/views/forms (added)
-
tags/1.0.91/admin/views/forms/PerPostType.php (added)
-
tags/1.0.91/includes (added)
-
tags/1.0.91/includes/Reco.php (added)
-
tags/1.0.91/includes/RecoActivator.php (added)
-
tags/1.0.91/includes/RecoDeactivator.php (added)
-
tags/1.0.91/includes/RecoI18n.php (added)
-
tags/1.0.91/includes/RecoLoader.php (added)
-
tags/1.0.91/includes/_includes.php (added)
-
tags/1.0.91/includes/functions (added)
-
tags/1.0.91/includes/functions/RecoApi.php (added)
-
tags/1.0.91/includes/functions/RecoReplaceScripts.php (added)
-
tags/1.0.91/includes/functions/RecoSettings.php (added)
-
tags/1.0.91/includes/index.php (added)
-
tags/1.0.91/index.php (added)
-
tags/1.0.91/languages (added)
-
tags/1.0.91/languages/resize-control.pot (added)
-
tags/1.0.91/public (added)
-
tags/1.0.91/public/index.php (added)
-
tags/1.0.91/resize-control.php (added)
-
tags/1.0.91/uninstall.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/admin/css/reco-style.min.css (modified) (1 diff)
-
trunk/admin/js/vendor/plupload.min.js (modified) (1 diff)
-
trunk/resize-control.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
resize-control/trunk/README.txt
r3170190 r3292597 3 3 Tags: resize, optimize, image, auto, compression 4 4 Requires at least: 5.8 5 Tested up to: 6. 66 Stable tag: 1.0.9 5 Tested up to: 6.8.1 6 Stable tag: 1.0.91 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 73 73 74 74 == Changelog == 75 = 1.0.91 [May 13, 2025] = 76 - Fix: Tested for WordPress 6.8.1 77 75 78 = 1.0.7 - 1.0.9 [October 16, 2024] = 76 79 - Add: Integration with TasteWP -
resize-control/trunk/admin/css/reco-style.min.css
r3170190 r3292597 1 .tab{background-color:#f1f1f1;border:1px solid #ccc;overflow:hidden}.tab button{background-color:inherit;cursor:pointer;float:left;border:none;outline:none;padding:14px 16px;transition:all .3s}.tab button:hover{background-color:#ddd}.tab button.active{background-color:#ccc}.tabcontent{border-top:none;padding:6px 12px;display:none}#perposttypeform{padding-top:0;padding-bottom:0}.formcontent,.tabcontent{animation:1s fadeEffect}.formcontent{border-top:none;display:none}@keyframes fadeEffect{0%{opacity:0}to{opacity:1}}.range-input{appearance:none;cursor:pointer;background:#ccc;border-radius:15px;outline:none;width:100%;height:6px}.range-input::-webkit-slider-thumb{appearance:none;background-color:#4272f9;border:none;border-radius:50%;width:15px;height:15px;transition:all .2s ease-in-out}.range-input::-moz-range-thumb{background-color:#4272f9;border:none;border-radius:50%;width:15px;height:15px;transition:all .2s ease-in-out}*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{color:inherit;border-top-width:1px;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre,fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{margin:0;padding:0;list-style:none}textarea{resize:vertical}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-width:1px;border-color:#6b7280;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,input:where(:not([type])):focus,select:focus,textarea:focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb;outline:2px solid #0000}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-day-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-hour-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-millisecond-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-minute-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-month-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-second-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}select{print-color-adjust:exact;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem}[multiple],[size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;print-color-adjust:unset;padding-right:.75rem}[type=checkbox],[type=radio]{appearance:none;color:#2563eb;print-color-adjust:exact;-webkit-user-select:none;user-select:none;vertical-align:middle;--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-width:1px;border-color:#6b7280;flex-shrink:0;width:1rem;height:1rem;padding:0;display:inline-block}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0'/%3E%3C/svg%3E")}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;font-size:unset;line-height:inherit;border-width:0;border-radius:0;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}html{font-family:Inter,system-ui,sans-serif}*,:after,:before,::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (width>=640px){.container{max-width:640px}}@media (width>=768px){.container{max-width:768px}}@media (width>=1024px){.container{max-width:1024px}}@media (width>=1280px){.container{max-width:1280px}}@media (width>=1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none!important}.absolute{position:absolute!important}.relative{position:relative!important}.inset-y-0{top:0!important;bottom:0!important}.left-0{left:0!important}.top-1\.5{top:.375rem!important}.-right-4{right:-1rem!important}.top-1{top:.25rem!important}.-right-3{right:-.75rem!important}.top-3{top:.75rem!important}.z-10{z-index:10!important}.float-right{float:right!important}.float-left{float:left!important}.m-0{margin:0!important}.my-\[3px\]{margin-top:3px!important;margin-bottom:3px!important}.my-6{margin-bottom:1.5rem!important}.mt-6,.my-6{margin-top:1.5rem!important}.mr-6{margin-right:1.5rem!important}.ml-2{margin-left:.5rem!important}.mt-2{margin-top:.5rem!important}.ml-6{margin-left:1.5rem!important}.mb-8{margin-bottom:2rem!important}.mb-2{margin-bottom:.5rem!important}.mb-6{margin-bottom:1.5rem!important}.mt-3{margin-top:.75rem!important}.mt-12{margin-top:3rem!important}.mt-5{margin-top:1.25rem!important}.mr-3{margin-right:.75rem!important}.-ml-px{margin-left:-1px!important}.mt-1{margin-top:.25rem!important}.-mt-5{margin-top:-1.25rem!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.inline-block{display:inline-block!important}.inline{display:inline!important}.flex{display:flex!important}.inline-flex{display:inline-flex!important}.table{display:table!important}.hidden{display:none!important}.h-full{height:100%!important}.h-\[20px\]{height:20px!important}.h-10{height:2.5rem!important}.h-6{height:1.5rem!important}.w-1\/6{width:16.6667%!important}.w-5\/6{width:83.3333%!important}.w-full{width:100%!important}.w-\[20px\]{width:20px!important}.w-1\/2{width:50%!important}.w-2\/3{width:66.6667%!important}.w-auto{width:auto!important}.w-56{width:14rem!important}.w-10{width:2.5rem!important}.w-6{width:1.5rem!important}.max-w-\[600px\]{max-width:600px!important}.\!max-w-full{max-width:100%!important}.flex-shrink-0,.shrink-0{flex-shrink:0!important}.flex-grow{flex-grow:1!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skewX(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))!important}.cursor-pointer{cursor:pointer!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-help{cursor:help!important}.resize{resize:both!important}.flex-wrap{flex-wrap:wrap!important}.items-start{align-items:flex-start!important}.items-center{align-items:center!important}.items-stretch{align-items:stretch!important}.justify-between{justify-content:space-between!important}.gap-5{gap:1.25rem!important}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.5rem*var(--tw-space-x-reverse))!important}.self-end{align-self:flex-end!important}.whitespace-nowrap{white-space:nowrap!important}.rounded-md{border-radius:.375rem!important}.rounded{border-radius:.25rem!important}.rounded-full{border-radius:9999px!important}.rounded-none{border-radius:0!important}.rounded-r-md{border-top-right-radius:.375rem!important;border-bottom-right-radius:.375rem!important}.rounded-l-md{border-top-left-radius:.375rem!important;border-bottom-left-radius:.375rem!important}.border,.border-\[1px\]{border-width:1px!important}.border-b-\[1px\]{border-bottom-width:1px!important}.border-l-\[1px\]{border-left-width:1px!important}.border-solid{border-style:solid!important}.border-tuning-stroke{--tw-border-opacity:1!important;border-color:rgb(231 231 231/var(--tw-border-opacity))!important}.border-gray-300{--tw-border-opacity:1!important;border-color:rgb(209 213 219/var(--tw-border-opacity))!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.bg-tuning-gray,.bg-white{--tw-bg-opacity:1!important}.bg-tuning-gray{background-color:rgb(244 247 255/var(--tw-bg-opacity))!important}.bg-gray-50{--tw-bg-opacity:1!important;background-color:rgb(249 250 251/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.p-0{padding:0!important}.p-5{padding:1.25rem!important}.p-6{padding:1.5rem!important}.p-\[14px\]{padding:14px!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}.px-4{padding-left:1rem!important;padding-right:1rem!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.px-3{padding-left:.75rem!important;padding-right:.75rem!important}.pt-6{padding-top:1.5rem!important}.pl-10{padding-left:2.5rem!important}.pr-1{padding-right:.25rem!important}.pt-2{padding-top:.5rem!important}.pl-16{padding-left:4rem!important}.pb-2{padding-bottom:.5rem!important}.pl-3{padding-left:.75rem!important}.pl-\[14px\]{padding-left:14px!important}.pt-3{padding-top:.75rem!important}.pl-4{padding-left:1rem!important}.pl-12{padding-left:3rem!important}.pr-10{padding-right:2.5rem!important}.pb-5{padding-bottom:1.25rem!important}.text-left{text-align:left!important}.text-center{text-align:center!important}.text-right{text-align:right!important}.align-middle{vertical-align:middle!important}.font-inter{font-family:Inter,sans-serif!important}.text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-2xl{font-size:1.5rem!important;line-height:2rem!important}.font-semibold{font-weight:600!important}.font-medium{font-weight:500!important}.font-normal{font-weight:400!important}.leading-\[1\.4rem\]{line-height:1.4rem!important}.text-tuning-text{ --tw-text-opacity:1!important;color:rgb(99 115 129/var(--tw-text-opacity))!important}.text-black{--tw-text-opacity:1!important;color:rgb(0 0 0/var(--tw-text-opacity))!important}.text-tuning-blue{--tw-text-opacity:1!important;color:rgb(66 114 249/var(--tw-text-opacity))!important}.text-red-800{--tw-text-opacity:1!important;color:rgb(153 27 27/var(--tw-text-opacity))!important}.text-gray-400{--tw-text-opacity:1!important;color:rgb(156 163 175/var(--tw-text-opacity))!important}.text-gray-500{--tw-text-opacity:1!important;color:rgb(107 114 128/var(--tw-text-opacity))!important}.underline{text-decoration-line:underline!important}.line-through{text-decoration-line:line-through!important}.opacity-50{opacity:.5!important}.opacity-40{opacity:.4!important}.shadow-md{--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a!important;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)!important}.shadow,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a!important;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)!important}.shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d!important;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.filter{filter:var(--tw-blur)var(--tw-brightness)var(--tw-contrast)var(--tw-grayscale)var(--tw-hue-rotate)var(--tw-invert)var(--tw-saturate)var(--tw-sepia)var(--tw-drop-shadow)!important}.tablinks.active{--tw-border-opacity:1;border-right-width:4px;border-color:rgb(66 114 249/var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgb(244 247 255/var(--tw-bg-opacity))}.tablinks{text-align:left}aside .tablinks{width:100%}.tablinks ul li.active,.tablinks.active p{--tw-text-opacity:1!important;color:rgb(66 114 249/var(--tw-text-opacity))!important}.tablinks.active svg{fill:red!important}.tablinks>a{margin-right:2px}.blokkie{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.reco-button{--tw-bg-opacity:1;background-color:rgb(66 114 249/var(--tw-bg-opacity));border-radius:.375rem;padding:.75rem 1.25rem;font-size:1rem;font-weight:500;line-height:1.5rem;transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:inline-block;--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}.reco-button:hover{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.reco-button{cursor:pointer}.reco-button-sm{--tw-bg-opacity:1;background-color:rgb(66 114 249/var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity));border-radius:.375rem;padding:.5rem 1rem;font-size:1rem;font-weight:500;line-height:1.5rem;transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:inline-block}.reco-button-sm:hover{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.reco-button-sm{cursor:pointer}.reco-button-sm-reverse{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity));border-width:1px;border-radius:.375rem;padding:.5rem 1rem;font-size:1rem;font-weight:500;line-height:1.5rem;transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:inline-block}.reco-button-sm-reverse:hover{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.reco-button-sm-reverse{cursor:pointer}.check-button-small span{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity));border-width:1px;border-radius:.375rem;padding:.5rem .75rem;font-size:1rem;font-weight:500;line-height:1.5rem;transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:inline-block}.check-button-small span:hover{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.check-button-small span{cursor:pointer}.check-button-small input{display:none}.check-button-small input:checked+span{--tw-bg-opacity:1;background-color:rgb(66 114 249/var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity));border-radius:.375rem;padding:.5rem .75rem;font-size:1rem;font-weight:500;line-height:1.5rem;transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:inline-block}.check-button-small input:checked+span:hover{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.switch{width:44px;height:28px;display:inline-block;position:relative}.switch input{opacity:0;width:0;height:0}.slider{cursor:pointer;background-color:#e9e9e9;inset:0}.slider,.slider:before{transition:all .25s;position:absolute}.slider:before{content:"";background-color:#fff;width:20px;height:20px;bottom:4px;left:4px}input:checked+.slider:before{background-position:50%;transform:translate(16px)}.check-shadow{box-shadow:inset 10px 0 10px -10px #0000000d}input:checked+.slider{--tw-bg-opacity:1;background-color:rgb(66 114 249/var(--tw-bg-opacity))}input[type=checkbox].tuning-checkbox{appearance:none;cursor:pointer;background-position:50%;background-repeat:no-repeat;background-size:22px;border:1px solid #8c8f94;border-radius:.375rem;width:20px;height:20px;transition:all .25s}input[type=checkbox].tuning-checkbox:checked{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMiIgaGVpZ2h0PSIyMiIgZmlsbD0ibm9uZSI+PGNpcmNsZSBjeD0iMTEiIGN5PSIxMSIgcj0iMTEiLz48cGF0aCBzdHJva2U9IiNmZmYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIxLjUiIGQ9Im03LjI1IDExLjM3NSAzIDMgNC41LTYuNzUiLz48L3N2Zz4=);background-color:#4272f9!important;border-color:#4272f9!important}input[type=checkbox].tuning-checkbox:checked:before{content:normal}.slider.round{border-radius:14px}.slider.round:before{border-radius:50%}.headingPremium>div{margin-top:.08rem;margin-right:.9rem}.proLock{filter:drop-shadow(-5px 9px 8px #ffffff78)}.not-activated>.tablinks{cursor:not-allowed;opacity:.3;pointer-events:none}.not-activated{cursor:not-allowed}.post-sublist:after{border-left:1px solid;height:calc(100% - 1.6rem);top:0;left:0}.post-sublist li:before,.post-sublist:after{content:"";margin-left:-1rem;position:absolute}.post-sublist li:before{border-top:1px solid;width:.4rem;top:calc(50% + .25rem)}.post-sublist li:before,.post-sublist:after{--tw-border-opacity:1;border-color:rgb(231 231 231/var(--tw-border-opacity))}.perPostIcon{--tw-text-opacity:1;color:rgb(66 114 249/var(--tw-text-opacity))}[tooltip]{position:relative;transform:translateY(-2px)}[tooltip]:after,[tooltip]:before{opacity:0;pointer-events:none;text-transform:none;-webkit-user-select:none;user-select:none;font-size:.9em;line-height:1;display:none;position:absolute}[tooltip]:before{content:"";z-index:1001;border:5px solid #0000}[tooltip]:after{color:#fff;content:attr(tooltip);text-align:center;z-index:1000;background:#4272f9;border-radius:5px;width:13em;min-width:3em;padding:1ch 1.5ch;font-family:Helvetica,sans-serif;box-shadow:0 5px 1em -.5em #00000059}[tooltip]:hover:after,[tooltip]:hover:before{display:block}[tooltip=""]:after,[tooltip=""]:before{display:none!important}[tooltip]:before{border-top-color:#4272f9;border-bottom-width:0;bottom:calc(100% + 6px)}[tooltip]:after{bottom:calc(100% + 10px)}[tooltip]:after,[tooltip]:before{left:50%;transform:translate(-50%,-.5em)}@keyframes tooltips-vert{to{opacity:.9;transform:translate(-50%)}}@keyframes tooltips-horz{to{opacity:.9;transform:translateY(-50%)}}[tooltip]:not([flow]):hover:after,[tooltip]:not([flow]):hover:before,[tooltip][flow^=down]:hover:after,[tooltip][flow^=down]:hover:before,[tooltip][flow^=up]:hover:after,[tooltip][flow^=up]:hover:before{animation:.3s ease-out forwards tooltips-vert}[tooltip][flow^=left]:hover:after,[tooltip][flow^=left]:hover:before,[tooltip][flow^=right]:hover:after,[tooltip][flow^=right]:hover:before{animation:.3s ease-out forwards tooltips-horz}.focus-within\:z-10:focus-within{z-index:10!important}.hover\:bg-gray-100:hover{--tw-bg-opacity:1!important;background-color:rgb(243 244 246/var(--tw-bg-opacity))!important}.focus\:border-tuning-blue:focus{--tw-border-opacity:1!important;border-color:rgb(66 114 249/var(--tw-border-opacity))!important}.focus\:outline-none:focus{outline-offset:2px!important;outline:2px solid #0000!important}.focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(var(--tw-ring-offset-width))var(--tw-ring-color)!important}.focus\:ring-0:focus,.focus\:ring-1:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color)!important}.focus\:ring-tuning-blue:focus{--tw-ring-opacity:1!important;--tw-ring-color:rgb(66 114 249/var(--tw-ring-opacity))!important}@media (width>=640px){.sm\:text-sm{font-size:.875rem!important;line-height:1.25rem!important}}1 .tab{background-color:#f1f1f1;border:1px solid #ccc;overflow:hidden}.tab button{background-color:inherit;cursor:pointer;float:left;border:none;outline:none;padding:14px 16px;transition:all .3s}.tab button:hover{background-color:#ddd}.tab button.active{background-color:#ccc}.tabcontent{border-top:none;padding:6px 12px;display:none}#perposttypeform{padding-top:0;padding-bottom:0}.formcontent,.tabcontent{animation:1s fadeEffect}.formcontent{border-top:none;display:none}@keyframes fadeEffect{0%{opacity:0}to{opacity:1}}.range-input{appearance:none;cursor:pointer;background:#ccc;border-radius:15px;outline:none;width:100%;height:6px}.range-input::-webkit-slider-thumb{appearance:none;background-color:#4272f9;border:none;border-radius:50%;width:15px;height:15px;transition:all .2s ease-in-out}.range-input::-moz-range-thumb{background-color:#4272f9;border:none;border-radius:50%;width:15px;height:15px;transition:all .2s ease-in-out}*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{color:inherit;border-top-width:1px;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre,fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{margin:0;padding:0;list-style:none}textarea{resize:vertical}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-width:1px;border-color:#6b7280;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,input:where(:not([type])):focus,select:focus,textarea:focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb;outline:2px solid #0000}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-day-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-hour-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-millisecond-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-minute-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-month-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-second-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}select{print-color-adjust:exact;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem}[multiple],[size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;print-color-adjust:unset;padding-right:.75rem}[type=checkbox],[type=radio]{appearance:none;color:#2563eb;print-color-adjust:exact;-webkit-user-select:none;user-select:none;vertical-align:middle;--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-width:1px;border-color:#6b7280;flex-shrink:0;width:1rem;height:1rem;padding:0;display:inline-block}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0'/%3E%3C/svg%3E")}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;font-size:unset;line-height:inherit;border-width:0;border-radius:0;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}html{font-family:Inter,system-ui,sans-serif}*,:after,:before,::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (width>=640px){.container{max-width:640px}}@media (width>=768px){.container{max-width:768px}}@media (width>=1024px){.container{max-width:1024px}}@media (width>=1280px){.container{max-width:1280px}}@media (width>=1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none!important}.absolute{position:absolute!important}.relative{position:relative!important}.inset-y-0{top:0!important;bottom:0!important}.left-0{left:0!important}.top-1\.5{top:.375rem!important}.-right-4{right:-1rem!important}.top-1{top:.25rem!important}.-right-3{right:-.75rem!important}.top-3{top:.75rem!important}.z-10{z-index:10!important}.float-right{float:right!important}.float-left{float:left!important}.m-0{margin:0!important}.my-\[3px\]{margin-top:3px!important;margin-bottom:3px!important}.my-6{margin-bottom:1.5rem!important}.mt-6,.my-6{margin-top:1.5rem!important}.mr-6{margin-right:1.5rem!important}.ml-2{margin-left:.5rem!important}.mt-2{margin-top:.5rem!important}.ml-6{margin-left:1.5rem!important}.mb-8{margin-bottom:2rem!important}.mb-2{margin-bottom:.5rem!important}.mb-6{margin-bottom:1.5rem!important}.mt-3{margin-top:.75rem!important}.mt-12{margin-top:3rem!important}.mt-5{margin-top:1.25rem!important}.mr-3{margin-right:.75rem!important}.-ml-px{margin-left:-1px!important}.mt-1{margin-top:.25rem!important}.-mt-5{margin-top:-1.25rem!important}.ml-1{margin-left:.25rem!important}.block{display:block!important}.inline-block{display:inline-block!important}.inline{display:inline!important}.flex{display:flex!important}.inline-flex{display:inline-flex!important}.table{display:table!important}.hidden{display:none!important}.h-full{height:100%!important}.h-\[20px\]{height:20px!important}.h-10{height:2.5rem!important}.h-6{height:1.5rem!important}.w-1\/6{width:16.6667%!important}.w-5\/6{width:83.3333%!important}.w-full{width:100%!important}.w-\[20px\]{width:20px!important}.w-1\/2{width:50%!important}.w-2\/3{width:66.6667%!important}.w-auto{width:auto!important}.w-56{width:14rem!important}.w-10{width:2.5rem!important}.w-6{width:1.5rem!important}.max-w-\[600px\]{max-width:600px!important}.\!max-w-full{max-width:100%!important}.flex-shrink-0,.shrink-0{flex-shrink:0!important}.flex-grow{flex-grow:1!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skewX(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))!important}.cursor-pointer{cursor:pointer!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-help{cursor:help!important}.resize{resize:both!important}.flex-wrap{flex-wrap:wrap!important}.items-start{align-items:flex-start!important}.items-center{align-items:center!important}.items-stretch{align-items:stretch!important}.justify-between{justify-content:space-between!important}.gap-5{gap:1.25rem!important}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.5rem*var(--tw-space-x-reverse))!important}.self-end{align-self:flex-end!important}.whitespace-nowrap{white-space:nowrap!important}.rounded-md{border-radius:.375rem!important}.rounded{border-radius:.25rem!important}.rounded-full{border-radius:9999px!important}.rounded-none{border-radius:0!important}.rounded-r-md{border-top-right-radius:.375rem!important;border-bottom-right-radius:.375rem!important}.rounded-l-md{border-top-left-radius:.375rem!important;border-bottom-left-radius:.375rem!important}.border,.border-\[1px\]{border-width:1px!important}.border-b-\[1px\]{border-bottom-width:1px!important}.border-l-\[1px\]{border-left-width:1px!important}.border-solid{border-style:solid!important}.border-tuning-stroke{--tw-border-opacity:1!important;border-color:rgb(231 231 231/var(--tw-border-opacity))!important}.border-gray-300{--tw-border-opacity:1!important;border-color:rgb(209 213 219/var(--tw-border-opacity))!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.bg-tuning-gray,.bg-white{--tw-bg-opacity:1!important}.bg-tuning-gray{background-color:rgb(244 247 255/var(--tw-bg-opacity))!important}.bg-gray-50{--tw-bg-opacity:1!important;background-color:rgb(249 250 251/var(--tw-bg-opacity))!important}.p-4{padding:1rem!important}.p-0{padding:0!important}.p-5{padding:1.25rem!important}.p-6{padding:1.5rem!important}.p-\[14px\]{padding:14px!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}.px-4{padding-left:1rem!important;padding-right:1rem!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.px-3{padding-left:.75rem!important;padding-right:.75rem!important}.pt-6{padding-top:1.5rem!important}.pl-10{padding-left:2.5rem!important}.pr-1{padding-right:.25rem!important}.pt-2{padding-top:.5rem!important}.pl-16{padding-left:4rem!important}.pb-2{padding-bottom:.5rem!important}.pl-3{padding-left:.75rem!important}.pl-\[14px\]{padding-left:14px!important}.pt-3{padding-top:.75rem!important}.pl-4{padding-left:1rem!important}.pl-12{padding-left:3rem!important}.pr-10{padding-right:2.5rem!important}.pb-5{padding-bottom:1.25rem!important}.text-left{text-align:left!important}.text-center{text-align:center!important}.text-right{text-align:right!important}.align-middle{vertical-align:middle!important}.font-inter{font-family:Inter,sans-serif!important}.text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-2xl{font-size:1.5rem!important;line-height:2rem!important}.font-semibold{font-weight:600!important}.font-medium{font-weight:500!important}.font-normal{font-weight:400!important}.leading-\[1\.4rem\]{line-height:1.4rem!important}.text-tuning-text{color:rgb(99 115 129/var(--tw-text-opacity))!important}.text-black,.text-tuning-text{--tw-text-opacity:1!important}.text-black{color:rgb(0 0 0/var(--tw-text-opacity))!important}.text-tuning-blue{--tw-text-opacity:1!important;color:rgb(66 114 249/var(--tw-text-opacity))!important}.text-red-800{color:rgb(153 27 27/var(--tw-text-opacity))!important}.text-gray-400,.text-red-800{--tw-text-opacity:1!important}.text-gray-400{color:rgb(156 163 175/var(--tw-text-opacity))!important}.text-gray-500{--tw-text-opacity:1!important;color:rgb(107 114 128/var(--tw-text-opacity))!important}.underline{text-decoration-line:underline!important}.line-through{text-decoration-line:line-through!important}.opacity-50{opacity:.5!important}.opacity-40{opacity:.4!important}.shadow-md{--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a!important;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)!important}.shadow,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a!important;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)!important}.shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d!important;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.filter{filter:var(--tw-blur)var(--tw-brightness)var(--tw-contrast)var(--tw-grayscale)var(--tw-hue-rotate)var(--tw-invert)var(--tw-saturate)var(--tw-sepia)var(--tw-drop-shadow)!important}.tablinks.active{--tw-border-opacity:1;border-right-width:4px;border-color:rgb(66 114 249/var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgb(244 247 255/var(--tw-bg-opacity))}.tablinks{text-align:left}aside .tablinks{width:100%}.tablinks ul li.active,.tablinks.active p{--tw-text-opacity:1!important;color:rgb(66 114 249/var(--tw-text-opacity))!important}.tablinks.active svg{fill:red!important}.tablinks>a{margin-right:2px}.blokkie{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.reco-button{--tw-bg-opacity:1;background-color:rgb(66 114 249/var(--tw-bg-opacity));border-radius:.375rem;padding:.75rem 1.25rem;font-size:1rem;font-weight:500;line-height:1.5rem;transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:inline-block;--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}.reco-button:hover{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.reco-button{cursor:pointer}.reco-button-sm{--tw-bg-opacity:1;background-color:rgb(66 114 249/var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity));border-radius:.375rem;padding:.5rem 1rem;font-size:1rem;font-weight:500;line-height:1.5rem;transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:inline-block}.reco-button-sm:hover{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.reco-button-sm{cursor:pointer}.reco-button-sm-reverse{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity));border-width:1px;border-radius:.375rem;padding:.5rem 1rem;font-size:1rem;font-weight:500;line-height:1.5rem;transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:inline-block}.reco-button-sm-reverse:hover{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.reco-button-sm-reverse{cursor:pointer}.check-button-small span{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity));border-width:1px;border-radius:.375rem;padding:.5rem .75rem;font-size:1rem;font-weight:500;line-height:1.5rem;transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:inline-block}.check-button-small span:hover{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.check-button-small span{cursor:pointer}.check-button-small input{display:none}.check-button-small input:checked+span{--tw-bg-opacity:1;background-color:rgb(66 114 249/var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity));border-radius:.375rem;padding:.5rem .75rem;font-size:1rem;font-weight:500;line-height:1.5rem;transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:inline-block}.check-button-small input:checked+span:hover{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.switch{width:44px;height:28px;display:inline-block;position:relative}.switch input{opacity:0;width:0;height:0}.slider{cursor:pointer;background-color:#e9e9e9;inset:0}.slider,.slider:before{transition:all .25s;position:absolute}.slider:before{content:"";background-color:#fff;width:20px;height:20px;bottom:4px;left:4px}input:checked+.slider:before{background-position:50%;transform:translate(16px)}.check-shadow{box-shadow:inset 10px 0 10px -10px #0000000d}input:checked+.slider{--tw-bg-opacity:1;background-color:rgb(66 114 249/var(--tw-bg-opacity))}input[type=checkbox].tuning-checkbox{appearance:none;cursor:pointer;background-position:50%;background-repeat:no-repeat;background-size:22px;border:1px solid #8c8f94;border-radius:.375rem;width:20px;height:20px;transition:all .25s}input[type=checkbox].tuning-checkbox:checked{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMiIgaGVpZ2h0PSIyMiIgZmlsbD0ibm9uZSI+PGNpcmNsZSBjeD0iMTEiIGN5PSIxMSIgcj0iMTEiLz48cGF0aCBzdHJva2U9IiNmZmYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIxLjUiIGQ9Im03LjI1IDExLjM3NSAzIDMgNC41LTYuNzUiLz48L3N2Zz4=);background-color:#4272f9!important;border-color:#4272f9!important}input[type=checkbox].tuning-checkbox:checked:before{content:normal}.slider.round{border-radius:14px}.slider.round:before{border-radius:50%}.headingPremium>div{margin-top:.08rem;margin-right:.9rem}.proLock{filter:drop-shadow(-5px 9px 8px #ffffff78)}.not-activated>.tablinks{cursor:not-allowed;opacity:.3;pointer-events:none}.not-activated{cursor:not-allowed}.post-sublist:after{border-left:1px solid;height:calc(100% - 1.6rem);top:0;left:0}.post-sublist li:before,.post-sublist:after{content:"";margin-left:-1rem;position:absolute}.post-sublist li:before{border-top:1px solid;width:.4rem;top:calc(50% + .25rem)}.post-sublist li:before,.post-sublist:after{--tw-border-opacity:1;border-color:rgb(231 231 231/var(--tw-border-opacity))}.perPostIcon{--tw-text-opacity:1;color:rgb(66 114 249/var(--tw-text-opacity))}[tooltip]{position:relative;transform:translateY(-2px)}[tooltip]:after,[tooltip]:before{opacity:0;pointer-events:none;text-transform:none;-webkit-user-select:none;user-select:none;font-size:.9em;line-height:1;display:none;position:absolute}[tooltip]:before{content:"";z-index:1001;border:5px solid #0000}[tooltip]:after{color:#fff;content:attr(tooltip);text-align:center;z-index:1000;background:#4272f9;border-radius:5px;width:13em;min-width:3em;padding:1ch 1.5ch;font-family:Helvetica,sans-serif;box-shadow:0 5px 1em -.5em #00000059}[tooltip]:hover:after,[tooltip]:hover:before{display:block}[tooltip=""]:after,[tooltip=""]:before{display:none!important}[tooltip]:before{border-top-color:#4272f9;border-bottom-width:0;bottom:calc(100% + 6px)}[tooltip]:after{bottom:calc(100% + 10px)}[tooltip]:after,[tooltip]:before{left:50%;transform:translate(-50%,-.5em)}@keyframes tooltips-vert{to{opacity:.9;transform:translate(-50%)}}@keyframes tooltips-horz{to{opacity:.9;transform:translateY(-50%)}}[tooltip]:not([flow]):hover:after,[tooltip]:not([flow]):hover:before,[tooltip][flow^=down]:hover:after,[tooltip][flow^=down]:hover:before,[tooltip][flow^=up]:hover:after,[tooltip][flow^=up]:hover:before{animation:.3s ease-out forwards tooltips-vert}[tooltip][flow^=left]:hover:after,[tooltip][flow^=left]:hover:before,[tooltip][flow^=right]:hover:after,[tooltip][flow^=right]:hover:before{animation:.3s ease-out forwards tooltips-horz}.focus-within\:z-10:focus-within{z-index:10!important}.hover\:bg-gray-100:hover{--tw-bg-opacity:1!important;background-color:rgb(243 244 246/var(--tw-bg-opacity))!important}.focus\:border-tuning-blue:focus{--tw-border-opacity:1!important;border-color:rgb(66 114 249/var(--tw-border-opacity))!important}.focus\:outline-none:focus{outline-offset:2px!important;outline:2px solid #0000!important}.focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(var(--tw-ring-offset-width))var(--tw-ring-color)!important}.focus\:ring-0:focus,.focus\:ring-1:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color)!important}.focus\:ring-tuning-blue:focus{--tw-ring-opacity:1!important;--tw-ring-color:rgb(66 114 249/var(--tw-ring-opacity))!important}@media (width>=640px){.sm\:text-sm{font-size:.875rem!important;line-height:1.25rem!important}} -
resize-control/trunk/admin/js/vendor/plupload.min.js
r3170140 r3292597 1 (()=>{let e,t;!function(e,t,i){var n,r=e.setTimeout,s={};function a(e){var t=e.required_features,i={};function n(e,t,n){var r={chunks:"slice_blob",jpgresize:"send_binary_string",pngresize:"send_binary_string",progress:"report_upload_progress",multi_selection:"select_multiple",dragdrop:"drag_and_drop",drop_element:"drag_and_drop",headers:"send_custom_headers",urlstream_upload:"send_binary_string",canSendBinary:"send_binary",triggerDialog:"summon_file_dialog"};r[e]?i[r[e]]=t:n||(i[e]=t)}return"string"==typeof t?o.each(t.split(/\s*,\s*/),function(e){n(e,!0)}):"object"==typeof t?o.each(t,function(e,t){n(t,e)}):!0===t&&(e.chunk_size>0&&(i.slice_blob=!0),(e.resize.enabled||!e.multipart)&&(i.send_binary_string=!0),o.each(e,function(e,t){n(t,!!e,!0)})),e.runtimes="html5,html4",i}var o={VERSION:"2.1.9",STOPPED:1,STARTED:2,QUEUED:1,UPLOADING:2,FAILED:4,DONE:5,GENERIC_ERROR:-100,HTTP_ERROR:-200,IO_ERROR:-300,SECURITY_ERROR:-400,INIT_ERROR:-500,FILE_SIZE_ERROR:-600,FILE_EXTENSION_ERROR:-601,FILE_DUPLICATE_ERROR:-602,IMAGE_FORMAT_ERROR:-700,MEMORY_ERROR:-701,IMAGE_DIMENSIONS_ERROR:-702,mimeTypes:t.mimes,ua:t.ua,typeOf:t.typeOf,extend:t.extend,guid:t.guid,getAll:function(e){var t,i=[];"array"!==o.typeOf(e)&&(e=[e]);for(var n=e.length;n--;)(t=o.get(e[n]))&&i.push(t);return i.length?i:null},get:t.get,each:t.each,getPos:t.getPos,getSize:t.getSize,xmlEncode:function(e){var t={"<":"lt",">":"gt","&":"amp",'"':"quot","'":"#39"};return e?(""+e).replace(/[<>&\"\']/g,function(e){return t[e]?"&"+t[e]+";":e}):e},toArray:t.toArray,inArray:t.inArray,addI18n:t.addI18n,translate:t.translate,isEmptyObj:t.isEmptyObj,hasClass:t.hasClass,addClass:t.addClass,removeClass:t.removeClass,getStyle:t.getStyle,addEvent:t.addEvent,removeEvent:t.removeEvent,removeAllEvents:t.removeAllEvents,cleanName:function(e){var t,i;for(t=0,i=[/[\300-\306]/g,"A",/[\340-\346]/g,"a",/\307/g,"C",/\347/g,"c",/[\310-\313]/g,"E",/[\350-\353]/g,"e",/[\314-\317]/g,"I",/[\354-\357]/g,"i",/\321/g,"N",/\361/g,"n",/[\322-\330]/g,"O",/[\362-\370]/g,"o",/[\331-\334]/g,"U",/[\371-\374]/g,"u"];t<i.length;t+=2)e=e.replace(i[t],i[t+1]);return e=(e=e.replace(/\s+/g,"_")).replace(/[^a-z0-9_\-\.]+/gi,"")},buildUrl:function(e,t){var i="";return o.each(t,function(e,t){i+=(i?"&":"")+encodeURIComponent(t)+"="+encodeURIComponent(e)}),i&&(e+=(e.indexOf("?")>0?"&":"?")+i),e},formatSize:function(e){if(e===i||/\D/.test(e))return o.translate("N/A");function t(e,t){return Math.round(e*Math.pow(10,t))/Math.pow(10,t)}var n=1099511627776;return e>1099511627776?t(e/n,1)+" "+o.translate("tb"):e>(n/=1024)?t(e/n,1)+" "+o.translate("gb"):e>(n/=1024)?t(e/n,1)+" "+o.translate("mb"):e>1024?Math.round(e/1024)+" "+o.translate("kb"):e+" "+o.translate("b")},parseSize:t.parseSizeStr,predictRuntime:function(e,i){var n,r;return n=new o.Uploader(e),r=t.Runtime.thatCan(n.getOption().required_features,i||e.runtimes),n.destroy(),r},addFileFilter:function(e,t){s[e]=t}};o.addFileFilter("mime_types",function(e,t,i){e.length&&!e.regexp.test(t.name)?(this.trigger("Error",{code:o.FILE_EXTENSION_ERROR,message:o.translate("File extension error."),file:t}),i(!1)):i(!0)}),o.addFileFilter("max_file_size",function(e,t,i){var n;e=o.parseSize(e),t.size!==n&&e&&t.size>e?(this.trigger("Error",{code:o.FILE_SIZE_ERROR,message:o.translate("File size error."),file:t}),i(!1)):i(!0)}),o.addFileFilter("prevent_duplicates",function(e,t,i){if(e){for(var n=this.files.length;n--;)if(t.name===this.files[n].name&&t.size===this.files[n].size){this.trigger("Error",{code:o.FILE_DUPLICATE_ERROR,message:o.translate("Duplicate file error."),file:t}),i(!1);return}}i(!0)}),o.Uploader=function(e){var n,l,u,d,c=o.guid(),g=[], f={},p=[],m=[],_=!1;function b(){var e,t,i=0;if(this.state==o.STARTED){for(t=0;t<g.length;t++)e||g[t].status!=o.QUEUED?i++:(e=g[t],this.trigger("BeforeUpload",e)&&(e.status=o.UPLOADING,this.trigger("UploadFile",e)));i==g.length&&(this.state!==o.STOPPED&&(this.state=o.STOPPED,this.trigger("StateChanged")),this.trigger("UploadComplete",g))}}function R(e){e.percent=e.size>0?Math.ceil(e.loaded/e.size*100):100,y()}function y(){var e,t;for(u.reset(),e=0;e<g.length;e++)(t=g[e]).size!==i?(u.size+=t.origSize,u.loaded+=t.loaded*t.origSize/t.size):u.size=i,t.status==o.DONE?u.uploaded++:t.status==o.FAILED?u.failed++:u.queued++;u.size===i?u.percent=g.length>0?Math.ceil(u.uploaded/g.length*100):0:(u.bytesPerSec=Math.ceil(u.loaded/((+new Date-l||1)/1e3)),u.percent=u.size>0?Math.ceil(u.loaded/u.size*100):0)}function E(){var e=p[0]||m[0];return!!e&&e.getRuntime().uid}function v(){this.bind("FilesAdded FilesRemoved",function(e){e.trigger("QueueChanged"),e.refresh()}),this.bind("CancelUpload",T),this.bind("BeforeUpload",I),this.bind("UploadFile",S),this.bind("UploadProgress",D),this.bind("StateChanged",F),this.bind("QueueChanged",y),this.bind("Error",A),this.bind("FileUploaded",U),this.bind("Destroy",P)}function z(e,i){var n=this,r=0,s=[],a={runtime_order:e.runtimes,required_caps:e.required_features,preferred_caps:f};o.each(e.runtimes.split(/\s*,\s*/),function(t){e[t]&&(a[t]=e[t])}),e.browse_button&&o.each(e.browse_button,function(i){s.push(function(s){var l=new t.FileInput(o.extend({},a,{accept:e.filters.mime_types,name:e.file_data_name,multiple:e.multi_selection,container:e.container,browse_button:i}));l.onready=function(){var e=t.Runtime.getInfo(this.ruid);t.extend(n.features,{chunks:e.can("slice_blob"),multipart:e.can("send_multipart"),multi_selection:e.can("select_multiple")}),r++,p.push(this),s()},l.onchange=function(){h(n,this.files)},l.bind("mouseenter mouseleave mousedown mouseup",function(n){!_&&(e.browse_button_hover&&("mouseenter"===n.type?t.addClass(i,e.browse_button_hover):"mouseleave"===n.type&&t.removeClass(i,e.browse_button_hover)),e.browse_button_active&&("mousedown"===n.type?t.addClass(i,e.browse_button_active):"mouseup"===n.type&&t.removeClass(i,e.browse_button_active)))}),l.bind("mousedown",function(){n.trigger("Browse")}),l.bind("error runtimeerror",function(){l=null,s()}),l.init()})}),e.drop_element&&o.each(e.drop_element,function(e){s.push(function(i){var s=new t.FileDrop(o.extend({},a,{drop_zone:e}));s.onready=function(){var e=t.Runtime.getInfo(this.ruid);t.extend(n.features,{chunks:e.can("slice_blob"),multipart:e.can("send_multipart"),dragdrop:e.can("drag_and_drop")}),r++,m.push(this),i()},s.ondrop=function(){h(n,this.files)},s.bind("error runtimeerror",function(){s=null,i()}),s.init()})}),t.inSeries(s,function(){"function"==typeof i&&i(r)})}function w(e,n,r){var s=new t.Image;try{s.onload=function(){if(n.width>this.width&&n.height>this.height&&n.quality===i&&n.preserve_headers&&!n.crop)return this.destroy(),r(e);s.downsize(n.width,n.height,n.crop,n.preserve_headers)},s.onresize=function(){r(this.getAsBlob(e.type,n.quality)),this.destroy()},s.onerror=function(){r(e)},s.load(e)}catch(t){r(e)}}function O(e,i,r){var s=this,l=!1;function u(e,t,i){var r,a,u=n[e];switch(e){case"max_file_size":"max_file_size"===e&&(n.max_file_size=n.filters.max_file_size=t);break;case"chunk_size":(t=o.parseSize(t))&&(n[e]=t,n.send_file_name=!0);break;case"multipart":n[e]=t,t||(n.send_file_name=!0);break;case"unique_names":n[e]=t,t&&(n.send_file_name=!0);break;case"filters":"array"===o.typeOf(t)&&(t={mime_types:t}),i?o.extend(n.filters,t):n.filters=t,t.mime_types&&(n.filters.mime_types.regexp=(r=n.filters.mime_types,a=[],o.each(r,function(e){o.each(e.extensions.split(/,/),function(e){/^\s*\*\s*$/.test(e)?a.push("\\.*"):a.push("\\."+e.replace(RegExp("["+"/^$.*+?|()[]{}\\".replace(/./g,"\\$&")+"]","g"),"\\$&"))})}),RegExp("("+a.join("|")+")$","i")));break;case"resize":i?o.extend(n.resize,t,{enabled:!0}):n.resize=t;break;case"prevent_duplicates":n.prevent_duplicates=n.filters.prevent_duplicates=!!t;break;case"container":case"browse_button":case"drop_element":t="container"===e?o.get(t):o.getAll(t);case"runtimes":case"multi_selection":n[e]=t,i||(l=!0);break;default:n[e]=t}i||s.trigger("OptionChanged",e,t,u)}"object"==typeof e?o.each(e,function(e,t){u(t,e,r)}):u(e,i,r),r?(n.required_features=a(o.extend({},n)),f=a(o.extend({},n,{required_features:!0}))):l&&(s.trigger("Destroy"),z.call(s,n,function(e){e?(s.runtime=t.Runtime.getInfo(E()).type,s.trigger("Init",{runtime:s.runtime}),s.trigger("PostInit")):s.trigger("Error",{code:o.INIT_ERROR,message:o.translate("Init error.")})}))}function I(e,t){if(e.settings.unique_names){var i=t.name.match(/\.([^.]+)$/),n="part";i&&(n=i[1]),t.target_name=t.id+"."+n}}function S(e,i){var n,s=e.settings.url,a=e.settings.chunk_size,l=e.settings.max_retries,u=e.features,c=0;function g(){l-- >0?r(p,1e3):(i.loaded=c,e.trigger("Error",{code:o.HTTP_ERROR,message:o.translate("HTTP Error."),file:i,response:d.responseText,status:d.status,responseHeaders:d.getAllResponseHeaders()}))}function p(){var h,m,_,b={};i.status===o.UPLOADING&&e.state!==o.STOPPED&&(e.settings.send_file_name&&(b.name=i.target_name||i.name),a&&u.chunks&&n.size>a?(_=Math.min(a,n.size-c),h=n.slice(c,c+_)):(_=n.size,h=n),a&&u.chunks&&(e.settings.send_chunk_number?(b.chunk=Math.ceil(c/a),b.chunks=Math.ceil(n.size/a)):(b.offset=c,b.total=n.size)),(d=new t.XMLHttpRequest).upload&&(d.upload.onprogress=function(t){i.loaded=Math.min(i.size,c+t.loaded),e.trigger("UploadProgress",i)}),d.onload=function(){if(d.status>=400){g();return}l=e.settings.max_retries,_<n.size?(h.destroy(),c+=_,i.loaded=Math.min(c,n.size),e.trigger("ChunkUploaded",i,{offset:i.loaded,total:n.size,response:d.responseText,status:d.status,responseHeaders:d.getAllResponseHeaders()}),"Android Browser"===t.Env.browser&&e.trigger("UploadProgress",i)):i.loaded=i.size,h=m=null,!c||c>=n.size?(i.size!=i.origSize&&(n.destroy(),n=null),e.trigger("UploadProgress",i),i.status=o.DONE,e.trigger("FileUploaded",i,{response:d.responseText,status:d.status,responseHeaders:d.getAllResponseHeaders()})):r(p,1)},d.onerror=function(){g()},d.onloadend=function(){this.destroy(),d=null},e.settings.multipart&&u.multipart?(d.open("post",s,!0),o.each(e.settings.headers,function(e,t){d.setRequestHeader(t,e)}),m=new t.FormData,o.each(o.extend(b,e.settings.multipart_params),function(e,t){m.append(t,e)}),m.append(e.settings.file_data_name,h),d.send(m,{runtime_order:e.settings.runtimes,required_caps:e.settings.required_features,preferred_caps:f})):(s=o.buildUrl(e.settings.url,o.extend(b,e.settings.multipart_params)),d.open("post",s,!0),d.setRequestHeader("Content-Type","application/octet-stream"),o.each(e.settings.headers,function(e,t){d.setRequestHeader(t,e)}),d.send(h,{runtime_order:e.settings.runtimes,required_caps:e.settings.required_features,preferred_caps:f})))}i.loaded&&(c=i.loaded=a?a*Math.floor(i.loaded/a):0),n=i.getSource(),e.settings.resize.enabled&&function(e,i){if(e.ruid){var n=t.Runtime.getInfo(e.ruid);if(n)return n.can(i)}return!1}(n,"send_binary_string")&&~t.inArray(n.type,["image/jpeg","image/png"])?w.call(this,n,e.settings.resize,function(e){n=e,i.size=e.size,p()}):p()}function D(e,t){R(t)}function F(e){if(e.state==o.STARTED)l=+new Date;else if(e.state==o.STOPPED)for(var t=e.files.length-1;t>=0;t--)e.files[t].status==o.UPLOADING&&(e.files[t].status=o.QUEUED,y())}function T(){d&&d.abort()}function U(e){y(),r(function(){b.call(e)},1)}function A(e,t){t.code===o.INIT_ERROR?e.destroy():t.code===o.HTTP_ERROR&&(t.file.status=o.FAILED,R(t.file),e.state==o.STARTED&&(e.trigger("CancelUpload"),r(function(){b.call(e)},1)))}function P(e){e.stop(),o.each(g,function(e){e.destroy()}),g=[],p.length&&(o.each(p,function(e){e.destroy()}),p=[]),m.length&&(o.each(m,function(e){e.destroy()}),m=[]),f={},_=!1,l=d=null,u.reset()}n={runtimes:t.Runtime.order,max_retries:0,chunk_size:0,multipart:!0,multi_selection:!0,file_data_name:"file",filters:{mime_types:[],prevent_duplicates:!1,max_file_size:0},resize:{enabled:!1,preserve_headers:!0,crop:!1},send_file_name:!0,send_chunk_number:!0},O.call(this,e,null,!0),u=new o.QueueProgress,o.extend(this,{id:c,uid:c,state:o.STOPPED,features:{},runtime:null,files:g,settings:n,total:u,init:function(){var e,i,r=this;return("function"==typeof(e=r.getOption("preinit"))?e(r):o.each(e,function(e,t){r.bind(t,e)}),v.call(r),o.each(["container","browse_button","drop_element"],function(e){if(null===r.getOption(e))return i={code:o.INIT_ERROR,message:o.translate("'%' specified, but cannot be found.")},!1}),i)?r.trigger("Error",i):n.browse_button||n.drop_element?void z.call(r,n,function(e){var i=r.getOption("init");"function"==typeof i?i(r):o.each(i,function(e,t){r.bind(t,e)}),e?(r.runtime=t.Runtime.getInfo(E()).type,r.trigger("Init",{runtime:r.runtime}),r.trigger("PostInit")):r.trigger("Error",{code:o.INIT_ERROR,message:o.translate("Init error.")})}):r.trigger("Error",{code:o.INIT_ERROR,message:o.translate("You must specify either 'browse_button' or 'drop_element'.")})},setOption:function(e,t){O.call(this,e,t,!this.runtime)},getOption:function(e){return e?n[e]:n},refresh:function(){p.length&&o.each(p,function(e){e.trigger("Refresh")}),this.trigger("Refresh")},start:function(){this.state!=o.STARTED&&(this.state=o.STARTED,this.trigger("StateChanged"),b.call(this))},stop:function(){this.state!=o.STOPPED&&(this.state=o.STOPPED,this.trigger("StateChanged"),this.trigger("CancelUpload"))},disableBrowse:function(){_=arguments[0]===i||arguments[0],p.length&&o.each(p,function(e){e.disable(_)}),this.trigger("DisableBrowse",_)},getFile:function(e){var t;for(t=g.length-1;t>=0;t--)if(g[t].id===e)return g[t]},addFile:function(e,i){var n,a=this,l=[],u=[];n=E(),function e(d){var c=t.typeOf(d);if(d instanceof t.File){if(!d.ruid&&!d.isDetached()){if(!n)return!1;d.ruid=n,d.connectRuntime(n)}e(new o.File(d))}else d instanceof t.Blob?(e(d.getSource()),d.destroy()):d instanceof o.File?(i&&(d.name=i),l.push(function(e){var i,n;i=function(t){t||(g.push(d),u.push(d),a.trigger("FileFiltered",d)),r(e,1)},n=[],t.each(a.settings.filters,function(e,t){s[t]&&n.push(function(i){s[t].call(a,e,d,function(e){i(!e)})})}),t.inSeries(n,i)})):-1!==t.inArray(c,["file","blob"])?e(new t.File(null,d)):"node"===c&&"filelist"===t.typeOf(d.files)?t.each(d.files,e):"array"===c&&(i=null,t.each(d,e))}(e),l.length&&t.inSeries(l,function(){u.length&&a.trigger("FilesAdded",u)})},removeFile:function(e){for(var t="string"==typeof e?e:e.id,i=g.length-1;i>=0;i--)if(g[i].id===t)return this.splice(i,1)[0]},splice:function(e,t){var n=g.splice(e===i?0:e,t===i?g.length:t),r=!1;return this.state==o.STARTED&&(o.each(n,function(e){if(e.status===o.UPLOADING)return r=!0,!1}),r&&this.stop()),this.trigger("FilesRemoved",n),o.each(n,function(e){e.destroy()}),r&&this.start(),n},dispatchEvent:function(e){var t,i;if(e=e.toLowerCase(),t=this.hasEventListener(e)){t.sort(function(e,t){return t.priority-e.priority}),i=[].slice.call(arguments),i.shift(),i.unshift(this);for(var n=0;n<t.length;n++)if(!1===t[n].fn.apply(t[n].scope,i))return!1}return!0},bind:function(e,t,i,n){o.Uploader.prototype.bind.call(this,e,t,n,i)},destroy:function(){this.trigger("Destroy"),n=u=null,this.unbindAll()}})},o.Uploader.prototype=t.EventTarget.instance,o.File=(n={},function(e){o.extend(this,{id:o.guid(),name:e.name||e.fileName,type:e.type||"",size:e.size||e.fileSize,origSize:e.size||e.fileSize,loaded:0,percent:0,status:o.QUEUED,lastModifiedDate:e.lastModifiedDate||new Date().toLocaleString(),getNative:function(){var e=this.getSource().getSource();return -1!==t.inArray(t.typeOf(e),["blob","file"])?e:null},getSource:function(){return n[this.id]?n[this.id]:null},destroy:function(){var e=this.getSource();e&&(e.destroy(),delete n[this.id])}}),n[this.id]=e}),o.QueueProgress=function(){var e=this;e.size=0,e.loaded=0,e.uploaded=0,e.failed=0,e.queued=0,e.percent=0,e.bytesPerSec=0,e.reset=function(){e.size=e.loaded=e.uploaded=e.failed=e.queued=e.percent=e.bytesPerSec=0}},e.plupload=o}(window,mOxie);let i=recosettings.recosettings,n=recosettings.recouser,r=recosettings.valid,s=recosettings.screen,a=i.imageoptions[0].general.height,o=i.imageoptions[0].general.width,l=i.imageoptions[0].general.compression,u=i.imageoptions[0].general.enableResizeDimensions,d=i.imageoptions[0].general.convert,c=i.ignoredroles,g=n.roles,f=s?.post_type;r&&i.imageoptions[0][f]?.enabled&&(a=i.imageoptions[0][f].height,o=i.imageoptions[0][f].width,l=i.imageoptions[0][f].compression,u=i.imageoptions[0][f].enableResizeDimensions,d=i.imageoptions[0][f].convert,e=i.imageoptions[0][f].method,t=i.imageoptions[0][f].background);let p=c.split(",").some(e=>g.includes(e));function h(e,t){if(i.enableresize&&!p){let i=["image/png","image/jpg","image/jpeg","image/webp","image/avif"];t.forEach(t=>{i.includes(t.type)?m([{source:t.getSource(),name:t.name}]).then(t=>{for(let i of t)e.addFile(i)}):e.addFile(t)})}else e.addFile(t)}async function m(e){let t=[];for(let i of e){let e=(window.webkitURL||window.URL).createObjectURL(i.source);try{let n=await _(e,i.name),r=new mOxie.File(null,n);r.name=i.name,t.push(r)}catch(e){alert("Resize Control failed processing file, original file is used instead"),console.error("Error processing file:",e),t.push(i)}}return t}async function _(i,n){return new Promise((s,c)=>{var g,f;let p=1,h=n.split(".").pop();h="jpg"===(g=d,f=h,r?"none"!==g&&(f=g):!0===g&&n.includes(".png")&&(f="jpeg"),h=f)?"jpeg":h,l&&(p=parseFloat((1-.1*l).toFixed(1))),h="jpg"===h?"jpeg":h;let m=o||700,_=a||700;u||(m=null,_=null);let b=r?e:"scale",R=r?t:null,y=new Image,E="jpeg"===h?"jpg":h,v=n.slice(0,n.lastIndexOf("."))+"."+E,z=window.document.createElement("canvas");z.className="convertcanvas";let w=z.getContext("2d");document.body.appendChild(z);let O="image/"+h;y.src=i,y.onload=function(){let{width:e,height:t}=y,i=e/t;if(m&&!_?t=(e=m)/i:!m&&_?e=(t=_)*i:m&&_&&(e=m,t=_,"contain"===b?e/t>i?e=t*i:t=e/i:"cover"===b?e/t<i?e=t*i:t=e/i:i>m/_?(t=m/i,e=m):(e=_*i,t=_)),w&&z){"contain"===b||"cover"===b?(z.width=m||e,z.height=_||t):(z.width=e,z.height=t),"png"===h?w.fillStyle=R||"transparent":w.fillStyle=R||"white",w.fillRect(0,0,z.width,z.height);let i=(z.width-e)/2,n=(z.height-t)/2;w.drawImage(y,0,0,y.width,y.height,i,n,e,t)}z.toBlob(async function(e){if(e){if("image/png"===e.type&&p<1){let t=.3;p<.8?t=.1:p<.9&&(t=.2);let i={useWebWorker:!0,initialQuality:t,alwaysKeepResolution:!0},n=new File([e],v,{type:O});try{let e=await imageCompression(n,i),t=new File([e],e.name,{type:e.type});s(t),document.body.removeChild(z)}catch(e){console.log("Error occurred while compressing the image:",e)}}else s(new File([e],v,{type:O})),document.body.removeChild(z)}},O,p)}})}})();1 (()=>{let e,t;!function(e,t,i){var n,r=e.setTimeout,s={};function a(e){var t=e.required_features,i={};function n(e,t,n){var r={chunks:"slice_blob",jpgresize:"send_binary_string",pngresize:"send_binary_string",progress:"report_upload_progress",multi_selection:"select_multiple",dragdrop:"drag_and_drop",drop_element:"drag_and_drop",headers:"send_custom_headers",urlstream_upload:"send_binary_string",canSendBinary:"send_binary",triggerDialog:"summon_file_dialog"};r[e]?i[r[e]]=t:n||(i[e]=t)}return"string"==typeof t?o.each(t.split(/\s*,\s*/),function(e){n(e,!0)}):"object"==typeof t?o.each(t,function(e,t){n(t,e)}):!0===t&&(e.chunk_size>0&&(i.slice_blob=!0),(e.resize.enabled||!e.multipart)&&(i.send_binary_string=!0),o.each(e,function(e,t){n(t,!!e,!0)})),e.runtimes="html5,html4",i}var o={VERSION:"2.1.9",STOPPED:1,STARTED:2,QUEUED:1,UPLOADING:2,FAILED:4,DONE:5,GENERIC_ERROR:-100,HTTP_ERROR:-200,IO_ERROR:-300,SECURITY_ERROR:-400,INIT_ERROR:-500,FILE_SIZE_ERROR:-600,FILE_EXTENSION_ERROR:-601,FILE_DUPLICATE_ERROR:-602,IMAGE_FORMAT_ERROR:-700,MEMORY_ERROR:-701,IMAGE_DIMENSIONS_ERROR:-702,mimeTypes:t.mimes,ua:t.ua,typeOf:t.typeOf,extend:t.extend,guid:t.guid,getAll:function(e){var t,i=[];"array"!==o.typeOf(e)&&(e=[e]);for(var n=e.length;n--;)(t=o.get(e[n]))&&i.push(t);return i.length?i:null},get:t.get,each:t.each,getPos:t.getPos,getSize:t.getSize,xmlEncode:function(e){var t={"<":"lt",">":"gt","&":"amp",'"':"quot","'":"#39"};return e?(""+e).replace(/[<>&\"\']/g,function(e){return t[e]?"&"+t[e]+";":e}):e},toArray:t.toArray,inArray:t.inArray,addI18n:t.addI18n,translate:t.translate,isEmptyObj:t.isEmptyObj,hasClass:t.hasClass,addClass:t.addClass,removeClass:t.removeClass,getStyle:t.getStyle,addEvent:t.addEvent,removeEvent:t.removeEvent,removeAllEvents:t.removeAllEvents,cleanName:function(e){var t,i;for(t=0,i=[/[\300-\306]/g,"A",/[\340-\346]/g,"a",/\307/g,"C",/\347/g,"c",/[\310-\313]/g,"E",/[\350-\353]/g,"e",/[\314-\317]/g,"I",/[\354-\357]/g,"i",/\321/g,"N",/\361/g,"n",/[\322-\330]/g,"O",/[\362-\370]/g,"o",/[\331-\334]/g,"U",/[\371-\374]/g,"u"];t<i.length;t+=2)e=e.replace(i[t],i[t+1]);return e=(e=e.replace(/\s+/g,"_")).replace(/[^a-z0-9_\-\.]+/gi,"")},buildUrl:function(e,t){var i="";return o.each(t,function(e,t){i+=(i?"&":"")+encodeURIComponent(t)+"="+encodeURIComponent(e)}),i&&(e+=(e.indexOf("?")>0?"&":"?")+i),e},formatSize:function(e){if(e===i||/\D/.test(e))return o.translate("N/A");function t(e,t){return Math.round(e*Math.pow(10,t))/Math.pow(10,t)}var n=1099511627776;return e>1099511627776?t(e/n,1)+" "+o.translate("tb"):e>(n/=1024)?t(e/n,1)+" "+o.translate("gb"):e>(n/=1024)?t(e/n,1)+" "+o.translate("mb"):e>1024?Math.round(e/1024)+" "+o.translate("kb"):e+" "+o.translate("b")},parseSize:t.parseSizeStr,predictRuntime:function(e,i){var n,r;return n=new o.Uploader(e),r=t.Runtime.thatCan(n.getOption().required_features,i||e.runtimes),n.destroy(),r},addFileFilter:function(e,t){s[e]=t}};o.addFileFilter("mime_types",function(e,t,i){e.length&&!e.regexp.test(t.name)?(this.trigger("Error",{code:o.FILE_EXTENSION_ERROR,message:o.translate("File extension error."),file:t}),i(!1)):i(!0)}),o.addFileFilter("max_file_size",function(e,t,i){var n;e=o.parseSize(e),t.size!==n&&e&&t.size>e?(this.trigger("Error",{code:o.FILE_SIZE_ERROR,message:o.translate("File size error."),file:t}),i(!1)):i(!0)}),o.addFileFilter("prevent_duplicates",function(e,t,i){if(e){for(var n=this.files.length;n--;)if(t.name===this.files[n].name&&t.size===this.files[n].size){this.trigger("Error",{code:o.FILE_DUPLICATE_ERROR,message:o.translate("Duplicate file error."),file:t}),i(!1);return}}i(!0)}),o.Uploader=function(e){var n,l,u,d,c=o.guid(),g=[],p={},f=[],h=[],_=!1;function b(){var e,t,i=0;if(this.state==o.STARTED){for(t=0;t<g.length;t++)e||g[t].status!=o.QUEUED?i++:(e=g[t],this.trigger("BeforeUpload",e)&&(e.status=o.UPLOADING,this.trigger("UploadFile",e)));i==g.length&&(this.state!==o.STOPPED&&(this.state=o.STOPPED,this.trigger("StateChanged")),this.trigger("UploadComplete",g))}}function R(e){e.percent=e.size>0?Math.ceil(e.loaded/e.size*100):100,y()}function y(){var e,t;for(u.reset(),e=0;e<g.length;e++)(t=g[e]).size!==i?(u.size+=t.origSize,u.loaded+=t.loaded*t.origSize/t.size):u.size=i,t.status==o.DONE?u.uploaded++:t.status==o.FAILED?u.failed++:u.queued++;u.size===i?u.percent=g.length>0?Math.ceil(u.uploaded/g.length*100):0:(u.bytesPerSec=Math.ceil(u.loaded/((+new Date-l||1)/1e3)),u.percent=u.size>0?Math.ceil(u.loaded/u.size*100):0)}function E(){var e=f[0]||h[0];return!!e&&e.getRuntime().uid}function v(){this.bind("FilesAdded FilesRemoved",function(e){e.trigger("QueueChanged"),e.refresh()}),this.bind("CancelUpload",T),this.bind("BeforeUpload",I),this.bind("UploadFile",S),this.bind("UploadProgress",D),this.bind("StateChanged",F),this.bind("QueueChanged",y),this.bind("Error",A),this.bind("FileUploaded",U),this.bind("Destroy",P)}function z(e,i){var n=this,r=0,s=[],a={runtime_order:e.runtimes,required_caps:e.required_features,preferred_caps:p};o.each(e.runtimes.split(/\s*,\s*/),function(t){e[t]&&(a[t]=e[t])}),e.browse_button&&o.each(e.browse_button,function(i){s.push(function(s){var l=new t.FileInput(o.extend({},a,{accept:e.filters.mime_types,name:e.file_data_name,multiple:e.multi_selection,container:e.container,browse_button:i}));l.onready=function(){var e=t.Runtime.getInfo(this.ruid);t.extend(n.features,{chunks:e.can("slice_blob"),multipart:e.can("send_multipart"),multi_selection:e.can("select_multiple")}),r++,f.push(this),s()},l.onchange=function(){m(n,this.files)},l.bind("mouseenter mouseleave mousedown mouseup",function(n){!_&&(e.browse_button_hover&&("mouseenter"===n.type?t.addClass(i,e.browse_button_hover):"mouseleave"===n.type&&t.removeClass(i,e.browse_button_hover)),e.browse_button_active&&("mousedown"===n.type?t.addClass(i,e.browse_button_active):"mouseup"===n.type&&t.removeClass(i,e.browse_button_active)))}),l.bind("mousedown",function(){n.trigger("Browse")}),l.bind("error runtimeerror",function(){l=null,s()}),l.init()})}),e.drop_element&&o.each(e.drop_element,function(e){s.push(function(i){var s=new t.FileDrop(o.extend({},a,{drop_zone:e}));s.onready=function(){var e=t.Runtime.getInfo(this.ruid);t.extend(n.features,{chunks:e.can("slice_blob"),multipart:e.can("send_multipart"),dragdrop:e.can("drag_and_drop")}),r++,h.push(this),i()},s.ondrop=function(){m(n,this.files)},s.bind("error runtimeerror",function(){s=null,i()}),s.init()})}),t.inSeries(s,function(){"function"==typeof i&&i(r)})}function w(e,n,r){var s=new t.Image;try{s.onload=function(){if(n.width>this.width&&n.height>this.height&&n.quality===i&&n.preserve_headers&&!n.crop)return this.destroy(),r(e);s.downsize(n.width,n.height,n.crop,n.preserve_headers)},s.onresize=function(){r(this.getAsBlob(e.type,n.quality)),this.destroy()},s.onerror=function(){r(e)},s.load(e)}catch(t){r(e)}}function O(e,i,r){var s=this,l=!1;function u(e,t,i){var r,a,u=n[e];switch(e){case"max_file_size":"max_file_size"===e&&(n.max_file_size=n.filters.max_file_size=t);break;case"chunk_size":(t=o.parseSize(t))&&(n[e]=t,n.send_file_name=!0);break;case"multipart":n[e]=t,t||(n.send_file_name=!0);break;case"unique_names":n[e]=t,t&&(n.send_file_name=!0);break;case"filters":"array"===o.typeOf(t)&&(t={mime_types:t}),i?o.extend(n.filters,t):n.filters=t,t.mime_types&&(n.filters.mime_types.regexp=(r=n.filters.mime_types,a=[],o.each(r,function(e){o.each(e.extensions.split(/,/),function(e){/^\s*\*\s*$/.test(e)?a.push("\\.*"):a.push("\\."+e.replace(RegExp("["+"/^$.*+?|()[]{}\\".replace(/./g,"\\$&")+"]","g"),"\\$&"))})}),RegExp("("+a.join("|")+")$","i")));break;case"resize":i?o.extend(n.resize,t,{enabled:!0}):n.resize=t;break;case"prevent_duplicates":n.prevent_duplicates=n.filters.prevent_duplicates=!!t;break;case"container":case"browse_button":case"drop_element":t="container"===e?o.get(t):o.getAll(t);case"runtimes":case"multi_selection":n[e]=t,i||(l=!0);break;default:n[e]=t}i||s.trigger("OptionChanged",e,t,u)}"object"==typeof e?o.each(e,function(e,t){u(t,e,r)}):u(e,i,r),r?(n.required_features=a(o.extend({},n)),p=a(o.extend({},n,{required_features:!0}))):l&&(s.trigger("Destroy"),z.call(s,n,function(e){e?(s.runtime=t.Runtime.getInfo(E()).type,s.trigger("Init",{runtime:s.runtime}),s.trigger("PostInit")):s.trigger("Error",{code:o.INIT_ERROR,message:o.translate("Init error.")})}))}function I(e,t){if(e.settings.unique_names){var i=t.name.match(/\.([^.]+)$/),n="part";i&&(n=i[1]),t.target_name=t.id+"."+n}}function S(e,i){var n,s=e.settings.url,a=e.settings.chunk_size,l=e.settings.max_retries,u=e.features,c=0;function g(){l-- >0?r(f,1e3):(i.loaded=c,e.trigger("Error",{code:o.HTTP_ERROR,message:o.translate("HTTP Error."),file:i,response:d.responseText,status:d.status,responseHeaders:d.getAllResponseHeaders()}))}function f(){var h,m,_,b={};i.status===o.UPLOADING&&e.state!==o.STOPPED&&(e.settings.send_file_name&&(b.name=i.target_name||i.name),a&&u.chunks&&n.size>a?(_=Math.min(a,n.size-c),h=n.slice(c,c+_)):(_=n.size,h=n),a&&u.chunks&&(e.settings.send_chunk_number?(b.chunk=Math.ceil(c/a),b.chunks=Math.ceil(n.size/a)):(b.offset=c,b.total=n.size)),(d=new t.XMLHttpRequest).upload&&(d.upload.onprogress=function(t){i.loaded=Math.min(i.size,c+t.loaded),e.trigger("UploadProgress",i)}),d.onload=function(){if(d.status>=400){g();return}l=e.settings.max_retries,_<n.size?(h.destroy(),c+=_,i.loaded=Math.min(c,n.size),e.trigger("ChunkUploaded",i,{offset:i.loaded,total:n.size,response:d.responseText,status:d.status,responseHeaders:d.getAllResponseHeaders()}),"Android Browser"===t.Env.browser&&e.trigger("UploadProgress",i)):i.loaded=i.size,h=m=null,!c||c>=n.size?(i.size!=i.origSize&&(n.destroy(),n=null),e.trigger("UploadProgress",i),i.status=o.DONE,e.trigger("FileUploaded",i,{response:d.responseText,status:d.status,responseHeaders:d.getAllResponseHeaders()})):r(f,1)},d.onerror=function(){g()},d.onloadend=function(){this.destroy(),d=null},e.settings.multipart&&u.multipart?(d.open("post",s,!0),o.each(e.settings.headers,function(e,t){d.setRequestHeader(t,e)}),m=new t.FormData,o.each(o.extend(b,e.settings.multipart_params),function(e,t){m.append(t,e)}),m.append(e.settings.file_data_name,h),d.send(m,{runtime_order:e.settings.runtimes,required_caps:e.settings.required_features,preferred_caps:p})):(s=o.buildUrl(e.settings.url,o.extend(b,e.settings.multipart_params)),d.open("post",s,!0),d.setRequestHeader("Content-Type","application/octet-stream"),o.each(e.settings.headers,function(e,t){d.setRequestHeader(t,e)}),d.send(h,{runtime_order:e.settings.runtimes,required_caps:e.settings.required_features,preferred_caps:p})))}i.loaded&&(c=i.loaded=a?a*Math.floor(i.loaded/a):0),n=i.getSource(),e.settings.resize.enabled&&function(e,i){if(e.ruid){var n=t.Runtime.getInfo(e.ruid);if(n)return n.can(i)}return!1}(n,"send_binary_string")&&~t.inArray(n.type,["image/jpeg","image/png"])?w.call(this,n,e.settings.resize,function(e){n=e,i.size=e.size,f()}):f()}function D(e,t){R(t)}function F(e){if(e.state==o.STARTED)l=+new Date;else if(e.state==o.STOPPED)for(var t=e.files.length-1;t>=0;t--)e.files[t].status==o.UPLOADING&&(e.files[t].status=o.QUEUED,y())}function T(){d&&d.abort()}function U(e){y(),r(function(){b.call(e)},1)}function A(e,t){t.code===o.INIT_ERROR?e.destroy():t.code===o.HTTP_ERROR&&(t.file.status=o.FAILED,R(t.file),e.state==o.STARTED&&(e.trigger("CancelUpload"),r(function(){b.call(e)},1)))}function P(e){e.stop(),o.each(g,function(e){e.destroy()}),g=[],f.length&&(o.each(f,function(e){e.destroy()}),f=[]),h.length&&(o.each(h,function(e){e.destroy()}),h=[]),p={},_=!1,l=d=null,u.reset()}n={runtimes:t.Runtime.order,max_retries:0,chunk_size:0,multipart:!0,multi_selection:!0,file_data_name:"file",filters:{mime_types:[],prevent_duplicates:!1,max_file_size:0},resize:{enabled:!1,preserve_headers:!0,crop:!1},send_file_name:!0,send_chunk_number:!0},O.call(this,e,null,!0),u=new o.QueueProgress,o.extend(this,{id:c,uid:c,state:o.STOPPED,features:{},runtime:null,files:g,settings:n,total:u,init:function(){var e,i,r=this;return("function"==typeof(e=r.getOption("preinit"))?e(r):o.each(e,function(e,t){r.bind(t,e)}),v.call(r),o.each(["container","browse_button","drop_element"],function(e){if(null===r.getOption(e))return i={code:o.INIT_ERROR,message:o.translate("'%' specified, but cannot be found.")},!1}),i)?r.trigger("Error",i):n.browse_button||n.drop_element?void z.call(r,n,function(e){var i=r.getOption("init");"function"==typeof i?i(r):o.each(i,function(e,t){r.bind(t,e)}),e?(r.runtime=t.Runtime.getInfo(E()).type,r.trigger("Init",{runtime:r.runtime}),r.trigger("PostInit")):r.trigger("Error",{code:o.INIT_ERROR,message:o.translate("Init error.")})}):r.trigger("Error",{code:o.INIT_ERROR,message:o.translate("You must specify either 'browse_button' or 'drop_element'.")})},setOption:function(e,t){O.call(this,e,t,!this.runtime)},getOption:function(e){return e?n[e]:n},refresh:function(){f.length&&o.each(f,function(e){e.trigger("Refresh")}),this.trigger("Refresh")},start:function(){this.state!=o.STARTED&&(this.state=o.STARTED,this.trigger("StateChanged"),b.call(this))},stop:function(){this.state!=o.STOPPED&&(this.state=o.STOPPED,this.trigger("StateChanged"),this.trigger("CancelUpload"))},disableBrowse:function(){_=arguments[0]===i||arguments[0],f.length&&o.each(f,function(e){e.disable(_)}),this.trigger("DisableBrowse",_)},getFile:function(e){var t;for(t=g.length-1;t>=0;t--)if(g[t].id===e)return g[t]},addFile:function(e,i){var n,a=this,l=[],u=[];n=E(),function e(d){var c=t.typeOf(d);if(d instanceof t.File){if(!d.ruid&&!d.isDetached()){if(!n)return!1;d.ruid=n,d.connectRuntime(n)}e(new o.File(d))}else d instanceof t.Blob?(e(d.getSource()),d.destroy()):d instanceof o.File?(i&&(d.name=i),l.push(function(e){var i,n;i=function(t){t||(g.push(d),u.push(d),a.trigger("FileFiltered",d)),r(e,1)},n=[],t.each(a.settings.filters,function(e,t){s[t]&&n.push(function(i){s[t].call(a,e,d,function(e){i(!e)})})}),t.inSeries(n,i)})):-1!==t.inArray(c,["file","blob"])?e(new t.File(null,d)):"node"===c&&"filelist"===t.typeOf(d.files)?t.each(d.files,e):"array"===c&&(i=null,t.each(d,e))}(e),l.length&&t.inSeries(l,function(){u.length&&a.trigger("FilesAdded",u)})},removeFile:function(e){for(var t="string"==typeof e?e:e.id,i=g.length-1;i>=0;i--)if(g[i].id===t)return this.splice(i,1)[0]},splice:function(e,t){var n=g.splice(e===i?0:e,t===i?g.length:t),r=!1;return this.state==o.STARTED&&(o.each(n,function(e){if(e.status===o.UPLOADING)return r=!0,!1}),r&&this.stop()),this.trigger("FilesRemoved",n),o.each(n,function(e){e.destroy()}),r&&this.start(),n},dispatchEvent:function(e){var t,i;if(e=e.toLowerCase(),t=this.hasEventListener(e)){t.sort(function(e,t){return t.priority-e.priority}),i=[].slice.call(arguments),i.shift(),i.unshift(this);for(var n=0;n<t.length;n++)if(!1===t[n].fn.apply(t[n].scope,i))return!1}return!0},bind:function(e,t,i,n){o.Uploader.prototype.bind.call(this,e,t,n,i)},destroy:function(){this.trigger("Destroy"),n=u=null,this.unbindAll()}})},o.Uploader.prototype=t.EventTarget.instance,o.File=(n={},function(e){o.extend(this,{id:o.guid(),name:e.name||e.fileName,type:e.type||"",size:e.size||e.fileSize,origSize:e.size||e.fileSize,loaded:0,percent:0,status:o.QUEUED,lastModifiedDate:e.lastModifiedDate||new Date().toLocaleString(),getNative:function(){var e=this.getSource().getSource();return -1!==t.inArray(t.typeOf(e),["blob","file"])?e:null},getSource:function(){return n[this.id]?n[this.id]:null},destroy:function(){var e=this.getSource();e&&(e.destroy(),delete n[this.id])}}),n[this.id]=e}),o.QueueProgress=function(){var e=this;e.size=0,e.loaded=0,e.uploaded=0,e.failed=0,e.queued=0,e.percent=0,e.bytesPerSec=0,e.reset=function(){e.size=e.loaded=e.uploaded=e.failed=e.queued=e.percent=e.bytesPerSec=0}},e.plupload=o}(window,mOxie);let i=recosettings.recosettings,n=recosettings.recouser,r=recosettings.valid,s=recosettings.screen,a=!0;i.enableresize||(a=!1);let o=i.imageoptions[0].general.height,l=i.imageoptions[0].general.width,u=i.imageoptions[0].general.compression,d=i.imageoptions[0].general.enableResizeDimensions,c=i.imageoptions[0].general.convert,g=i.ignoredroles,p=n.roles,f=s?.post_type;r&&(i.imageoptions[0][f]?.enabled?(o=i.imageoptions[0][f].height,l=i.imageoptions[0][f].width,u=i.imageoptions[0][f].compression,d=i.imageoptions[0][f].enableResizeDimensions,c=i.imageoptions[0][f].convert,e=i.imageoptions[0][f].method,t=i.imageoptions[0][f].background):(e=i.imageoptions[0].general.method,t=i.imageoptions[0].general.background));let h=g.split(",").some(e=>p.includes(e));function m(e,t){if(a&&!h){let i=["image/png","image/jpg","image/jpeg","image/webp","image/avif"];t.forEach(t=>{i.includes(t.type)?_([{source:t.getSource(),name:t.name}]).then(t=>{for(let i of t)e.addFile(i)}):e.addFile(t)})}else e.addFile(t)}async function _(e){let t=[];for(let i of e){let e=(window.webkitURL||window.URL).createObjectURL(i.source);try{let n=await b(e,i.name),r=new mOxie.File(null,n);r.name=i.name,t.push(r)}catch(e){alert("Resize Control failed processing file, original file is used instead"),console.error("Error processing file:",e),t.push(i)}}return t}async function b(i,n){return new Promise((s,a)=>{var g,p;let f=1,h=n.split(".").pop();h="jpg"===(g=c,p=h,r?"none"!==g&&(p=g):!0===g&&n.includes(".png")&&(p="jpeg"),h=p)?"jpeg":h,u&&(f=parseFloat((1-.1*u).toFixed(1))),h="jpg"===h?"jpeg":h;let m=l||700,_=o||700;d||(m=null,_=null);let b=r?e:"scale",R=r?t:null,y=new Image,E="jpeg"===h?"jpg":h,v=n.slice(0,n.lastIndexOf("."))+"."+E,z=window.document.createElement("canvas");z.className="convertcanvas";let w=z.getContext("2d");document.body.appendChild(z);let O="image/"+h;y.src=i,y.onload=function(){let{width:e,height:t}=y,i=e/t;if(m&&!_?t=(e=m)/i:!m&&_?e=(t=_)*i:m&&_&&(e=m,t=_,"contain"===b?e/t>i?e=t*i:t=e/i:"cover"===b?e/t<i?e=t*i:t=e/i:i>m/_?(t=m/i,e=m):(e=_*i,t=_)),w&&z){"contain"===b||"cover"===b?(z.width=m||e,z.height=_||t):(z.width=e,z.height=t),"png"===h?w.fillStyle=R||"transparent":w.fillStyle=R||"white",w.fillRect(0,0,z.width,z.height);let i=(z.width-e)/2,n=(z.height-t)/2;w.drawImage(y,0,0,y.width,y.height,i,n,e,t)}z.toBlob(async function(e){if(e){if("image/png"===e.type&&f<1){let t=.3;f<.8?t=.1:f<.9&&(t=.2);let i={useWebWorker:!0,initialQuality:t,alwaysKeepResolution:!0},n=new File([e],v,{type:O});try{let e=await imageCompression(n,i),t=new File([e],e.name,{type:e.type});s(t),document.body.removeChild(z)}catch(e){console.log("Error occurred while compressing the image:",e)}}else s(new File([e],v,{type:O})),document.body.removeChild(z)}},O,f)}})}})(); -
resize-control/trunk/resize-control.php
r3170190 r3292597 5 5 * Plugin URI: https://tuningwp.com 6 6 * Description: Automate all your media resolutions and sizes for you and your wp accounts to save time, site speed and disk space and bandwith. 7 * Version: 1.0.9 7 * Version: 1.0.91 8 8 * Requires at least: 6.4 9 9 * Requires PHP: 8.0 … … 20 20 } 21 21 22 define('RECO_VERSION', '1.0.9 ');22 define('RECO_VERSION', '1.0.91'); 23 23 define('RECO_PLUGINROOT', __DIR__); 24 24 define('RECO_PLUGINFILE', __FILE__);
Note: See TracChangeset
for help on using the changeset viewer.