(self.webpackChunk_cocalc_static=self.webpackChunk_cocalc_static||[]).push([[2931],{18737:(e,t,n)=>{"use strict";n.d(t,{l:()=>i,v:()=>o});var r=n(26131),a=n(89368),c=n(62799);function i(e){var t=(0,r.path_split)(e),n=(0,r.separate_file_extension)(t.tail);return{directory:t.head,base:n.name,filename:t.tail}}function o(e,t){var n=(0,r.encode_path)(t);return(0,a.join)(c.appBasePath,e,"raw",n)}},10340:(e,t,n)=>{"use strict";n.d(t,{Me:()=>d,j5:()=>h,t$:()=>f});var r=n(73666),a=n.n(r),c=n(34332),i=n(48194),o=n(62799),u=n(57662),l=n(18737),s=n(54628);function f(e,t,n){var r=(0,l.v)(e,(0,s.n)(t));return"".concat(r,"?param=").concat(n)}var p=new(a())({max:1e3,length:function(e){return e.numPages}}),d=(0,c.reuseInFlight)((function(e){return t=this,n=void 0,a=function(){var t,n;return function(e,t){var n,r,a,c,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return c={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function o(c){return function(o){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(a=2&c[0]?r.return:c[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,c[1])).done)return a;switch(r=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((a=(a=i.trys).length>0&&a[a.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){i.label=c[1];break}if(6===c[0]&&i.label<a[1]){i.label=a[1],a=c;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(c);break}a[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,o])}}}(this,(function(r){switch(r.label){case 0:return void 0!==(t=p.get(e))?[3,2]:(n="pdfjs-dist-".concat(i.dd["pdfjs-dist"]),[4,(0,u.getDocument)({url:e,cMapUrl:"".concat(o.appBasePath,"/cdn/").concat(n,"/cmaps/"),cMapPacked:!0,disableStream:!0,disableAutoFetch:!0}).promise]);case 1:t=r.sent(),p.set(e,t),r.label=2;case 2:return[2,t]}}))},new((r=void 0)||(r=Promise))((function(e,c){function i(e){try{u(a.next(e))}catch(e){c(e)}}function o(e){try{u(a.throw(e))}catch(e){c(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,o)}u((a=a.apply(t,n||[])).next())}));var t,n,r,a}));function h(e){p.del(e)}},54628:(e,t,n)=>{"use strict";n.d(t,{n:()=>a,q:()=>c});var r=n(26131);function a(e){var t=(0,r.separate_file_extension)(e),n=t.name;return"pdf"==t.ext.toLowerCase()?e:"".concat(n,".pdf")}function c(e,t){e=e.trim();var n="'".concat(t,"'"),r=e.indexOf("'");if(-1==r){var a=e.lastIndexOf(" ");return-1==a?e:e.slice(0,a)+" "+n}return e.slice(0,r).trim()+" "+n}},93414:()=>{},70172:()=>{},2001:()=>{},33779:()=>{},66558:()=>{},82258:()=>{}}]);