PageSourceSearch

https://lightsats.fly.dev/_next/static/chunks/1367-16d3e792f86c0e27.js

js lightsats.fly.dev collected 2026-10-03 08:27:51 UTC 26,595 bytes, 3 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1367],{87468:function(e,t,r){"use strict";r.d(t,{ZP:function(){return A}});var n=r(67294),o=r(18878),i=r(92317),a=r(82858),l=r(66391),s=r(86212),c=r(50088),u=r(35366),d=r(85893);let f=(0,s.zo)("div",{p:0,m:0,h:0,opacity:0,overflow:"hidden",variants:{expanded:{true:{opacity:1}}}});var p=(0,c.Z)(({isExpanded:e,delay:t,animated:r,css:o,children:i})=>{let[a,l]=(0,n.useState)(e?"auto":"0"),[s,c]=(0,n.useState)(e),p=(0,n.useRef)(null),h=(0,n.useRef)(),b=(0,n.useRef)(),g=(0,n.useRef)(),[m,v]=(0,u.Z)(p);return(0,n.useEffect)(()=>l(`${m.height}px`),[m.height]),(0,n.useEffect)(()=>{if(e!==s)return e||(v(),l(`${m.height}px`)),h.current=window.setTimeout(()=>{c(e),clearTimeout(h.current)},30),e?g.current=window.setTimeout(()=>{l("auto"),clearTimeout(g.current)},t):b.current=window.setTimeout(()=>{clearTimeout(b.current)},t/2),()=>{clearTimeout(h.current),clearTimeout(b.current),clearTimeout(g.current)}},[e]),(0,d.jsx)(f,{css:{height:s?a:"0",transition:r?`height ${t}ms ease 0ms,
2    opacity ${1.5*t}ms ease 0ms;`:"none",...o},expanded:s,children:(0,d.jsx)("div",{ref:p,className:"nextui-expand-content",children:i})})},{isExpanded:!1,animated:!0,delay:200}),h=r(20663),b=r(38944),g=r(61309);let m=n.createContext({values:[]}),v=()=>n.useContext(m);var y=r(39975);let w=(0,s.zo)("div",{transition:"$default",".nextui-collapse-title-content":{w:"100%","h1,h2,h3,h4,h5,h6,p,span,b":{margin:0}},".nextui-collapse-title-container":{d:"flex",jc:"space-between",ai:"center"},".nextui-collapse-title":{color:"$foreground"},".nextui-collapse-subtitle":{color:"$accents7",margin:0,"*":{margin:0}},".nextui-collapse-title-content-left":{mr:"$sm"},".nextui-collapse-title-content-left, .nextui-collapse-title-content-right":{d:"flex",ai:"center"},"@motion":{transition:"none",".nextui-collapse-title-content-right ":{svg:{transition:"none"}}},variants:{shadow:{true:{border:"none",boxShadow:"$md",br:"$lg",p:"0 $lg",bg:"$backgroundContrast"}},borderWeight:{light:{$$collapseBorderWidth:"$borderWeights$light"},normal:{$$collapseBorderWidth:"$borderWeights$normal"},bold:{$$collapseBorderWidth:"$borderWeights$bold"},extrabold:{$$collapseBorderWidth:"$borderWeights$extrabold"},black:{$$collapseBorderWidth:"$borderWeights$black"}},divider:{true:{borderTop:"$$collapseBorderWidth solid $border",borderBottom:"$$collapseBorderWidth solid $border"}},bordered:{true:{br:"$lg",p:"0 $lg",border:"$$collapseBorderWidth solid $border"}},animated:{true:{".nextui-collapse-title-content-right ":{svg:{transition:"transform 200ms ease"}}},false:{transition:"none"}},visible:{true:{".nextui-collapse-title-content-right ":{svg:{transform:"rotateZ(-90deg)"}}},false:{".nextui-collapse-title-content-right":{svg:{transform:"rotateZ(0deg)"}}}}},defaultVariants:{borderWeight:"light"}},y.xg),x=(0,s.zo)("div",{w:"100%",d:"block",ta:"left",bg:"transparent",border:"none",cursor:"pointer",outline:"none",padding:"$lg 0",variants:{disabled:{true:{cursor:"not-allowed",".nextui-collapse-title, .nextui-collapse-subtitle":{opacity:.5}}}}},y.BM),$=(0,s.zo)("div",{fontSize:"$base",lineHeight:"$lg",pb:"$lg","*:first-child":{mt:0},"*:last-child":{mb:0}}),_=(0,s.zo)("svg",{path:{stroke:"$accents7"}}),P=(0,s.zo)("div",{width:"auto",padding:"0 $sm","div + div":{borderTop:"none"},[`& ${w}:first-child`]:{borderTop:"none"},[`& ${w}:last-child`]:{borderBottom:"none"},variants:{borderWeight:{light:{$$collapseGroupBorderWidth:"$borderWeights$light"},normal:{$$collapseGroupBorderWidth:"$borderWeights$normal"},bold:{$$collapseGroupBorderWidth:"$borderWeights$bold"},extrabold:{$$collapseGroupBorderWidth:"$borderWeights$extrabold"},black:{$$collapseGroupBorderWidth:"$borderWeights$black"}},shadow:{true:{br:"$lg",border:"none",boxShadow:"$md",p:"0 $lg",bg:"$backgroundContrast"}},bordered:{true:{br:"$lg",p:"0 $lg",border:"$$collapseGroupBorderWidth solid $border"}},splitted:{true:{[`& ${w}`]:{br:"$lg",border:"none",bg:"$backgroundContrast",boxShadow:"$md",p:"0 $lg",margin:"$md 0"}}}},defaultVariants:{borderWeight:"light",shadow:!1,bordered:!1,splitted:!1}}),j=({...e})=>
2(0,d.jsx)(_,{className:"nextui-collapse-icon",fill:"none",focusable:"false",height:"20",role:"presentation",viewBox:"0 0 24 24",width:"20",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,d.jsx)("path",{d:"M15.5 19l-7-7 7-7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})});j.toString=()=>".nextui-collapse-icon";let S=n.memo(j),k="nextui-collapse",T=({children:e,title:t,subtitle:r,expanded:s,shadow:c,className:u,divider:f,arrowIcon:m,showArrow:y,disabled:_,onChange:P,bordered:j,contentLeft:T,preventDefault:E,animated:O,borderWeight:C,index:W,...A})=>{let[M,N,R]=(0,l.Z)(s),{values:I,divider:B,animated:D,updateValues:z}=v(),{isFocusVisible:q,focusProps:Z}=(0,o.Fx)();t||(0,a.Z)('"title" is required.',"Collapse"),(0,n.useEffect)(()=>{M!==s&&N(s)},[s]),(0,n.useEffect)(()=>{if(!I.length)return;let e=!!I.find(e=>e===W);N(e)},[I.join(",")]);let F=(0,i.Me)(),G=(0,i.Me)(),L=(0,n.useMemo)(()=>y?m||(0,d.jsx)(S,{}):null,[m,y]),V=(0,n.useMemo)(()=>void 0===D?O:D,[D,O]),H=e=>{if(_)return;let t=!R.current;N(t),z&&z(W,t),P&&P(e,W,t)},{bindings:U}=(0,h.ZP)(e=>{H(e)},[b.V.Enter,b.V.Space],{disableGlobalEvent:!0,preventDefault:E}),Y=(0,n.useMemo)(()=>M?"open":"closed",[M]);return(0,d.jsxs)(w,{animated:V,borderWeight:C,bordered:j,className:(0,g.Z)(u,k,`${k}--${Y}`),"data-state":Y,divider:void 0===B?f:B,shadow:c,tabIndex:-1,visible:M,...A,children:[(0,d.jsx)(x,{"aria-controls":G,"aria-disabled":_,"aria-expanded":M,className:`${k}-view`,"data-state":Y,disabled:_,id:F,isFocusVisible:q,role:"button",tabIndex:_?-1:0,onClick:H,...Z,...U,children:(0,d.jsxs)("div",{className:(0,g.Z)(`${k}-title-container`),children:[T&&(0,d.jsx)("div",{className:`${k}-title-content-left`,children:T}),(0,d.jsxs)("div",{className:`${k}-title-content`,children:[n.isValidElement(t)?t:(0,d.jsx)("h3",{className:`${k}-title`,children:t}),r&&(0,d.jsx)("div",{className:`${k}-subtitle`,children:r})]}),(0,d.jsx)("div",{className:`${k}-title-content-right`,children:L})]})}),(0,d.jsx)(p,{animated:V,isExpanded:M,children:(0,d.jsx)($,{"aria-labelledby":F,className:`${k}-content`,id:G,role:"region",tabIndex:-1,children:e})})]})};T.toString=()=>".nextui-collapse";var E=(0,c.Z)(T,{shadow:!1,divider:!0,bordered:!1,showArrow:!0,animated:!0,disabled:!1,preventDefault:!0,expanded:!1}),O=r(99644);let C=({children:e,accordion:t,animated:r,divider:o,onChange:i,...a})=>{let[s,c,u]=(0,l.Z)([]),f=(e,r)=>{let n=u.current.find(t=>t===e);if(i&&i(e,r),t)return c(r?[e]:[]);if(r){if(n)return;return c([...u.current,e])}c(u.current.filter(t=>t!==e))},p=(0,n.useMemo)(()=>({values:s,updateValues:f,divider:o,animated:r}),[s.join(",")]),h=(0,n.useMemo)(()=>(0,O.CV)(e,[E]),[e]);return(0,d.jsx)(m.Provider,{value:p,children:(0,d.jsx)(P,{...a,children:h})})};C.toString=()=>".nextui-collapse-group";var W=(0,c.Z)(C,{accordion:!0});E.Group=W;var A=E},70967:function(e,t,r){"use strict";r.d(t,{ZP:function(){return $}});var n=r(18878),o=r(67294),i=r(92317),a=r(39372),l=r(72903),s=r(3569),c=r(86212),u=r(39975);let d=(0,c.zo)("div",{d:"inline-flex",p:"0 $sm",jc:"center",ai:"center",w:"max-content",maxWidth:"100%",transition:"transform 250ms ease 0ms, box-shadow 0.25s ease 0s","@motion":{transition:"none"}},u.BM),f=(0,c.zo)("div",{ml:"$sm",d:"inline-flex",fd:"column",alignItems:"flex-start",whiteSpace:"nowrap"}),p=(0,c.zo)("span",{fontSize:"$sm",color:"$text",lh:"$sm",tt:"capitalize",fontWeight:"$medium",maxW:"$60",to:"ellipsis",ov:"hidden"}),h=(0,c.zo)("span",{fontSize:"$xs",color:"$accents7","*:first-child":{mt:0},"*:last-child":{mb:0}});var b=r(85893);let g=o.forwardRef((e,t)=>{let{as:r,css:o,src:s,text:c,name:u,children:g,altText:m,color:v,squared:y,bordered:w,size:x,description:$,zoomed:_,pointer:P,...j}=e,S=(0,l.gy)(t),{isFocusVisible:k,focusProps:T}=(0,n.Fx)();return(0,b.jsxs)(d,{ref:S,as:r,...(0,i.dG)(j,T),css:(0,i.dG)("button"===r?{borderRadius:"$xs",background:"none",appearance:"none",p:0,m:0,outline:"none",border:"none",cursor:"pointer"}:{},o),isFocusVisible:k,children:[(0,b.jsx)(a.ZP,{alt:m,bordered:w,className:"nextui-user-avatar",color:v,pointer:P,size:x,squared:y,src:s,text:c,zoomed:_}),(0,b.jsxs)(f,{className:"nextui-user-info",children:[(0,b.jsx)(p,{className:"nextui-user-name",children:u}),(0,b.jsx)(h,{className:"nextui-user-desc",children:$||g})]})]})});s.Ts&&(g.displayName="NextUI.User"),g.toString=()=>".nextui-user";var m=g,v=r(7087),y=r(61309);let w=o.forwardRef((e,t)=>
2{let{rel:r="noopener",color:n="primary",target:o="_blank",className:i,children:a,...l}=e;return(0,b.jsx)(v.ZP,{ref:t,className:(0,y.Z)("nextui-user-link",i),color:n,rel:r,target:o,...l,children:a})});s.Ts&&(w.displayName="NextUI.UserLink"),w.toString=()=>".nextui-user-link";let x=o.memo(w);m.Link=x;var $=m},47116:function(e,t,r){var n,o;"undefined"!=typeof self&&self,o=function(e,t){return function(){"use strict";var r={655:function(e,t,r){r.r(t),r.d(t,{__extends:function(){return o},__assign:function(){return i},__rest:function(){return a},__decorate:function(){return l},__param:function(){return s},__metadata:function(){return c},__awaiter:function(){return u},__generator:function(){return d},__createBinding:function(){return f},__exportStar:function(){return p},__values:function(){return h},__read:function(){return b},__spread:function(){return g},__spreadArrays:function(){return m},__spreadArray:function(){return v},__await:function(){return y},__asyncGenerator:function(){return w},__asyncDelegator:function(){return x},__asyncValues:function(){return $}
2,__makeTemplateObject:function(){return _},__importStar:function(){return j},__importDefault:function(){return S},__classPrivateFieldGet:function(){return k},__classPrivateFieldSet:function(){return T},__classPrivateFieldIn:function(){return E}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function l(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function s(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{s(n.next(e))}catch(t){i(t)}}function l(e){try{s(n.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,l)}s((n=n.apply(e,t||[])).next())})}function d(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,n=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(s){l=[6,s],n=0}finally{r=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}var f=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function p(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||f(t,e,r)}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(l){o={error:l}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function m(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)n[o]=i[a];return n}function v(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function w(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||l(e,t)})})}function l(e,t){var r;try{(r=o[e](t)).value instanceof y?Promise.resolve(r.value.v).then(s,c):u(i[0][2],r)}catch(n){u(i[0][3],n)}}function s(e){l("next",e)}function c(e){l("throw",e)}function u(e,t){e(t),i.shift(),i.length&&l(i[0][0],i[0][1])}}function x(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:y(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function $(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,o,(t=e[r](t)).done,t.value)})}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var P=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};
2function j(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&f(t,e,r);return P(t,e),t}function S(e){return e&&e.__esModule?e:{default:e}}function k(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function T(e,t,r,n,o){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function E(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}},156:function(t){t.exports=e},111:function(e){e.exports=t}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.d=function(e,t){for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i,a,l,s,c,u,d,f,p,h={};return Object.defineProperty(i=h,"__esModule",{value:!0}),i.useReactToPrint=i.PrintContextConsumer=void 0,a=o(655),l=o(156),s=o(111),c=Object.prototype.hasOwnProperty.call(l,"createContext"),u=Object.prototype.hasOwnProperty.call(l,"useMemo")&&Object.prototype.hasOwnProperty.call(l,"useCallback"),d=c?l.createContext({}):null,i.PrintContextConsumer=d?d.Consumer:function(){return null},f={copyStyles:!0,pageStyle:"@page { size: auto;  margin: 0mm; } @media print { body { -webkit-print-color-adjust: exact; } }",removeAfterPrint:!1,suppressErrors:!1},p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.startPrint=function(e){var r=t.props,n=r.onAfterPrint,o=r.onPrintError,i=r.print,a=r.documentTitle;setTimeout(function(){var r,l;if(e.contentWindow){if(e.contentWindow.focus(),i)i(e).then(t.handleRemoveIframe).catch(function(e){o?o("print",e):t.logMessages(["An error was thrown by the specified `print` function"])});else if(e.contentWindow.print){var s=null!==(l=null===(r=e.contentDocument)||void 0===r?void 0:r.title)&&void 0!==l?l:"",c=e.ownerDocument.title;a&&(e.ownerDocument.title=a,e.contentDocument&&(e.contentDocument.title=a)),e.contentWindow.print(),a&&(e.ownerDocument.title=c,e.contentDocument&&(e.contentDocument.title=s))}else t.logMessages(["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."]);n&&n(),t.handleRemoveIframe()}else t.logMessages(["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/gregnb/react-to-print/issues/"])},500)},t.triggerPrint=function(e){var r=t.props,n=r.onBeforePrint,o=r.onPrintError;if(n){var i=n();i&&"function"==typeof i.then?i.then(function(){t.startPrint(e)}).catch(function(e){o&&o("onBeforePrint",e)}):t.startPrint(e)}else t.startPrint(e)},t.handleClick=function(){var e=t.props,r=e.onBeforeGetContent,n=e.onPrintError;if(r){var o=r();o&&"function"==typeof o.then?o.then(t.handlePrint).catch(function(e){n&&n("onBeforeGetContent",e)}):t.handlePrint()}else t.handlePrint()},t.handlePrint=function(){var e=t.props,r=e.bodyClass,n=e.content,o=e.copyStyles,i=e.fonts,l=e.pageStyle,c=e.nonce,u=n();if(void 0!==u){if(null!==u){var d=document.createElement("iframe");d.width="".concat(document.documentElement.clientWidth,"px"),d.height="".concat(document.documentElement.clientHeight,"px"),d.style.position="absolute",d.style.top="-".concat(document.documentElement.clientHeight+100,"px"),d.style.left="-".concat(document.documentElement.clientWidth+100,"px"),d.id="printWindow",d.srcdoc="<!DOCTYPE html>";var f=(0,s.findDOMNode)(u);if(f){var p=f.cloneNode(!0),h=p instanceof Text,b=document.querySelectorAll("link[rel='stylesheet']"),g=h?[]:p.querySelectorAll("img"),m=h?[]:p.querySelectorAll("video");t.linkTotal=b.length+g.length+m.length,t.linksLoaded=[],t.linksErrored=[],t.fontsLoaded=[],t.fontsErrored=[];var v=function(e,r){r?t.linksLoaded.push(e):(t.logMessages(['"react-to-
2print" was unable to load a linked node. It may be invalid. "react-to-print" will continue attempting to print the page. The linked node that errored was:',e]),t.linksErrored.push(e)),t.linksLoaded.length+t.linksErrored.length+t.fontsLoaded.length+t.fontsErrored.length===t.linkTotal&&t.triggerPrint(d)};d.onload=function(){d.onload=null;var e=d.contentDocument||(null===(S=d.contentWindow)||void 0===S?void 0:S.document);if(e){e.body.appendChild(p),i&&((null===(k=d.contentDocument)||void 0===k?void 0:k.fonts)&&(null===(T=d.contentWindow)||void 0===T?void 0:T.FontFace)?i.forEach(function(e){var r=new FontFace(e.family,e.source);d.contentDocument.fonts.add(r),r.loaded.then(function(e){t.fontsLoaded.push(e)}).catch(function(e){t.fontsErrored.push(r),t.logMessages(['"react-to-print" was unable to load a font. "react-to-print" will continue attempting to print the page. The font that failed to load is:',r,"The error from loading the font is:",e])})}):t.logMessages(['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API']));var n="function"==typeof l?l():l;if("string"!=typeof n)t.logMessages(['"react-to-print" expected a "string" from `pageStyle` but received "'.concat(typeof n,'". Styles from `pageStyle` will not be applied.')]);else{var s=e.createElement("style");c&&(s.setAttribute("nonce",c),e.head.setAttribute("nonce",c)),s.appendChild(e.createTextNode(n)),e.head.appendChild(s)}if(r&&(j=e.body.classList).add.apply(j,(0,a.__spreadArray)([],(0,a.__read)(r.split(" ")),!1)),!h){for(var u=h?[]:f.querySelectorAll("canvas"),b=e.querySelectorAll("canvas"),y=0;y<u.length;++y){var w=u[y],x=b[y].getContext("2d");x&&x.drawImage(w,0,0)}for(y=0;y<g.length;y++){var $=g[y],_=$.getAttribute("src");_?((E=new Image).onload=v.bind(null,$,!0),E.onerror=v.bind(null,$,!1),E.src=_):(t.logMessages(['"react-to-print" encountered an <img> tag with an empty "src" attribute. It will not attempt to pre-load it. The <img> is:',$],"warning"),v($,!1))}for(y=0;y<m.length;y++){var P=m[y];P.preload="auto";var j,S,k,T,E,O=P.getAttribute("poster");O?((E=new Image).onload=v.bind(null,P,!0),E.onerror=v.bind(null,P,!1),E.src=O):P.readyState>=2?v(P,!0):(P.onloadeddata=v.bind(null,P,!0),P.onerror=v.bind(null,P,!1),P.onstalled=v.bind(null,P,!1))}var C="input",W=f.querySelectorAll(C),A=e.querySelectorAll(C);for(y=0;y<W.length;y++)A[y].value=W[y].value;var M="input[type=checkbox],input[type=radio]",N=f.querySelectorAll(M),R=e.querySelectorAll(M);for(y=0;y<N.length;y++)R[y].checked=N[y].checked;var I="select",B=f.querySelectorAll(I),D=e.querySelectorAll(I);for(y=0;y<B.length;y++)D[y].value=B[y].value}if(o)for(var z=document.querySelectorAll("style, link[rel='stylesheet']"),q=(y=0,z.length);y<q;++y){var Z=z[y];if("style"===Z.tagName.toLowerCase()){var F=e.createElement(Z.tagName),G=Z.sheet;if(G){var L="";try{for(var V=G.cssRules.length,H=0;H<V;++H)"string"==typeof G.cssRules[H].cssText&&(L+="".concat(G.cssRules[H].cssText,"\r\n"))}catch(U){t.logMessages(["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/gregnb/react-to-print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",Z],"warning")}F.setAttribute("id","react-to-print-".concat(y)),c&&F.setAttribute("nonce",c),F.appendChild(e.createTextNode(L)),e.head.appendChild(F)}}else if(Z.getAttribute("href")){if(Z.hasAttribute("disabled"))t.logMessages(["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",Z],"warning"),v(Z,!0);else{F=e.createElement(Z.tagName),H=0;for(var Y=Z.attributes.length;H<Y;++H){var J=Z.attributes[H];J&&F.setAttribute(J.nodeName,J.nodeValue||"")}F.onload=v.bind(null,F,!0),F.onerror=v.bind(null,F,!1),c&&F.setAttribute("nonce",c),e.head.appendChild(F)}}
2else t.logMessages(["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",Z],"warning"),v(Z,!0)}}0!==t.linkTotal&&o||t.triggerPrint(d)},t.handleRemoveIframe(!0),document.body.appendChild(d)}else t.logMessages(['"react-to-print" could not locate the DOM node corresponding with the `content` prop'])}else t.logMessages(['There is nothing to print because the "content" prop returned "null". Please ensure "content" is renderable before allowing "react-to-print" to be called.'])}else t.logMessages(["To print a functional component ensure it is wrapped with `React.forwardRef`, and ensure the forwarded ref is used. See the README for an example: https://github.com/gregnb/react-to-print#examples"])},t.handleRemoveIframe=function(e){var r=t.props.removeAfterPrint;if(e||r){var n=document.getElementById("printWindow");n&&document.body.removeChild(n)}},t.logMessages=function(e,r){void 0===r&&(r="error"),t.props.suppressErrors||("error"===r?console.error(e):"warning"===r?console.warn(e):"debug"===r&&console.debug(e))},t}return(0,a.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.children,r=e.trigger;if(r)return l.cloneElement(r(),{onClick:this.handleClick});if(!d)return this.logMessages(['"react-to-print" requires React ^16.3.0 to be able to use "PrintContext"']),null;var n={handlePrint:this.handleClick};return l.createElement(d.Provider,{value:n},t)},t.defaultProps=f,t}(l.Component),i.default=p,i.useReactToPrint=function(e){if(!u)return e.suppressErrors||console.error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"'),function(){throw Error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"')};var t=l.useMemo(function(){return new p((0,a.__assign)((0,a.__assign)({},f),e))},[e]);return l.useCallback(function(){return t.handleClick()},[t])},h}()},e.exports=o(r(67294),r(73935))}}]);
3//# sourceMappingURL=1367-16d3e792f86c0e27.js.map

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.