PageSourceSearch

https://paper2card.com/_app/immutable/chunks/D1ORV0r7.js

js paper2card.com collected 2026-10-04 03:51:21 UTC 7,977 bytes, 2 lines download raw bytes

1import{c as J,n as M,e as R,t as Y,h as N,T as X,b2 as x,b3 as rr,ae as tr,b4 as er,B as sr,b5 as ar,s as U,b6 as ir,b7 as or,b1 as fr,b8 as cr,b9 as ur,aa as lr,y as nr,ba as dr,bb as vr,bc as _r,bd as br,be as gr,bf as hr,bg as pr,bh as O}from"./BoY3XPVS.js";import"./DsnmJJEf.js";import"./DFr4O8rJ.js";function Sr(r,s){var t=void 0,e;J(()=>{t!==(t=s())&&(e&&(M(e),e=null),t&&(e=R(()=>{Y(()=>t(r))})))})}function q(r){var s,t,e="";if(typeof r=="string"||typeof r=="number")e+=r;else if(typeof r=="object")if(Array.isArray(r)){var a=r.length;for(s=0;s<a;s++)r[s]&&(t=q(r[s]))&&(e&&(e+=" "),e+=t)}else for(t in r)r[t]&&(e&&(e+=" "),e+=t);return e}function Ar(){for(var r,s,t=0,e="",a=arguments.length;t<a;t++)(r=arguments[t])&&(s=q(r))&&(e&&(e+=" "),e+=s);return e}function wr(r){return typeof r=="object"?Ar(r):r??""}const B=[...` 	
2\r\f \v\uFEFF`];function Nr(r,s,t){var e=r==null?"":""+r;if(s&&(e=e?e+" "+s:s),t){for(var a in t)if(t[a])e=e?e+" "+a:a;else if(e.length)for(var i=a.length,f=0;(f=e.indexOf(a,f))>=0;){var d=f+i;(f===0||B.includes(e[f-1]))&&(d===e.length||B.includes(e[d]))?e=(f===0?"":e.substring(0,f))+e.substring(d+1):f=d}}return e===""?null:e}function D(r,s=!1){var t=s?" !important;":";",e="";for(var a in r){var i=r[a];i!=null&&i!==""&&(e+=" "+a+": "+i+t)}return e}function C(r){return r[0]!=="-"||r[1]!=="-"?r.toLowerCase():r}function yr(r,s){if(s){var t="",e,a;if(Array.isArray(s)?(e=s[0],a=s[1]):e=s,r){r=String(r).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var i=!1,f=0,d=!1,_=[];e&&_.push(...Object.keys(e).map(C)),a&&_.push(...Object.keys(a).map(C));var o=0,v=-1;const w=r.length;for(var b=0;b<w;b++){var c=r[b];if(d?c==="/"&&r[b-1]==="*"&&(d=!1):i?i===c&&(i=!1):c==="/"&&r[b+1]==="*"?d=!0:c==='"'||c==="'"?i=c:c==="("?f++:c===")"&&f--,!d&&i===!1&&f===0){if(c===":"&&v===-1)v=b;else if(c===";"||b===w-1){if(v!==-1){var A=C(r.substring(o,v).trim());if(!_.includes(A)){c!==";"&&b++;var y=r.substring(o,b).trim();t+=" "+y+";"}}o=b+1,v=-1}}}}return e&&(t+=D(e)),a&&(t+=D(a,!0)),t=t.trim(),t===""?null:t}return r==null?null:String(r)}function Tr(r,s,t,e,a,i){var f=r.__className;if(N||f!==t||f===void 0){var d=Nr(t,e,i);(!N||d!==r.getAttribute("class"))&&(d==null?r.removeAttribute("class"):s?r.className=d:r.setAttribute("class",d)),r.__className=t}else if(i&&a!==i)for(var _ in i){var o=!!i[_];(a==null||o!==!!a[_])&&r.classList.toggle(_,o)}return i}function k(r,s={},t,e){for(var a in t){var i=t[a];s[a]!==i&&(t[a]==null?r.style.removeProperty(a):r.style.setProperty(a,i,e))}}function Lr(r,s,t,e){var a=r.__style;if(N||a!==s){var i=yr(s,e);(!N||i!==r.getAttribute("style"))&&(i==null?r.removeAttribute("style"):r.style.cssText=i),r.__style=s}else e&&(Array.isArray(e)?(k(r,t?.[0],e[0]),k(r,t?.[1],e[1],"important")):k(r,t,e));return e}function j(r,s,t=!1){if(r.multiple){if(s==null)return;if(!X(s))return x();for(var e of r.options)e.selected=s.includes(F(e));return}for(e of r.options){var a=F(e);if(rr(a,s)){e.selected=!0;return}}(!t||s!==void 0)&&(r.selectedIndex=-1)}function Er(r){var s=new MutationObserver(()=>{j(r,r.__value)});s.observe(r,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),tr(()=>{s.disconnect()})}function F(r){return"__value"in r?r.__value:r.value}const L=Symbol("class"),E=Symbol("style"),K=Symbol("is custom element"),m=Symbol("is html");function Ir(r){if(N){var s=!1,t=()=>{if(!s){if(s=!0,r.hasAttribute("value")){var e=r.value;I(r,"value",null),r.value=e}if(r.hasAttribute("checked")){var a=r.checked;I(r,"checked",null),r.checked=a}}};r.__on_r=t,nr(t),dr()}}function Or(r,s){s?r.hasAttribute("selected")||r.setAttribute("selected",""):r.removeAttribute("selected")}function I(r,s,t,e){var a=G(r);N&&(a[s]=r.getAttribute(s),s==="src"||s==="srcset"||s==="href"&&r.nodeName==="LINK")||a[s]!==(a[s]=t)&&(s==="loading"&&(r[br]=t),t==null?r.removeAttribute(s):typeof t!="string"&&W(r).includes(s)?r[s]=t:r.setAttribute(s,t))}function $r(r,s,t,e,a=!1,i=!1){if(N&&a&&r.tagName==="INPUT"){var f=r,d=f.type==="checkbox"?"defaultChecked":"defaultValue";d in t||Ir(f)}var _=G(r),o=_[K],v=!_[m];let b=N&&o;b&&U(!1);var c=s||{},A=r.tagName==="OPTION";for(var y in s)y in t||(t[y]=null);t.class?t.class=wr(t.class):(e||t[L])&&(t.class=null),t[E]&&(t.style??=null);var w=W(r);for(const u in t){let l=t[u];if(A&&u==="value"&&l==null){r.value=r.__value="",c[u]=l;continue}if(u==="class"){var S=r.namespaceURI==="http://www.w3.org/1999/xhtml";Tr(r,S,l,e,s?.[L],t[L]),c[u]=l,c[L]=t[L];continue}if(u==="style"){Lr(r,l,s?.[E],t[E]),c[u]=l,c[E]=t[E];continue}var P=c[u];if(!(l===P&&!(l===void 0&&r.hasAttribute(u)))){c[u]=l;var V=u[0]+u[1];if(V!=="$$")if(V==="on"){const p={},T="$$"+u;let g=u.slice(2);var $=gr(g);if(ir(g)&&(g=g.slice(0,-7),p.capture=!0),!$&&P){if(l!=null)continue;r.removeEventListener(g,c[T],p),c[T]=null}if(l!=null)if($)r[`__${g}`]=l,fr([g]);else{let Z=function(Q){c[u].call(this,Q)};c[T]=or(g,r,Z,p)}else $&&(r[`__${g}`]=void 0)}else if(u==="style")I(r,u,l);else if(u==="autofocus")cr(r,!!l);else if(!o&&(u==="__value"||u==="value"&&l!=null))r.value=r.__value=l;else if(u==="selected"&&A)Or(r,l);else{var h=u;v||(h=ur(h));var z=h==="defaultValue"||h==="defaultChecked";if(l==null&&!o&&!z)if(_[u]=null,h==="value"||h==="checked"){let p=r;
2const T=s===void 0;if(h==="value"){let g=p.defaultValue;p.removeAttribute(h),p.defaultValue=g,p.value=p.__value=T?g:null}else{let g=p.defaultChecked;p.removeAttribute(h),p.defaultChecked=g,p.checked=T?g:!1}}else r.removeAttribute(u);else z||w.includes(h)&&(o||typeof l!="string")?(r[h]=l,h in _&&(_[h]=lr)):typeof l!="function"&&I(r,h,l)}}}return b&&U(!0),c}function zr(r,s,t=[],e=[],a,i=!1,f=!1){er(t,e,d=>{var _=void 0,o={},v=r.nodeName==="SELECT",b=!1;if(J(()=>{var A=s(...d.map(sr)),y=$r(r,_,A,a,i,f);b&&v&&"value"in A&&j(r,A.value);for(let S of Object.getOwnPropertySymbols(o))A[S]||M(o[S]);for(let S of Object.getOwnPropertySymbols(A)){var w=A[S];S.description===ar&&(!_||w!==_[S])&&(o[S]&&M(o[S]),o[S]=R(()=>Sr(r,()=>w))),y[S]=w}_=y}),v){var c=r;Y(()=>{j(c,_.value,!0),Er(c)})}b=!0})}function G(r){return r.__attributes??={[K]:r.nodeName.includes("-"),[m]:r.namespaceURI===vr}}var H=new Map;function W(r){var s=r.getAttribute("is")||r.nodeName,t=H.get(s);if(t)return t;H.set(s,t=[]);for(var e,a=r,i=Element.prototype;i!==a;){e=hr(a);for(var f in e)e[f].set&&t.push(f);a=_r(a)}return t}const Cr=O(900),kr=O(900);pr([Cr,kr],([r,s])=>r<s);const n=(r,s)=>{const t=typeof globalThis.window<"u";let e=s;const{set:a,...i}=O(s,()=>{if(t){d();const o=v=>{v.key===r&&d()};return window.addEventListener("storage",o),()=>window.removeEventListener("storage",o)}else return()=>{}}),f=o=>{e=o,a(o);try{localStorage.setItem(r,JSON.stringify(o))}catch(v){console.error(`the \`${r}\` store's new value \`${o}\` could not be persisted to localStorage because of ${v}`)}},d=()=>{let o=null;try{o=localStorage.getItem(r)}catch(v){console.error(`the \`${r}\` store's value could not be restored from localStorage because of ${v}`)}if(o===null)f(s);else try{const v=JSON.parse(o);a(v),e=v}catch(v){console.error(`localStorage's value for \`${r}\` (\`${o}\`) could not be parsed as JSON because of ${v}`)}};return{...i,set:f,update:o=>{f(o(e))}}},Mr=typeof window<"u"&&globalThis.localStorage&&"theme"in localStorage?localStorage.getItem("theme"):"dark";n("theme",Mr);n("study_id",0);n("current_order",0);n("study_order",[]);const Ur=n("tutorial_done",!1),Br=n("gemini_api_key",""),Dr=n("card_front",""),Fr=n("card_back",[]),Hr=n("card_color",""),Jr=O(""),Rr=n("card_evidence",""),Yr=n("card_citation",""),qr=n("segments",[]),Kr=n("segment",""),mr=n("file_dir",""),Gr=n("customization_input_who",""),Wr=n("customization_input_what",""),Zr=n("card_title",""),Qr=n("card_description",""),Xr=n("card_summary",[]),xr=n("card_third",[]),rt=n("tooltip_data",{}),tt=n("disclaimer_open",!1);export{Tr as a,Fr as b,Dr as c,xr as d,Hr as e,rt as f,qr as g,Kr as h,Gr as i,Wr as j,Jr as k,Zr as l,Qr as m,Xr as n,Yr as o,Rr as p,mr as q,Ir as r,I as s,Ur as t,Br as u,zr as v,wr as w,tt as x};

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.