sliccy 2.50.4 → 2.51.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/ui/assets/adobe-BBpdoJE_.js +2 -0
- package/dist/ui/assets/adobe-DOi8DacX.js +1 -0
- package/dist/ui/assets/{agent-bridge-CxttC2XA.js → agent-bridge-DnJnD4Xc.js} +1 -1
- package/dist/ui/assets/{agent-message-to-chat-DOwxbBF0.js → agent-message-to-chat-odRPLcyb.js} +1 -1
- package/dist/ui/assets/{azure-openai-qrl3BySR.js → azure-openai-BOP8Zy-g.js} +1 -1
- package/dist/ui/assets/{azure-openai-DaxTaT48.js → azure-openai-BxoT4zVU.js} +1 -1
- package/dist/ui/assets/{backend-local-P05Hg6Af.js → backend-local-BTd37iLF.js} +1 -1
- package/dist/ui/assets/{backend-local-mju0Ps5U.js → backend-local-D-jeTNnr.js} +1 -1
- package/dist/ui/assets/{bedrock-camp-9aDiXDk5.js → bedrock-camp-CWcpoTdM.js} +1 -1
- package/dist/ui/assets/{cdp-DunzU3Nj.js → cdp-twDbqImi.js} +3 -3
- package/dist/ui/assets/cost-command-B2VaiZac.js +1 -0
- package/dist/ui/assets/dist-Dioyrn6j.js +15 -0
- package/dist/ui/assets/{es-DzvKryD6.js → es-BDEVnh3I.js} +19 -2
- package/dist/ui/assets/{fs-DSc7_3Hn.js → fs-CB9gg_ja.js} +2 -2
- package/dist/ui/assets/{fs-DKcnn-pO.js → fs-D8qh6mKM.js} +3 -3
- package/dist/ui/assets/{github-BK1AOGwq.js → github-JJzQngvs.js} +1 -1
- package/dist/ui/assets/{github-Biy6HWTq.js → github-VLFGpmvy.js} +2 -2
- package/dist/ui/assets/{google-CYM-5k2z.js → google-NhMHz8rQ.js} +1 -1
- package/dist/ui/assets/{google-shared-XoadLsBb.js → google-shared-CiHltZCP.js} +107 -12
- package/dist/ui/assets/{google-vertex-ByJZJUMR.js → google-vertex-C4h2ubmt.js} +1 -1
- package/dist/ui/assets/{index-Cn5rmczt.js → index-DHi0Rx13.js} +7 -7
- package/dist/ui/assets/js-realm-worker-B3OvP1qG.js +1 -0
- package/dist/ui/assets/{kernel-worker-lpemPe6D.js → kernel-worker-BRmyI2gj.js} +1059 -843
- package/dist/ui/assets/{local-llm-C3MV3uOk.js → local-llm-D7sQRhU6.js} +1 -1
- package/dist/ui/assets/{local-llm-Cc7DHJSw.js → local-llm-DF8W7p6u.js} +1 -1
- package/dist/ui/assets/{magick-wasm-BjiSSRL4.js → magick-wasm-Dn-tCRf2.js} +1 -1
- package/dist/ui/assets/{mount-ap9BLELX.js → mount-BYC3WyoD.js} +1 -1
- package/dist/ui/assets/{mount-BdFGnrc0.js → mount-MJDhKhCa.js} +2 -2
- package/dist/ui/assets/{nuke-command-CQr_V1Oc.js → nuke-command-BMZuOOnq.js} +1 -1
- package/dist/ui/assets/{oauth-bootstrap-CeoqKZgH.js → oauth-bootstrap-DWbD6dJw.js} +1 -1
- package/dist/ui/assets/{oauth-service-E62JrG_0.js → oauth-service-DxkhJeE_.js} +1 -1
- package/dist/ui/assets/{offscreen-client-CsIXSBDS.js → offscreen-client-V48qqurc.js} +1 -1
- package/dist/ui/assets/{onboarding-orchestrator-BAPk6v9C.js → onboarding-orchestrator-CNJolGNS.js} +1 -1
- package/dist/ui/assets/panel-rpc-handlers-DlxXxaUM.js +1 -0
- package/dist/ui/assets/provider-settings-5LHS1fDp.js +28 -0
- package/dist/ui/assets/{provider-settings-CrrXS-Th.js → provider-settings-by329DnQ.js} +1 -1
- package/dist/ui/assets/{providers-CpRzwm88.js → providers-ClgsSNei.js} +1 -1
- package/dist/ui/assets/{py-realm-worker-Cg-6whKO.js → py-realm-worker-vbqFsiux.js} +1 -1
- package/dist/ui/assets/{remote-terminal-view-D5jfCEWy.js → remote-terminal-view-Cqc5Fd85.js} +1 -1
- package/dist/ui/assets/{slicc-editor-DlLebxYv.js → slicc-editor-DkoM9Dx4.js} +1 -1
- package/dist/ui/assets/{spawn-D0dgDxNw.js → spawn-DRqJm16N.js} +1 -1
- package/dist/ui/assets/{upgrade-detection-CqgNrDUZ.js → upgrade-detection-Di1ATV0T.js} +1 -1
- package/dist/ui/assets/worker-B1VFCur7.js +1 -0
- package/dist/ui/index.html +5 -5
- package/dist/ui/packages/webapp/index.html +5 -5
- package/package.json +4 -4
- package/dist/ui/assets/adobe-C0PWXmIi.js +0 -1
- package/dist/ui/assets/adobe-_sp-pnn7.js +0 -2
- package/dist/ui/assets/cost-command-Co3ze3Qj.js +0 -1
- package/dist/ui/assets/dist-Nvn9jT7s.js +0 -9
- package/dist/ui/assets/js-realm-worker-Dh5NKB0f.js +0 -1
- package/dist/ui/assets/panel-rpc-handlers-DQC5qat8.js +0 -1
- package/dist/ui/assets/provider-settings-IYxDo-k8.js +0 -28
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
let e;const t=globalThis.process?.release?.name===`node`,n=typeof window<`u`;async function r(e,t={}){let{getDocument:n}=await i();return await n({data:e,isEvalSupported:!1,useSystemFonts:!0,...t}).promise}async function i(){return e||await a(),e}async function a(t,{reload:n=!1}={}){if(!(e&&!n)){if(t)try{e=await s(t());return}catch(e){throw Error(`PDF.js could not be resolved: ${e}`)}try{e=await import(`./pdfjs-jzfXBGiL.js`)}catch(e){throw Error(`Serverless PDF.js bundle could not be resolved: ${e}`)}}}function o(e){return typeof e==`object`&&!!e&&`_pdfInfo`in e}async function s(e){let t=await e;return t.default||t}let c;
|
|
2
|
+
/**
|
|
3
|
+
* Derived from the PDF.js project by the Mozilla Foundation.
|
|
4
|
+
* @see https://github.com/mozilla/pdf.js/blob/b8de9a372f9bbf7e33adb362eeae5ef1919dba73/src/display/canvas_factory.js#L18
|
|
5
|
+
* @license Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
var l=class{#e=!1;constructor({enableHWA:e=!1}={}){this.#e=e}create(e,t){let n=this._createCanvas(e,t);return{canvas:n,context:n.getContext(`2d`,{willReadFrequently:!this.#e})}}reset({canvas:e},t,n){if(!e)throw Error(`Canvas is not specified`);e.width=t,e.height=n}destroy(e){if(!e.canvas)throw Error(`Canvas is not specified`);e.canvas.width=0,e.canvas.height=0,e.canvas=void 0,e.context=void 0}_createCanvas(e,t){throw Error(`Not implemented`)}},u=class extends l{_document;constructor({ownerDocument:e=globalThis.document,enableHWA:t=!1}={}){
|
|
8
|
+
/**
|
|
9
|
+
* Derived from the PDF.js project by the Mozilla Foundation.
|
|
10
|
+
* @see https://github.com/mozilla/pdf.js/blob/b8de9a372f9bbf7e33adb362eeae5ef1919dba73/src/display/canvas_factory.js#L18
|
|
11
|
+
* @license Apache-2.0
|
|
12
|
+
*/
|
|
13
|
+
super({enableHWA:t}),this._document=e}_createCanvas(e,t){let n=this._document.createElement(`canvas`);return n.width=e,n.height=t,n}},d=class extends l{constructor({enableHWA:e=!1}={}){super({enableHWA:e})}_createCanvas(e,t){if(!c)throw Error(`@napi-rs/canvas module is not resolved`);return c.createCanvas(e,t)}};async function f(e){c??=await s(e())}function p(){c&&(globalThis.DOMMatrix===void 0&&(globalThis.DOMMatrix=c.DOMMatrix),globalThis.ImageData===void 0&&(globalThis.ImageData=c.ImageData),globalThis.Path2D===void 0&&(globalThis.Path2D=c.Path2D))}async function m(e,t){let n=o(e)?e:await r(e);if(t<1||t>n.numPages)throw Error(`Invalid page number. Must be between 1 and ${n.numPages}.`);let a=await n.getPage(t),s=await a.getOperatorList(),{OPS:c}=await i(),l=[];for(let e=0;e<s.fnArray.length;e++){if(s.fnArray[e]!==c.paintImageXObject)continue;let t=s.argsArray[e][0],n=await new Promise(e=>(t.startsWith(`g_`)?a.commonObjs:a.objs).get(t,e));if(!n||!n.data||!n.width||!n.height)continue;let{width:r,height:i,data:o}=n,u=o.length/(r*i);if(![1,3,4].includes(u))continue;let d=u;l.push({data:o,width:r,height:i,channels:d,key:t})}return l}async function h(e,t,n={}){let i=await g(n.canvasImport),a=o(e)?e:await r(e,{CanvasFactory:i}),s=await a.getPage(t);if(t<1||t>a.numPages)throw Error(`Invalid page number. Must be between 1 and ${a.numPages}.`);let c=s.getViewport({scale:1}),l=n.scale||1;n.width?l=n.width/c.width:n.height&&(l=n.height/c.height);let u=s.getViewport({scale:Math.max(0,l)}),d=new i().create(u.width,u.height);await s.render({canvas:d.canvas,canvasContext:d.context,viewport:u}).promise;let f=d.canvas.toDataURL();return n.toDataURL?f:await(await fetch(f)).arrayBuffer()}async function g(e){if(n)return u;if(t){if(!e)throw Error(`Parameter "canvasImport" is required in Node.js environment.`);return await f(e),p(),d}throw Error(`Unsupported environment for canvas creation.`)}async function _(e){let t=o(e)?e:await r(e),n=await Promise.all(Array.from({length:t.numPages},(e,n)=>v(t,n+1)));return{totalPages:t.numPages,links:n.flat()}}async function v(e,t){let n=await(await e.getPage(t)).getAnnotations(),r=[];for(let e of n)e.subtype===`Link`&&e.url&&r.push(e.url);return r}const y=[`xmp:createdate`,`xmp:modifydate`,`xmp:metadatadate`,`xap:createdate`,`xap:modifydate`,`xap:metadatadate`];async function b(e,t={}){let n=await(o(e)?e:await r(e)).getMetadata(),a=n?.info||{};if(t.parseDates){let{PDFDateString:e}=await i();a?.CreationDate&&(a.CreationDate=e.toDateObject(a?.CreationDate)),a?.ModDate&&(a.ModDate=e.toDateObject(a?.ModDate)),n.metadata&&=new Proxy(n.metadata,{get(e,t){return t===`get`?t=>{let n=e.get(t);return y.includes(t)&&n?x(n):n}:e[t]}})}return{info:a,metadata:n?.metadata||{}}}function x(e){if(!e)return;let t=Date.parse(e);if(!Number.isNaN(t))return new Date(t)}async function S(e,t={}){let{mergePages:n=!1}=t,i=o(e)?e:await r(e),a=await Promise.all(Array.from({length:i.numPages},(e,t)=>C(i,t+1)));return{totalPages:i.numPages,text:n?a.join(`
|
|
14
|
+
`).replace(/\s+/g,` `):a}}async function C(e,t){return(await(await e.getPage(t)).getTextContent()).items.filter(e=>e.str!=null).map(e=>e.str+(e.hasEOL?`
|
|
15
|
+
`:``)).join(``)}async function w(e){await a(e,{reload:!0})}async function T(e){await a(e.pdfjs,{reload:!0})}const E=async(...e)=>(await a(),await b(...e)),D=async(...e)=>(await a(),await S(...e)),O=async(...e)=>(await a(),await m(...e)),k=async(...e)=>(await a(),await h(...e)),A=async(...e)=>(await a(),await _(...e));export{T as configureUnPDF,g as createIsomorphicCanvasFactory,w as definePDFJSModule,O as extractImages,A as extractLinks,D as extractText,r as getDocumentProxy,E as getMeta,i as getResolvedPDFJS,k as renderPageAsImage,a as resolvePDFJSImport};
|