PageSourceSearch

https://freesavevideo.online/_app/immutable/nodes/50.Bs50_yet.js

js freesavevideo.online collected 2026-10-02 00:05:56 UTC 8,767 bytes, 1 lines download raw bytes

1import{s as O,d as q,f as v,C,i as x,y as z,k as y,D as E,j as b,l as S,n as h,m as w,z as G,E as I,o as k,a as V,e as F,c as H,u as K,g as W,b as X}from"../chunks/scheduler.Cc4Vd-yM.js";import{S as j,i as T,c as d,a as $,m as p,t as c,b as m,d as g,g as N,e as B}from"../chunks/index.BuGf6HXW.js";import{t as A}from"../chunks/translations.Dtlp3A-Q.js";import{S as Y}from"../chunks/SettingsToggle.SCXFx9ND.js";import{c as M}from"../chunks/dialogs.D3NcrG_Q.js";import{c as Z,r as tt,b as et,l as L,u as nt}from"../chunks/settings.BZ0ID_rY.js";import{t as ot,d as rt,f as at,v as st,y as it,s as lt}from"../chunks/settings.CVlnDdPZ.js";import{A as J}from"../chunks/ActionButton.BHZlVraB.js";import{T as ft}from"../chunks/trash.CsvpTbDS.js";import{I as ut,g as ct,a as mt}from"../chunks/Icon.CsgrnZQA.js";import{F as dt}from"../chunks/file-import.L6asBoHm.js";import{S as R}from"../chunks/SettingsCategory.B9enzUGc.js";function P(a,t=Z){if(typeof a>"u")return!0;if(typeof a!=typeof t)return!1;if(typeof t!="object")return!0;if(t===null||a===null)return a===t;if(Array.isArray(t))return!0;if(typeof a!="object")return!1;const s=new Set([...Object.keys(a),...Object.keys(t)]);for(const e of s){const r=a,o=t;if(!P(r[e],o[e]))return!1}return!0}function $t(a,t){return a===void 0||t.includes(a)}function pt(a){for(const[t,s]of a)if(!$t(t,s))return!1;return!0}function gt(a){var t,s,e,r,o,n;return a!=null&&a.schemaVersion?P(a)&&pt([[(t=a==null?void 0:a.appearance)==null?void 0:t.theme,ot],[(s=a==null?void 0:a.save)==null?void 0:s.downloadMode,rt],[(e=a==null?void 0:a.save)==null?void 0:e.filenameStyle,at],[(r=a==null?void 0:a.save)==null?void 0:r.videoQuality,st],[(o=a==null?void 0:a.save)==null?void 0:o.youtubeVideoCodec,it],[(n=a==null?void 0:a.save)==null?void 0:n.savingMethod,lt]]):!1}function _t(a){let t,s,e,r=a[0]("button.reset")+"",o,n,i,l;return s=new ft({}),{c(){t=q("button"),d(s.$$.fragment),e=v(),o=C(r),this.h()},l(f){t=x(f,"BUTTON",{id:!0,class:!0});var u=z(t);$(s.$$.fragment,u),e=y(u),o=E(u,r),u.forEach(b),this.h()},h(){S(t,"id","setting-button-reset"),S(t,"class","button svelte-i6cnnm")},m(f,u){h(f,t,u),p(s,t,null),w(t,e),w(t,o),n=!0,i||(l=G(t,"click",a[1]),i=!0)},p(f,[u]){(!n||u&1)&&r!==(r=f[0]("button.reset")+"")&&I(o,r)},i(f){n||(c(s.$$.fragment,f),n=!0)},o(f){m(s.$$.fragment,f),n=!1},d(f){f&&b(t),g(s),i=!1,l()}}}function bt(a,t,s){let e;return k(a,A,o=>s(0,e=o)),[e,()=>{M({id:"wipe-confirm",type:"small",icon:"warn-red",title:e("dialog.reset.title"),bodyText:e("dialog.reset.body"),buttons:[{text:e("button.cancel"),main:!1,action:()=>{}},{text:e("button.reset"),color:"red",main:!0,timeout:2e3,action:()=>tt()}]})}]}class ht extends j{constructor(t){super(),T(this,t,bt,_t,O,{})}}function vt(a){let t;const s=a[2].default,e=H(s,a,a[3],null);return{c(){e&&e.c()},l(r){e&&e.l(r)},m(r,o){e&&e.m(r,o),t=!0},p(r,o){e&&e.p&&(!t||o&8)&&K(e,s,r,r[3],t?X(s,r[3],o,null):W(r[3]),null)},i(r){t||(c(e,r),t=!0)},o(r){m(e,r),t=!1},d(r){e&&e.d(r)}}}function yt(a){let t,s;const e=[{type:"outline"},{name:"file-export"},a[1],{iconNode:a[0]}];let r={$$slots:{default:[vt]},$$scope:{ctx:a}};for(let o=0;o<e.length;o+=1)r=V(r,e[o]);return t=new ut({props:r}),{c(){d(t.$$.fragment)},l(o){$(t.$$.fragment,o)},m(o,n){p(t,o,n),s=!0},p(o,[n]){const i=n&3?ct(e,[e[0],e[1],n&2&&mt(o[1]),n&1&&{iconNode:o[0]}]):{};n&8&&(i.$$scope={dirty:n,ctx:o}),t.$set(i)},i(o){s||(c(t.$$.fragment,o),s=!0)},o(o){m(t.$$.fragment,o),s=!1},d(o){g(t,o)}}}function St(a,t,s){let{$$slots:e={},$$scope:r}=t;const o=[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}],["path",{d:"M11.5 21h-4.5a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v5m-5 6h7m-3 -3l3 3l-3 3"}]];return a.$$set=n=>{s(1,t=V(V({},t),F(n))),"$$scope"in n&&s(3,r=n.$$scope)},t=F(t),[o,t,e,r]}class wt extends j{constructor(t){super(),T(this,t,St,yt,O,{})}}function kt(a){let t,s,e=a[1]("button.import")+"",r,o;return t=new dt({}),{c(){d(t.$$.fragment),s=v(),r=C(e)},l(n){$(t.$$.fragment,n),s=y(n),r=E(n,e)},m(n,i){p(t,n,i),h(n,s,i),h(n,r,i),o=!0},p(n,i){(!o||i&2)&&e!==(e=n[1]("button.import")+"")&&I(r,e)},i(n){o||(c(t.$$.fragment,n),o=!0)},o(n){m(t.$$.fragment,n),o=!1},d(n){n&&(b(s),b(r)),g(t,n)}}}function U(a){let t,s;return t=new J({props:{id:"export-settings",click:a[3],$$slots:{default:[Ot]},$$scope:{ctx:a}}}),{c(){d(t.$$.fragment)},l(e){$(t.$$.fragment,e)},m(e,r){p(t,e,r),s=!0},p(e,r){const o={};r&34&&(o.$$scope={dirty:r,ctx:e}),t.$set(o)},i(e){s||(c(t.$$.fragment,e),s=!0)},o(e){m(t.$$.fragment,e),s=!1},d(e){g(t,e)}}}
1function Ot(a){let t,s,e=a[1]("button.export")+"",r,o;return t=new wt({}),{c(){d(t.$$.fragment),s=v(),r=C(e)},l(n){$(t.$$.fragment,n),s=y(n),r=E(n,e)},m(n,i){p(t,n,i),h(n,s,i),h(n,r,i),o=!0},p(n,i){(!o||i&2)&&e!==(e=n[1]("button.export")+"")&&I(r,e)},i(n){o||(c(t.$$.fragment,n),o=!0)},o(n){m(t.$$.fragment,n),o=!1},d(n){n&&(b(s),b(r)),g(t,n)}}}function Q(a){let t,s;return t=new ht({}),{c(){d(t.$$.fragment)},l(e){$(t.$$.fragment,e)},m(e,r){p(t,e,r),s=!0},i(e){s||(c(t.$$.fragment,e),s=!0)},o(e){m(t.$$.fragment,e),s=!1},d(e){g(t,e)}}}function jt(a){let t,s,e,r,o;s=new J({props:{id:"import-settings",click:a[2],$$slots:{default:[kt]},$$scope:{ctx:a}}});let n=a[0].schemaVersion&&U(a),i=a[0].schemaVersion&&Q();return{c(){t=q("div"),d(s.$$.fragment),e=v(),n&&n.c(),r=v(),i&&i.c(),this.h()},l(l){t=x(l,"DIV",{class:!0,id:!0});var f=z(t);$(s.$$.fragment,f),e=y(f),n&&n.l(f),r=y(f),i&&i.l(f),f.forEach(b),this.h()},h(){S(t,"class","button-row svelte-ism1gp"),S(t,"id","settings-data-transfer")},m(l,f){h(l,t,f),p(s,t,null),w(t,e),n&&n.m(t,null),w(t,r),i&&i.m(t,null),o=!0},p(l,[f]){const u={};f&34&&(u.$$scope={dirty:f,ctx:l}),s.$set(u),l[0].schemaVersion?n?(n.p(l,f),f&1&&c(n,1)):(n=U(l),n.c(),c(n,1),n.m(t,r)):n&&(N(),m(n,1,1,()=>{n=null}),B()),l[0].schemaVersion?i?f&1&&c(i,1):(i=Q(),i.c(),c(i,1),i.m(t,null)):i&&(N(),m(i,1,1,()=>{i=null}),B())},i(l){o||(c(s.$$.fragment,l),c(n),c(i),o=!0)},o(l){m(s.$$.fragment,l),m(n),m(i),o=!1},d(l){l&&b(t),g(s),n&&n.d(),i&&i.d()}}}function Tt(a,t,s){let e,r;k(a,et,l=>s(0,e=l)),k(a,A,l=>s(1,r=l));const o=l=>{var f;try{const u=(f=l.result)==null?void 0:f.toString();if(!u)throw r("error.import.no_data");const _=L(u);if(!gt(_))throw r("error.import.invalid");M({id:"import-confirm",type:"small",icon:"warn-red",title:r("dialog.safety.title"),bodyText:r("dialog.import.body"),buttons:[{text:r("button.cancel"),main:!1,action:()=>{}},{text:r("button.import"),color:"red",main:!0,timeout:5e3,action:()=>nt(L(u))}]})}catch(u){let _=r("error.import.no_data");u instanceof Error?(console.error("settings import error:",u),_=r("error.import.unknown",{value:u.message})):typeof u=="string"&&(_=u),M({id:"settings-import-error",type:"small",meowbalt:"error",bodyText:_,buttons:[{text:r("button.gotit"),main:!0,action:()=>{}}]})}};return[e,r,()=>{const l=document.createElement("input");l.type="file",l.accept=".json",l.onchange=f=>{var D;const u=f.target,_=new FileReader;_.onload=()=>o(_),((D=u.files)==null?void 0:D.length)===1&&_.readAsText(u.files[0])},l.click()},()=>{const l=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),f=document.createElement("a");f.href=URL.createObjectURL(l),f.download="settings.json",f.click()}]}class Vt extends j{constructor(t){super(),T(this,t,Tt,jt,O,{})}}function Mt(a){let t,s;return t=new Y({props:{settingContext:"advanced",settingId:"debug",title:a[0]("settings.advanced.debug.title"),description:a[0]("settings.advanced.debug.description")}}),{c(){d(t.$$.fragment)},l(e){$(t.$$.fragment,e)},m(e,r){p(t,e,r),s=!0},p(e,r){const o={};r&1&&(o.title=e[0]("settings.advanced.debug.title")),r&1&&(o.description=e[0]("settings.advanced.debug.description")),t.$set(o)},i(e){s||(c(t.$$.fragment,e),s=!0)},o(e){m(t.$$.fragment,e),s=!1},d(e){g(t,e)}}}function Ct(a){let t,s;return t=new Vt({}),{c(){d(t.$$.fragment)},l(e){$(t.$$.fragment,e)},m(e,r){p(t,e,r),s=!0},i(e){s||(c(t.$$.fragment,e),s=!0)},o(e){m(t.$$.fragment,e),s=!1},d(e){g(t,e)}}}function Et(a){let t,s,e,r;return t=new R({props:{sectionId:"debug",title:a[0]("settings.advanced.debug"),$$slots:{default:[Mt]},$$scope:{ctx:a}}}),e=new R({props:{sectionId:"data",title:a[0]("settings.advanced.data"),$$slots:{default:[Ct]},$$scope:{ctx:a}}}),{c(){d(t.$$.fragment),s=v(),d(e.$$.fragment)},l(o){$(t.$$.fragment,o),s=y(o),$(e.$$.fragment,o)},m(o,n){p(t,o,n),h(o,s,n),p(e,o,n),r=!0},p(o,[n]){const i={};n&1&&(i.title=o[0]("settings.advanced.debug")),n&3&&(i.$$scope={dirty:n,ctx:o}),t.$set(i);const l={};n&1&&(l.title=o[0]("settings.advanced.data")),n&2&&(l.$$scope={dirty:n,ctx:o}),e.$set(l)},i(o){r||(c(t.$$.fragment,o),c(e.$$.fragment,o),r=!0)},o(o){m(t.$$.fragment,o),m(e.$$.fragment,o),r=!1},d(o){o&&b(s),g(t,o),g(e,o)}}}function It(a,t,s){let e;return k(a,A,r=>s(0,e=r)),[e]}class Jt extends j{constructor(t){super(),T(this,t,It,Et,O,{})}}export{Jt as component};

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.